Save to State

With the Save to State action, you can save temporary values to the state. This is useful when, for example, you want to use the same value in multiple steps of your workflow.

To configure the action, first you need to create a variable to store the value you want to save or select one from the Variable dropdown if you've created it before. When creating a variable, make sure to select the proper variable type. Then, you need to pass the data you want to save in the New value field. The saved value will be available as {{state.<key>}} in all actions and components.

Examples

Saving the result of the previous step

You can always adjust the data before saving it.

Saving values with JS Code action

Reading state values

Resetting variables

Reset a variable to the initial value

Reset all variables

Adding additional values

Changing values

Deleting unwanted values

alternatively:

Joining array values

Using default values

Last updated

Was this helpful?