Create Variable
Introduction
With this action, you can create a new variable and assign a value to it. For example, you can create a $Discount variable and assign a value 0.5 to give customers a 50% discount and use this value to calculate a price for a customer:
Properties
There are two sets of properties for this activity, those in the dialog box on the left, and those in the properties pane on the right:
The Create variable properties pane consists of the following sections:
Action Section
The Action section of the properties pane shows the action associated with this activity.
You can open a dialog box to configure this action by clicking the ellipsis (…) next to the action.
You can also open the dialog box by double-clicking the activity in the microflow or right-clicking the activity and selecting Properties.
Data Type
Data type defines what type of data is stored in the variable. A variable can have one of the following data types: Boolean, Enumeration, Decimal, Integer/Long, or String.
Initial Value
Defines the initial value of the variable. The value is entered using an expression (the result of the microflow expression must match the data type of the variable).
Variable Name
Variable defines the name of the resulting variable. The variable can be used by all activities following this activity in the flow.