Skip to main content

Set variable

Sophie avatar
Written by Sophie
Updated over a week ago

Definition and Usage

Set value of an existing variable. This command allows you to assign a new value to a previously created variable in your workflow.


Parameter Values

Input parameters

Parameter

Description

Possible Values

Required

Options / Notes

Variable type

Specify the type of the variable

String, Number, Boolean

Yes

Select the appropriate data type for your variable

Value

Specify the value to assign to the variable

Yes

The value must match the selected variable type

Variable name

Specify the name of the variable

Yes

Must reference an existing variable

Error handling

Parameter Name

Description

Throw error & stop

When an error occurs, the action will trigger an error and stop the execution of the entire app.

Retry command

If an error occurs, the action will retry the command in an attempt to resolve the issue and continue the process.

Ignore error & continue

When an error occurs, the action will be ignored, and the workflow will continue without interruption.

Variables produced

This action produces variables based on the variable name specified in the parameters.


Using Variables in Conditions

You can use variables in the Value field by clicking the {x} icon, which allows you to insert previously defined variables. When using variables, ensure that the inserted variable's type is compatible with the target variable type you're setting.


Notes

  • The variable must already exist in your workflow before using this command.

  • Make sure the value you're assigning matches the variable type; for example, a Boolean variable should only receive true/false values.

  • This command is useful for updating variable values during workflow execution based on calculated results or conditional logic.

  • If the variable doesn't exist, the command will throw an error.

Did this answer your question?