Call Toll Free: 1-888-484-3535    

 Automation Anywhere - The Automation Software

Sample Tasks -> T13- Save Variables in a file and use it later in the task or pass it to other tasks

Task Description: Assign the values to variable while the task is running or save it to pass it to other tasks.

Solution
1.Create a variable
  • Go to Tools->Variable Manager and in 'User Variables' click on 'Add New Variable'.
  • Select a variable of type 'Value' and select the option 'Read from text file'. Specify the file from where you would like to read the values from. Screenshot 1
2.Assign the values to variable at runtime
  • Let's say you want to assign the value of $Clipboard$ variable to other variable and use that value later in your task.
  • Use "Log to file" command to log the value of the $Clipboard$ variable and thus assign its value to the variable declared by you.
  • Specify the values for the variable in the format described in the "How to Use" section. Screenshot 2
3.Process the assigned values
  • Use this assigned value of the variable in conditional commands for further processing later in the task.
  • In Screenshot 3 refer to a sample task that compares two excel cells and does the processing based on the contents.
 
You can create a variable to be read form text file. At runtime in the task, you can write the value of the variable in the format <variable>=<value>.

Assigning the values to variable comes in very handy when you want to compare data that is copied in the Clipboard one after another.

Screenshot 1:

Screenshot 2:

Screenshot 3:

 

E-Mail: Enter your email address to receive information about new products & offers from Tethys Solutions.


 PRODUCTS

 Automation Anywhere
   Standard & Premier
   Enterprise
   Integration Pack
 Workspace Macro Pro
 Workspace Macro
 Launch-n-Go
 Free Downloads
 Compare Products
 

 SERVICES

 Ask The Expert
 Consulting Service
 

 PURCHASE

 BUY NOW
 Pricing
 Upgrades
 Our Guarantee

 CUSTOMERS

 Customer List
 Case Studies
 Testimonies

 SUPPORT

 FAQ & Examples
 Have a Question?
 Open A Support Case
 Forums
 

 QUICK LINKS

 Productivity Essentials
 Developers
 

 GENERAL

 Partners
 Affiliates
 Articles: Macro &
 Automation

 Get RSS Feeds

 Press & News
 Contact Us
Home |Site Map |Privacy Policy |About Us |Contact Us

Copyright © 2003-2008 Tethys Solutions, LLC. All rights reserved. Trademarks