With dynamic variables, you can define custom values when a chain runs or during the execution of a chain, such as based on a previous command's output. To pause a chain's run to prompt for dynamic variables' values before proceeding to the next command, include a Set Dynamic Chain Variables event.
Note: To set dynamic variables' values at the start of a chain's run, add a Runtime Inputs trigger event instead.
Step 1: Add the Event to the Chain
- From Chains , click Build , and click Edit for the chain.
- Click Chain Events
, and move Set Dynamic Chain Variable to where the event should occur in the chain.
- Drag a link to the event from the previous node in the chain.
Note: To change a node's position in the chain, unlink it from other nodes, and then move it to where it should occur. To move multiple nodes at once, hold SHIFT as you select them.
Step 2: Set the Dynamic Variables' Default Values
Note: These values are the initial default for the event. When the chain runs, it automatically retains the values set for dynamic variables during its previous run.
- Select the event's node, and click Edit
- Under Basic Info, enter a unique name and description to help identify the event.
- Under Action, select the dynamic chain variable to set.
- In Value, enter the variable's default value, or select the previous command's output or runtime variable to provide the value.
Tip: To concatenate multiple values for a dynamic variable, such as to include a prefix or separator, select the values to use, and enter the text to appear before or after each.
- To define additional dynamic variables, click Add , and set their values.
- Click Save.