Variables in Automation Anywhere

Variables Overview

Automation Anywhere provides an extremely powerful feature of using variables in your tasks. A variable is simply something that you can assign a value to. Using a variable in your tasks lets you run the same task again with different values, without re-recording your task.

How to create new variables?

You can create new variables using ‘Tools->Variable Manager’. Automation Anywhere provides you with a list of predefined variables called System Variables. You can create your variables under User Variables and optionally assign the values. You can use your variable in any number of tasks.

What are the different types of variables?

Automation Anywhere lets you create the following 3 types of variables.

1. Value (Single Value):

A Value type variable can hold text data. For e.g. you can assign your email address to an email variable. email=contact@tethyssolutions.com

2. List (Multiple Values):

By making a variable of type List you can assign multiple values to a single variable. List variables are very helpful if you use them inside the Loops Command. For example you can assign 10 different product names to a list variable. And put this variable inside Loop command. Each time the Loop will take the next variable.

3. Random (Random Value):

You can define Random Variables to hold two types of values i.e. a String and a Number. For Random variable of type String, Automation Anywhere will generate a random string value of the length specified by you. For the Random variable of type Number, Automation Anywhere will generate a random number within the range specified by you. Values for the Random variables are always generated when you run the tasks.