Skip to content

Set Variables ​

Defines or updates named variables in the workflow context, making them available to all downstream tasks.

Purpose ​

Use Set Variables to introduce new values into the workflow at any point during execution, or to overwrite values that were set earlier. It is the standard way to declare constants, build derived values, or reset state before a conditional branch. The task supports two modes: setting a batch of key-value pairs at once, or updating a single property deep inside an existing object variable.

Inputs ​

FieldTypeRequiredDescription
OperationDropdownNoDetermines the mode. SetVariables defines a batch of new variables. UpdateObjectProperty updates a single property within an existing object. Defaults to SetVariables.
New VariablesKey-Value PairsNoA dictionary of variable names and their values to add to the workflow context. Visible when Operation is SetVariables.
Object Variable NameTextNoThe name of an existing object variable to modify. Visible when Operation is UpdateObjectProperty.
Property PathTextNoDot-notation path to the target property within the object (e.g. address.city). Visible when Operation is UpdateObjectProperty.
New ValueTextNoThe value to assign to the specified property. Visible when Operation is UpdateObjectProperty.
Output Variable NameTextNoOptional name for the updated object. If omitted, the original variable is updated in place. Visible when Operation is UpdateObjectProperty.

Visibility Rules ​

New Variables is visible when Operation is SetVariables. Object Variable Name, Property Path, New Value, and Output Variable Name are visible when Operation is UpdateObjectProperty.

Operations ​

OperationDescription
SetVariablesAdds or overwrites one or more named variables in the workflow context from a key-value dictionary.
UpdateObjectPropertyNavigates to a specific property inside an existing object variable and sets it to a new value.

Outputs ​

NameDescription
SetVariablesA dictionary containing each variable name and its resulting value. Produced by the SetVariables operation.

For UpdateObjectProperty, the updated object is stored under the name specified in Output Variable Name (or the original variable name if that field is left blank).

Tentech