Search K
Appearance
Appearance
The Set Variables node allows you to set or update variables within your workflow dynamically. It reads a JSON dictionary of key-value pairs and adds them as variables to the current workflow context for use in subsequent nodes.
Use this node to define or override variables dynamically during workflow execution, enabling flexible data configuration and runtime adjustments.
Input | Type | Description |
---|---|---|
New Variables | JSON Dictionary | A JSON object containing key-value pairs representing the variables to set. Example: {"MyVar":"Value","AnotherVar":"123"} |
Output Variable Name | Description |
---|---|
SetVariables | Contains a dictionary of all variables that were set by this node, with their resulting values. |
Validation:
New Variables
key.Variable Setting:
New Variables
JSON input and converts it into a dictionary.Output Handling:
SetVariables
containing the newly set variables and their values.taskSuccess = true
upon completion.Error Handling:
New Variables
input is missing or not a valid JSON object, the node fails with an error message.⚠️ Important:
The New Variables
input must be a valid JSON object. Example:
{
"Username": "admin",
"Timeout": "30",
"IsEnabled": "true"
}