The Set Variable integration allows you to store values within a Decimal workflow so they can be reused by downstream nodes. It helps manage workflow state, simplify data handling, and improve readability.
Common uses include storing API results, computed values, and control flags.
Assigns a value to a named variable and makes it available to subsequent workflow steps.
When to Use Set Variable
Use this node when you need to:
Store intermediate values
Reuse data across multiple nodes
Simplify complex data paths
Adding Set Variable to a Workflow
Open the Decimal workflow editor
Add or connect from an existing node
Select Transform → Set Variable
Connect it to the previous step
The Set Variable Settings panel opens automatically.
Name of the variable to set.
Example:
myVariable
Required field.
Value to assign to the variable.
Example:
100
Required field.
Select the data type of the value:
Choosing the correct type ensures proper usage downstream.
The variable is stored in the workflow context and can be referenced by later nodes using its name.
Example Use Case
Use Case: Store a computed value for reuse.
Workflow:
Run Code (compute a value)
Set Variable (store the result)
Use the variable in later nodes