Skip to main content

Variables

The Variables node assigns and maps values to workflow variables. Use it to extract data from previous step outputs, set constants, apply transformations, and prepare data for downstream steps. Variables set by this node are available to all subsequent steps in the workflow.

Before You Use This Node

What you may needWhere to set it upWhy it matters
Values reused across many workflowsGlobal VariablesStore common values once, then map them into workflow variables when needed.
Reusable data listsDatasetsKeep shared business data ready for mapping or lookup flows.

Actions

ActionDescription
variables:assignAssign values to one or more workflow variables

variables:assign

Maps input values to named workflow variables. Each mapping can reference a previous step's output, a literal value, or an expression.

Parameters

ParameterTypeRequiredDescription
mappingsarrayYesArray of variable mapping objects
mappings[].namestringYesVariable name to assign to
mappings[].valueanyYesValue to assign. Supports variable references (\{\{step.field\}\}), literal values, and expressions
mappings[].typestringNoExpected type: string, number, boolean, object, array. Used for type coercion

Example: Basic variable assignment

Example: Extract and restructure data

Example: Conditional value with expression

Connection

No connection required. This is a control flow node that operates on workflow-scoped variables.

Output

All assigned variables become accessible in subsequent steps via the \{\{variableName\}\} syntax.