The “Set Variable Panel” allows you to update a specified interaction variable to a new value. Interaction variables are helpful because they can be used dynamically throughout logic flows to make decisions and track information.
Configuration
Panel name: It is recommended that you choose a name and keep it consistent. You will also need to specify the variable name to update. If the variable does not exist, it will be created.
There are different types of value types that you can choose from to update the variable.
Simple: The Simple value type updates the specified variable to a new string value.
Expression: You can also use an Expression value type to manipulate the values of existing fields. For example, you can use the Add expression to add two fields together, or the JSON Path expression to parse a JSON object to be stored.
Note that there is a 1,000-character limit on the value of variables set in Logic+.
Exit Paths
The Set Variable Panel has two exit paths: Default and Invalid Input.
Default: The Default path is taken if the panel execution is successful.
Invalid: The Invalid Input path is taken if one or more of the configuration inputs are invalid.
To return data to Classic Logic, dotCX, and action bots, you can use the Set Variable Panel and a variable naming convention of 'SharpenCX_ClassicLogic_<varName>'. The Classic Logic flow will have access to a call variable named <varName>.