Use Primitive Data Type Variables
Learn how to create and modify number, boolean, string, and any type of variables in your automation workflow.
Prerequisites
You have created one or several automations as described in Create an Automation.
Context
This workflow example demonstrates how to create a variable of type "number". You can follow a similar procedure for "boolean", "string" and "any" types of variables.
Procedure
-
In the automation, on the right-hand side panel, go to the Tools section and click Data. The dropdown list of different kinds of data is displayed.

-
Drag and drop Number data into the workflow of the automation.

-
Select the step Create number design variable. The Automation information panel appears.

-
Modify the Step name as per your requirement. Set an input parameter in the valueToAssign field. The value must be a number for a variable of type number. You can also modify the value of output parameter as per your requirememt.

-
Drag and drop CustomerAgeVariable under Number data into the workflow to update its value.

-
Select the step Set CustomerAgeVariable. The Automation information panel appears.

-
Modify the Step name as per your requirement. Set an input parameter in the valueToAssign field. You can modify the value of targetVariable field.

-
You can use the Log activity if you want to display the variable value at runtime.