Skip to main content

Set variable

The Set variable action creates an app-level variable and assigns a value to it.

Configuration​

ParameterDescriptionDefault
KeyName (string) of the variable—
ValueA string, number, boolean, expression, array, or object—
DebounceTime in milliseconds to wait before executing the actionEmpty (no delay)
ToolJet - Action reference -Set variable

Triggering via RunJS​

actions.setVariable('<variableName>', <variableValue>);
info

For a full quick-reference of all actions' RunJS syntax, see Run Actions from RunJS.