Rename Variable
The Rename Variable action renames a variable in a botflow. It changes the name of any variable in a running botflow in real time.
For example, if you have a variable named Orig_Var and a second variable named NameSuffix of which the value is a number, you can use the Rename Variable action to create a new variable using NameSuffix as part of the variable name and add it in a loop to create multiple variables.
Note: The Actions Quick Reference provides a complete list of actions that you can print for easy reference.
Create a Rename Variable action
-
Click Data and select Rename Variable from the Actions list.
-
Select the Variable that you want to rename. Optionally, click the Magic Wand to use the Expression Builder.
-
Enter the New name of the variable that you are renaming. Optionally, click the Magic Wand to use the Expression Builder.
-
If desired, select Overwrite to overwrite (delete and then recreate) the renamed variable's name, if it is the same as the original variable. If this option is not selected and the original and renamed variable names are the same, an error message will appear.
-
If needed, adjust the Run error task settings to fine tune how the action runs.
- Run error task: A botflow containing an error task automatically runs the error task in the event of an error. If the botflow does not contain an error task, the botflow stops in the event of an error.
- Stop on error: The botflow stops in the event of an error.
- Ignore errors: The action is skipped in the event of an error and the botflow attempts to execute the next action.
-
(Optional) Add a Note to document special instructions or functionality.
-
Toggle the run switch to Run and click OK to execute and save the action.