Managing Variables
You can use variables when working with wizards. Variables allow you to pass values from one operation to another while keeping each transaction distinct. For example, if there is an integration between Nintex RPA and Nintex Workflow Cloud, you can pass variables between these systems. The Workflow can trigger a Nintex RPA bot and pass a start value to it. This value will be captured by Nintex RPA as an input variable.
Input variables are used to receive values mainly from RPA Console or Nintex Automation Cloud. You can specify an input variable in the RPA Studio. This variable can then be filled dynamically from these external sources.
Follow the steps below to specify an input variable in the RPA Studio. You can then use it as an input from external sources:
-
In the Wizard Editor, click Tools > Manage variables....
-
In the Input variables tab, click Add input variable to specify the variable name that will be passed in from the external source.
-
The variable and its value is now ready for use by your wizards.
You have to manually type the full variable name when using input variables in wizards. The auto complete does not retrieve input variable names.
Also, note that nested variables are not supported for input variables. You cannot use an input variable inside another input variable since RPA Studio does not translate the special $ sign that is used in variables. We suggest you to use another symbol for the variable such as |string| and subsequently use the Replace Variable action command so that the wizard can replace your |string| with $string$ during runtime.
You have the option to specify initial values for variables that are used in wizards. This is useful when you want to test a certain step in your wizard.
If you specify an initial value for a variable (such as the contents of an email), the wizard will not need to perform that action (such as fetching the actual email, in this case) since it already has a value.
Follow the steps below to specify initial variables:
-
In the Wizard Editor, click Tools > Manage variables....
-
Click the Initial variables tab.
-
Specify the initial values for the variables that you want.
For more information, see Variables.