Duplicate Variable

The Duplicate Variable action duplicates a variable in a botflow. It makes a copy of the variable and adds it to the running botflow in real time. This action is most powerful when it facilitates embedding a variable inside another variable.

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 Duplicate Variable action to create a new variable using the NameSuffix variable as part of the 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 Duplicate Variable action

  1. Click Data and select Duplicate Variable from the Actions list.

  2. Select the Variable that you want to duplicate. Optionally, click the Magic Wand to use the Expression Builder.

  3. Enter the new name of the variable that you are duplicating in the Save as field. Optionally, click the Magic Wand to use the Expression Builder.

  4. If desired, select Overwrite to overwrite (delete and then recreate) the duplicated variable's name, if it is the same as the original variable. If this option is not selected and the original and duplicated variable names are the same, an error message will appear.

  5. (Optional) Add a Note to document special instructions or functionality.

  6. Toggle the run switch to Run and click OK to execute and save the action.