Start - Variables
- Last UpdatedJan 29, 2026
- 2 minute read
Variables Property Window
You can define workflow variables using the Variables property window. To open this window, click the Variables button in the workflow properties.
The Variables dialog box opens in a grid format. The grid includes a blank row where you can enter details for a new variable. At the top of the dialog box, two tabs are available to manage variables in the grid.
Tabs
-
Add Row - Adds the newly entered variable and displays a new blank row, allowing you to add another variable.
-
Remove Selected - Removes the selected variable from the grid.The grid has the following parameters that you need to specify for the new variable.
Variable Properties
When adding a new variable, specify the following parameters:
-
Workflow Variables - Enter the variable name. Prefix the variable name with @ to define it as a local variable.
-
Type - Select the data type from the drop-down list. The available data types are - string, number, date, array, actor, object, boolean, float, and decimal.
Dialog Box Controls
-
Update - Saves the newly added or modified variables.
-
Close - Closes the Variables property window without saving changes.
-
Last Row needs to be added - Select this check box to ensure that the last row added in the grid is saved.
Notes:
- Reset workflow variables to their default values when they are no longer required, typically at the end of workflow execution.
- To initialize a Date variable, enter the date in MM/DD/YYYY format.
- For variables with the Object data type, the value is displayed as JsonElement.
- Since BinaryFormatter has been removed for serialization and deserialization, use JSON serialization to deserialize objects stored in workflow variables. For example:
IObjectSerializer jsonObjectSerializer = SerializerFactory.Create(ObjectSerializerMethodType.JSON);
MyCustomClass myCustomObject = (MyCustomClass)jsonObjectSerializer.DeserializeJSONIncludingFields<MyCustomClass>((JsonElement)MyWFVariable.Value);
- Special characters are not supported in variable names. The following characters cannot be used:
! = | ~ # $ % & * ( ) + ` - { } : " < > ? [ ] ; ' , . /, and spaces.