Reading variables from text file:

Automation Anywhere lets you define the values of your variables in an
external text file.
- You can declare the variable as a 'Value' or 'List' type using the Variable Manager.
- If you don't want to specify the value of the
variable at the time of variable creation and want the task to read the values
from the text file, you can select the option 'Read from text file'.
- When the Automation Anywhere task is running and when it comes across such
a variable then it will read the value of that variable from the file
specified in Variable Manager.
Following is the format the text file should follow in order to have
Automation Anywhere successfully read the values of the variables.
- One text file can have multiple
<variable>=<value> pairs in different lines separated by ENTER key.
- If it is a 'Value' type of a variable then it should
have only one value for e.g. 'myvar=value1' (without quotes) where 'myvar' is
the name of the variable defined in Automation Anywhere.
- If it is a 'List' type of a variable then you can
define the comma separated values for the variable for e.g. 'my-list-var =value1,value2,value3'
- The variable names are not case sensitive.
- Following is a sample of a text file holding different <variable>=<value> pairs.
Age=12,13,16,21
Games=Football,Soccer,Rugby
username=my-username
password=my-password