Automation Anywhere-Variables Faq's
How
do I use a variable in the task?
You
can use variable inside different commands like ‘Insert Keystroke', 'Open
Program/File’, ‘Files/Folders'. In all the commands variable
names
are specified by enclosing the variable names in between the $ sign. For e.g.
$Password$
If I
create a variable for one task, can I use it in another task?
Variables
created for one task are only available locally for that task and not for any other
task. But, if you have upgraded from a lower
version
to version 5.5 and above, all the variables created in the lower versions will
be available to you as global variables that can be
used
with any task.
List
variable can have many different text values. When I use the list variable
which value will be executed?
Every
time a task comes across a list variable during the playback, the next text
value in the sequence of the list variable is used. If the
list
variable reaches the last text value then its subsequent reference will return
the first text value.
Is it
possible to store special characters like Tab key in a variable?
Yes,
you can store any special character as a text value in a variable.
I
have to run a task that needs to use a different value for a variable in every
repeat. How
do I do that with your automation software?
Automation
Anywhere provides "Loop – End Loop" commands. You can place your
repetitive task inside a Loop – End Loop block.
You
can use a List variable inside it for data that keeps on changing with each
loop.
What
are these System Variables $CurrentDirectory$, $FolderName$ and $FileName$?
These
system variables are used with commands 'Loop for Folders in a folder' or 'Loop
for Files in a folder'.
Consider
a command in the task - "Loop for Folders in a <folder>".
Here
the <folder> is the specified folder on which the Loop will execute. Its
full path is available at execution time by the system variable
"$CurrentDirectory$"
If
<folder> has 'n' number of folders, the loop will be executed 'n' times.
Each time the $FolderName$ variable will have the next
folder's
name inside the specified folder.
Now
if the task is like "Loop for Files in a <folder>".
Then
$FileName$ will represent the next file name inside the specified folder.
Outside
the loop $CurrentDirectory$, $FolderName$ and $FileName$ doesn't have any
usage.
RPA OnlineTraining is the leading
provider of Automation Anywhere Training in Hyderabad. We offer the best
industry certified trainers who are experienced and have skills to provide
training for Automation anywhere training in hyderabad.