...
Execution: The example below is an execution where the first runbook returned by List Runbooks activity is used as input for Get Runbook Instances activity and extracts the runbook instance id:
Get Runbook Parameters
This activity retrieves all the parameters for a specified runbook.
Activity Parameters
The Get Runbook Parameters activity parameters can be provided by manual inserted values or via IN arguments or variables:
Parameters:
- Runbook Id (text box editor type) (type: string): the runbook instance Id for which you want to obtain details. The accepted format should be written as in the given example:
The value also can be obtained from the List Runbooks activity, using a sequence like the following to extract the Id for the desired Runbook from the output returned by List Runbooks activity:
The Read Only Output variable are the possible output values that the activity will provide:
- Output (type: collection<dictionary<string,string>>): returns a collection of dictionaries containing the Direction, Name and Value for each Runbook Parameter. In order to use the output you can iterate through the elements and use the GetKeyValuePair activity with the keys: Direction, Name and Value .
In order to extract the values from the output parameter (in our case the output is a Collection(Of Dictionary(Of String,String)), For Each and GetKeyValuePair activities should be used: