Set Variable
The Set Variables workflow action allows users to assign or update values for the properties of a selected variable. This action is useful for dynamically modifying the properties of variables in the workflow context, such as entities, objects, or configurations.
Key Configuration Fields
Name
Enter a unique name for this workflow action.
Validation Rules:
The name must be unique.
The name length must be between 2 and 100 characters.
The name cannot be empty.
The name cannot include special characters, or spaces, or start with a numeric character.
Variable
Select a variable from the list of variables currently available in the workflow context.
Properties Mapping Table
Once a variable is selected, the system will display a table with the following fields for each property of the selected variable:
Property:
Displays the property name of the selected variable.
If the property is non-nullable, a value must be provided.
Operator:
Select an operation to perform on the property from the following options:
Set: Assign a new value to the property.
Unset: Clear the value of the property.
AddItemToList: Add a new item to a list (if the property is a list).
RemoveItemFromList: Remove an item from a list (if the property is a list).
Increment: Increase the value of the property (numeric properties).
Decrement: Decrease the value of the property (numeric properties).
Multiply: Multiply the value of the property (numeric properties).
SetToCurrentDate: Set the property to the current date (if the property is of date/time type).
Value
Dynamic field to specify the value for the selected property. This field dynamically adapts based on the property's data type.
Behavior After Configuration
Upon updating, the properties of the selected variable will be updated according to the specified operators and values.
No new variables or data will be added to the workflow context.
Editing the Set Variables Action
Always Disabled: Name field
Always Editable: Variable field, Properties table (Operator, Value columns)
Last updated