I have a runbook in which the user will give a value on each of two different prompt variables.
The first prompt variable should allow the user to select one of a pre-defined set of values, which are already in the variable set.
Is there any way for this to be implemented?
Thank you.
Thank you for your reply.
I will try to implement this solution. My question is whether the values that will be added in the dropdown list can be populated dynamically via an API call, or it needs to be statically defined when the variable is first set?
Thank you again.
Hi Andreas,
You can create a dropdown list variable using an API call. We have a PowerShell script on our GitHub that can add or edit variable sets. To create a variable with a dropdown list, that script would need some modification, but to help you get started, I have included the JSON block of a variable with some dropdown info to see what the format looks like.