Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
179 views
226 pages
Automation-Anywhere - Examples
Automation-Anywhere - Examples
Uploaded by
Jannie Killburn
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Download
Save
Save Automation-Anywhere - Examples For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
179 views
226 pages
Automation-Anywhere - Examples
Automation-Anywhere - Examples
Uploaded by
Jannie Killburn
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Carousel Previous
Carousel Next
Download
Save
Save Automation-Anywhere - Examples For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 226
Search
Fullscreen
AUTOMATION ANYWHERE PRACTICALSZip Files That Are More Than 5 MB In Size Task Description Copy all the files ofa folder that are more than 5 MB in size to another location and zip all the copied files with the current date as the zip file name 4) 134,atmx 'S) Note: Save the .atmx ile in My Documents -» Automation Anywhere -> Automation Anywhere -> My Tasks Solutions 1. Create New Task © Click on New-> Task Editor. 2. Copyall the files having size more than 5 MB From the Program/tiles/Windows category, select Files/Folders command. In the Files/Falders wizard click on Copy File(s) option. Specify source & destination folder. Copy Files "C:\MyFolder\*.*" to "C:\MyFolder\Documentiles\" if file size is at least 5120 KB Click on the “Advance View >>" button and then click on size. From the list select at least, and specify the size asin the KB texthox. e.g, for SMB specify 5120 KB for IMB specify 1024 KBernst tne \\ oom. Vr Pe Ft aa te bes Fomaesoer 3. Zipall the files from a folder From the Program/Files/Windows category, select Files/Folders command and select Zip File(s) ion. Specify the path from where you want to zip all the files, also, specify the destination zip file name along with the path. To specify today's date as filename, press F2 for the list of variables. Select Day variable, again press F2 and select Month variable, and again press F2 and select Year variable, and at the end specify"zip" as the extension, Zip file(s) from "C:\MyFolder\Documenttiles\" into file ’\MyFolder\DocumentFiles\$Day$_$Month$_$VearS.zip"Copy Fies Delete Fes © ZpFies Prat Fle ‘Open Fle Specity File(s) to Compre [EAyFoldeADocumertFles ———SSSSSSS~=*d és €.9, CAMlyFoldert “i TIP: Press F2to inset vanable. File Type: (Optional) (G T1P: Press F2t0 inset variable. 80. .d0c OR dozer xt Note. Specity mitipie Fie Type separated wit, (semicolon) 9. CAMyfie\fie 2p |G TIP: Press F2to inset variable. Advanced View Save _) | Cancel When you run this task, it copies all the files that have size more than 5 MB, zip's the copied files with the current date as the file name. Using OCR To Integrate With Command Line FTP Task Description Web and Desktop applications are filled with images that need to be converted toa readable text for certain actions to be performed. OCR technology is used to do just that. The task below logs into FTP server via DOS and waits to check if logged in successfully. It uses OCR technology to retrieve information from Command Prompt in to readable text to check whether login was successful8) 179.atrmx. Ri note: Save the xs nC: drive, the atx fle In My Documents» Automation Anywhere» Automation “Anywhere > My Tasks Solutions 1. Create new task © Click on New -> Task Editor. 2. Insert Open Program/File command to open command prompt ‘Type cmd.exe in program/file text box. Save the command |G TIP: Press F210 insert variable. ‘Step 2:'Star in Path (optional) | TIP: Press F2to inser variable, ‘Step 3: Parameters (optional) <5: “Ey FoetTeaLae | Tar: Pree Zit vei ‘Step 4 Launch ProgramFie (options!) | Launch ProgramFile 3. Enter necessary keystrokes required to log in to the ftp server. 4. Insert Loop command © Insert § times loop command.Insert OCR command to capture the text from command prompt Select window from the drop down, ick on view capture text. Select variable from drop down, Click on save button, Bow ocr Step 1 Select Option apa mage By Pat Carte ape By URL amrstter C Windows terion xe © Step 3: Assign he captured text os vrai when theta rune Fterthe cxtue et Tone conredtae Assi be vate toon exning varie [See Viale Enter if command to check logged in successfully or not. Enter $str$ variable. Select Indudes operation, Select Fix option. Type logged in in fx text box, Save the command.FronotAssormert |g TP: Pres F2toinoet vaable es) Fe foggedin varioe [SSSC*Y @ TIP: Press F2to nett varible 7. Enter exit loop command in if condition. 8, Save and Run the task. When you run this task, all the commands necessary to login to server are entered. It waits for some time to login to server. It uses the OCR technology to check whether login was successful or not. Using Application Integration To Integrate Terminal Emulator Program Task Description Often businesses need to get data from application windows that have no way of getting data. For such cases, Automation Anywhere features Agp Integration. This task checks if a user has logged in successfully to a FTP server using Putty. It captures data from Putty application window and checks for the string logged in to ensure the user is logged in successfully ) Te.atmx Note: Save the .atmx file in My Documents > Automation Anywhere -> Automation Anywhere -> My Tasks Solutions 1, Connect to remote machine using Putty © Insert Open Program/files command.|G TIP: Press F2to inser variable. ‘Step 2: ‘Start in’ Path (optional) |G TIP: Press F2to inset vanable. 9, “Ey FolerTestxs" TIP: Press F2to inset varabe ‘Sian 4: Launch Programe (ontiona (Launch Program Type path of putty exe for e.g. C:\puttytel exe. Double click on Manage Windows Control command found under Programs/Windows/Files command category, select Putty application window, capture Host Name of the Textbox and Set Text option specify the machine name for e.g. PcManage Windows Controls Select Option = select Action UT tel Confguation > (netesh }o | [Sato : Canture ) lek na oi ne Captre buton and ras ne Tenia set (Tawar cnieltalyes wanio car pa |G TIP: Press F2to insert variable Location: —_X=0,¥=0,Width=0;Height=0 Wat forte conritoexst(n seconds): [75] 1) Capture 3 contrl ofa spectic type Save | Cancel | Double click on Manage Windows Contra command, select Putty application window, capture radio button of Telnet and select Select the Radio button optionLocation Xe, Y=0.Neth-O Height Wat forte contralto ext (a seeanas): [15 ] 1) Capture a control of 2 spectic type Save | Cancel | Double click on Manage Windows Control command, select Putty application window, capture (Open button and select Click option.Locaton: —_X=0,¥=0,Width=0;Height=0 Wat forte conritoexst(n seconds): [75] 1) Capture 3 contrl ofa spectic type 2. Login to FTP server using Putty © Insert necessary keystrokes commands to login to ftp server.(a) (3) (0) (x) Fe) Se re SS a Se oe “TIP: Press F2to inset variable, 3. Use App Integration command to capture the data in Putty window © Double click App Integration command, select Other from drop down of Application, select ‘window of putty application, click on View Captured Text window and select Prompt- Assignment from the variable drop down.4 [B App integration App Integration Step 4: Select application tye (00 Command Prompt (Sanaa stop 2: Salect option © capure Wadow case Are Step: Select window Captured Te Flere cxptrediod ennai CWnarraysentond oe = Cenyngte) 208 erent Corporation A Tamthe capes tot CuUseranea soantonae Assign ne voue tan exsing varebe [Frangt esonnent ‘Vlamein dive fe OS Win? 8 Yoke Sevl Naber 415.878 2v0a20t 1701
Using If command check if user is logged in successfully Double click on if command found under Conditions/Loops command category, select Variable option and click on Edit button, insert Prompt-Assignment using F2 key, select Includes option from the drop down, select Fix option and type logged in in text box A Variable arable: [Prompt-Assiormert |g TIP: Press F2to inset vanable Operator: [Inches = vue: @ re fasoedn | ] 1g TIP: Press F2to inset vanable Save} | CancelYou can put this command inside Loop times command to repeat the action in case the system takes time to login. Insert Exit loop command inside if command if ftp server is connected. List| Select Varable Each row m an Excel dataset Each row ina SOL query dataset Each folder in folder Each node fan Xi. dataset “save _} (cance! 5. How to run the task In case you do not have Automation Anywhere installed, please download and instal © Save T100.atmx under location, My Documents\Automation Anywhere\Automation ‘Anywhere\My TasksVisualize [¥| Mouse Moves [| Keystrokes [7] Mouse Clicks ca Open: "C:\putytel exe * IE Set Test of Tet Boxin Window: “PuT Titel Corfigration” Text."pc3 iE] Set Status of Racho Button in Window: “PUTT tel Cofiguration” Value: “ [| Chek On Command Basten: ‘Open’ in Window: "PuTTYtel Configuration” D Keystrokes: Admin(ENTERIn "bc9-PuTTYte™ Keyetrokee: afENTER}in "pc9- PuTTYtel” GD Keystrokes: AplENTER] n “peS- PuTTVel™ D Keysrkes: Your Server NamelENTERIin "bc9- PuTTYtel” @ Keytrkes: UserNameJENTER]in po8 - PuTTMel” Keystrokes: PasswordJENTER] 9 "pe9 - PUTT © Stat Loop "5 Times Comment: Please erter your commands ole. ‘pp Integration: Capture te from wndow “pe 9 - PuTTMte” and assign to $Prompt Assignments F SPrompt-AssnmertS Includes “ogged in” Then ‘Comment: Please erter the condtional conmands here Bit Loop bu End Loop Torun this task edit the commands and make necessary changes related to ftp server and putty exe path, When we run this task it opens putty application; enter user name and password necessary to login to ftp server and capture the text and checks if it contains logged in maximum five times until the ftp server is logged in successful. Use Automation Anywhere Services With Your Scripts- VBScripts_JScripts Task Description Use Automation Anywhere services with your scripts, Solutions 41. Use your scripts from Automation Anywhere ‘Automation Anywhere serves as.an automation platform to run, integrate, schedule, and manage scripts such as VBScripts and JScripts. Following isa list of features from Automation Anywhere that you can leverage with your existing scripts.Set different Repeat options for your scripts Send Email notification once the script is over. You can set it up from the 'Notification’ tab Assign a Hotkey to the script to launch it instantly Schedule it by clicking on ‘Schedule’ button and specifying the scheduling options. Transfer Data From Excel To Any Application Task Description ‘Transfer data from Excel to any application. Pre-requisites: Before you run this task, your Excel fle and the destination application, beth should be open, 157.atm ‘note: Save the .atmx file in My Documents > Automation Anywhere -> Automation Anywhere -> My Tasks SolutionCreate new task © Let's say you want to transfer the data present in Excel column as shown in Screenshot 1. (E]B00ld -MicrosoRtE.. as - ~ Chris O'Brien Christopher kK. John Smith Jonathan Brown Patric Duprey M491] sheet “SINT I rs We will create a task that transfers one cell of Excel and then we will set the Repeat property of ‘Automation Anywhere to transfer multiple cells to the destination application. In the main Automation Anywhere window click on Tools->Task Editor. From the list of commands, double-click the ‘insert Keystrokes Select the title of your Excel fle from the dropdown list and specify the keystrokes to copy one cell data as shown) &) (Caetock } [Osteo] [end ) [Page Donn] [_Pawe } (1 ($1) [Seotleck ) ‘© lick on Save button in the Insert Keystrokes command. © Now your task looks as shown:© Nowenter another Keystroke command in the same Excel window similar to above command, but in this command enter the keystrokes to move to the next cell for e.g. Down Arrow as shown: “TIP: Press F2to inset variable. © Save the command. © Now the task should look as shown:a Task Actions List [Wom visuatze Fitters: — [¥] Mouse Moves (7) Keystrokes (¥] Mouse Cicks [7] Delays 1 @ Keystrokes: [CTRL DOWNSICTRL UPIin “Names s“" 2 @) Keystrokes: (DOWN ARROW] in “Naess” 3 @ Keystrokes: (CTRL DOWNDICTRL UPJIENTER] in “Names doc™ Now let's paste the data (copied from Excel) into your target application. Here for illustrative purpose we will use Microsoft Word but it can be any application. ‘As shown above, now enter the keystroke actions in the Word window to paste the copied data.. In above Keystroke action, we also move to the next column in the Microsoft Word table using ‘the Right Arrow after copying the data Now the complete task will look as shown in Screenshot 7. Save the task and give it appropriate name. “Properties Schedule Tigger tine | [7 Upon eror continue wth nest repeat 2. Transfer multiple rows from Excel ‘After saving the task from editor, come back to main Automation Anywhere window. Select your task from the list and click on Repeat section under Properties tab and specify the number of repeats. This is equal to the number of rows you want to transfer from Excel ‘window to Word window in this example.3. Pre-requisites before running the task © Since in this task we are not using any mouse clicks to select the frst cell, it is essential you keep the first cell selected in your Excel file before running the task as shown in Screenshot 1. © Keep your destination application also open. When you run this task, it copies one cell of excel using keystrokes and pastes it to the target application (Microsoft Word in this case) using keystrokes. When the task is repeated, it transfers as many calls from Excel to Word. Transfer Data From Access To Excel Using Excel Integration Task Description Transfers product data from Access to Excel using Excel Integration. 8) 165. atm 'S Note: Save the .atmx file in My Documents -» Automation Anywhere -> Automation Anywhere -> My Tasks Solution 1. Connect to database From Application Category->Database, Select ‘Connect’ option. For our example we are using MS Access as the database, but other databases like Orade, SQL Server, My SQl, MS SOL, etc. may also be used. Select SQL query option and specify the query. e.g. select * from Employee. When the query is executed, it will return all the data of the Employee table.Table Toots Employee Database (Access 2002 ~2003 file format) Microsoft Access save Fsoening kL nw wwe) gy A Zhe My Bean: gy Sata EVIE) SIE) |X came luo | | = Broonceas BN = cote 1 er oder 1 Select Sort Fier Find) ‘CustomerName- Addressl | Address? -| City ‘State - |Add New Field Nick smith 405, Park ven Oxford Street NY wy 13 Jack Dolson 101, Blue Sea P Orange County Acton a M4 Alexander Cruze 5260UItle Mot Apt B16 __ San Benardinc CA 15 David Tall DULS6SthSt AlfredOr Lansdowne PA 16 Bennie Cage 6085 Magnolia TrickumRd Rex ca 17 GregTail 2543, Mountai Straight Rd NY Ny 18 Jonathan Gray 101, Red Moun New Lake Dr Boston a 2. Open Spreadsheet © From Application Category->Excel, Select ‘Open Spreadsheet’ option,|] @ “s TIP: Press F2to insert variable |G TIP: Press F2to inset variable. SSS ‘2g Sheett or SHEET! TIP: Press F2to inset variable. (Load Addins 3. Transfer Data Insert the commands to paste the data from the database into the Excel spreadsheet. ‘The commands for pasting data into Excel are: Excel : Go to beginning of the row of the active cell Excel : Set value of Active Cell with "SDataset Column(1)$" Excel : Go to one call right of active cell Repeat above commands for each column af the access database. Insert a loop for each row of the database After the task runs the Excel spreadsheet will contain the employee data._— Task Actions List Wamu! views | ry ‘Fmers: [7] Mouse Moves [Z| Keysokes [J] Mouse Cicks [| Delays [¥| Cher Windows [Al \# Connect to "Frovider=Mcroac et OLEDE 40.Det Source=C \Enployee mob Perms Secumy Ifo=Flse™ Sexson Defout @ Execute SOL Staterert: elect “fom Table’ Session Detaut™ (BH Breet Open Spreadsheet °C \Enpoyee sie. ActiveSheet:"Defaut™. Session: Deut Ese: Goto endo the row of the active cl. Session: Defau Excel: Go to bering ofthe row ofthe active cel. Session: Defaut Excel: Set va of Active Cal with “SDataset Colum). Session: Defaut Excel: Goto one cal ight of acive cel. Session: Defaut Enea! Set va of Ace Cal wth “SDotaset Columns" Session: Defout Excel: Goto one cl ight of acve cal. Sesion: Delaut Excel: Set value of Active Cal with “SDataset Column)". Session: Defaut Excel: Goto one cl ig of actve cel. Session: Defaut Enea: Set vale of Active Cal wth “$Dataset Colm)", Session: Defout Encel: Go to one cl ight of acve cel. Sesion: Detaut Excel: Set value of Active Cal with “SDataset Columns)". Session: Defout Excel: Got one cal ight of actve cel. Session: Defaut Excol: Set val of Acve Cl wth “SDataoet Column)", Secson: Defaut Excel: Goto ane ol ight of actve al, Seen: Dtaut Excel Se value of Active Cal with “$Date Column6)8" Session Defaut Excel: Gota cre celeb the sctve cel. Session: Defaut End Loop Eros. Close Soreadshest, Session, Default a a a a a a a a a a a a a a 5 a « Employees - Mero xe! = Pagetarevt Fomutnt Osta Reiew View (YA come =a) | coe ee eae ok) Ew ae a Se la a Gaal | c 113 Jack Dobion 10%, ue Sea Park 2. 1 Alexander Cruse S240 tle Mountain Or Apt 816 31s Dawa a sesmst aresor 415 penne Cage (ons Magra Rig Tika Rd 5.17 GreaToll 2548, Mountain View — Svaghthd Seared 618 Jnatnan Gray 1O1.RedMounainst New ake OF Newiake Or 710, 405 ParkAvense —_OrferdStreet_—_ Orford Street. When you run this task, it reads the values from a database and inserts them one by one into the Excel spreadsheet. Test And Validate Online Shopping Cart FunctionalityOnline shopping cart is arguably the most important part of an €-Commerce site. Testing shopping cart is essential to success of any E-commerce site, This task shows how you can test online shopping cart. ‘Note: This sample task uses an example of www.barnesandnobel.com just for illustrative purposes. (a) T49.atrnx 'S) Note: Save the .atmx ile in My Documents > Automation Anywhere > Automation Anywhere -> My Tasks Solutions 1. Record anew task Click on Tools >Web Recorder. ‘Type in ttp://www.barnesandnabel. com and click on Start Select ISBN from the dropdown. Enter any ISBN number for e.g. 074322566X Click on Search, Click on ‘Add To Cart’ Click on ‘View Entire Cart” Click on ‘Import Table’ button from the toolbar on the bottom right hand corner ofthe screen. Click in the ‘Price’ column to capture the pricing table. ‘Stop Recor ding and Save the task. Tastactions st (HERI mate Eee Bees Ceeon Knee ow een le Enpeberet ot mer renersneesigceneg ivrenaietylerenny orto ewert merrell 2. Validate your Shopping CartAfter Import Table command is executed, you can use System Variable command, $Table Column(index)$ to extract the row data of the Table when the task runs. Open the Task in Editor to insert loop and conditional commands to validate the shopping cart. Insert a Conditional command inside the Loop command to verify if the $Table Column(4)$ has the value 16.00 i.e. the price of the book. This way when you run the task it will import the tabular data of the shopping cart and look for the expected price and if found, will show a message box How to find which index to use in System Variable $Table Colurnn$? While recording, when you click on the Import Table and capture a table, it will ask you for a csv filename. Specify a valid filename, Run the recorded task once. it will generate the csv file Open the csv file in Excel and find out which column your dats is in and that is the index you need touse, gid o-o- FT ene ner macetnyot fea ae Ja Copy ~ SY f rormat Painter | B 2 YU ~ cipbews 2 A B 1 |auantty Desaription Price 20 Warrior - An $16 3 4 caubn When you run this task, it adds one book to the cart and validates the expected price of the book in the shopping cart. Terminal Emulator Automation-Checking For Malware In Remote Machine ‘Terminal Emulator Automation: Checking for malware in remote machine by looking at which programs initiate connectionsTask Description This task shows you how using Automation Anywhere, you can easily automate any type of Terminal Emulator. This example looks at the programs on the remote machine that are making connections with the outside world, and check if any unexpected program or malware is present in the list, 8) 178.atx Solutions 1. Create new task Click on New -> Task Editor. 2. Connect to Terminal © Using the Terminal Emulator command, select the Connect action. © Specify a Session name. Specify the Host name and Terminal prompt of the remote machine to connect. 3. Wait til text login appears on terminal screen Select the Terminal Emulator ->Wait action, Specify the Session name. © Select Wait tll text appears option in Terminal Event © Specify login as Text.Terminal Emulator Select Command: Connect ‘Send Text set Fils Get Al Fields @ war Wiait For Terminal Event : ‘Session Name password ‘Watt Tene Out (hn itzeconds) froooo |S TIP: Press F2to insert vatable 4, Send username to Terminal © Select the Terminal Emulator->Send Text action. Specify the Session name. Specify the
for the remote machine as Text. © In Wait for terminal promptto appear, select Dont Wait:Terminal Emulator Select Command: [Y) Send akey ater sending the above text (KEY_ENTER > ‘Wat forthe terminal promot to appear Dont wat (G TaP: Press F2to inset varble 5. Wait till text password appears on terminal screen Select the Terminal Emulator->Wait action 2 Specify the Session name. © Select Wait til text appears option in Terminal Event. Specify password as Text. 6. Send password to Terminal © Select the Terminal Emulator->Send Text action. © Specify the Session name. Specify the
for the remote machine as Text.In Walt for terminal prompt to appear, select After sending text 7. Send netstat command to Terminal © Select the Terminal Emulator->Send Text action, Specify the Session name. Specify the command netstat b as Text and redirect the output to a file in the shared folder of ‘the local machine ln Wait for terminal promptto appear, select After sending text. Terminal Emulator Select Command: Connect © Sena Text 0) Breet Tet Text fest b> Shared Folder \Net_Staisics be [Y) Send akey ater sending the above text KEY_ENTER, > ‘Wat forthe terminal prompt to appear [Aer sending text |G TIP: Press F2to insert variable 8, Disconnect from Terminal Select the Terminal Emulator -»Disconnect action. Specify the Session name.Save the task. Task Actions List [NOWINT viuatee rr Tiers: Mawe Noe thes) wets Deo Ober con (a 7 1 lb Toma Emer: Conrectta Toran "
”- Type: “ANSI” Soon: “Ssaent™ | Terral Emir: Wat tet "og" appa on term sen: Sesion "Sess |i Tema Ent Sand Tad “Userave>" flowed by "KEY, ENTER” to Tein Seteon "Season? i Toma Emule: Watt “psewers” appear enterana seen; Season “Season” lt Tema! Emubtor Send Te "
" lowed by 'KEY_ENTER"to Temi: Setson "Season (m Teminal Emiatoc Sand Tat nett b>
10. How to run the task: Copy T97.atmx to location, My Documents\Automation Anywhere\Automation Anywhere\My Tasks Change remote machine name, usemame, password and folder name as per your computer. Launch Automation Anywhere and from Task List select T97.atmx and click on RUN button to run the task. Synchronize Modified Files With FTP Server Task Description Daily synchronize modified files with FTP server. (8) 156.atme 'N. Note: Save the .atmx file in My Documents > Automation Anywhere -> Automation Anywhere -> My Tasks Solutions 1. Create new task © Click on Tools ->Task Editor. 2. Connect to FTP server © From the Internet Category double-click on FTP command. © Insert a FTP connect command to connect to your FTP server.3. Move your daily work files to a pre-defined folder From Program/Files/Windows category double-click on Files/Folders. ‘Select the Copy Files option Specify the source and destination folders. In advance option, specify an option to copy files modified only within last 1 day. your files with FTP Insert a Loop command to Loop for each file in 8 folder where your files reside. Within the Loop, insert an FTP Put File command to upload all the files modified within last 1 day. 5, Schedule the task ‘© Using the schedule property in the main Automation Anywhere window, schedule this task to run after midnight so all the files modified today will be uploaded to the FTP server. If Folder Does Not Exet ((C\Temp") Then Create Folder "C\Temp” dF Delete Fes °C \Temp\"“" Copy Fes "C\Web Html Pages\"~"to "C:\Temp" fle i medtied i nat 1 dye Start Loop "Each Fie ln Folder C:\Temo' When you run this task, it will copy all the files modified today to a temporary folder. Then it will loop ‘through each file in the temporary folder and upload them one after another. Synchronize Folders Task DescriptionSynchronize two folders 48) 132.atmx 'S Note: Save the .atmx file in My Documents > Automation Anywhere > Automation Anywhere > My Tasks. Solutions 1. Create New Task Click on New -> Task Editor. 2. Loop through each file in a folder Using the Loop command from the Conditions / Loops category, select "Each file in a folder’ option Select a source folder by clicking an the "Browse. Start Loop "Each File in F:\Sourcefolder’ End LoopSelect Loop Command : @ Start Loop © End Loop ‘Loop For: Tees © Ust{ Select Venable |g) Tap: Press F2to inser vaiable Condtion Each row in an Excel dataset © Each row in an internet Explorer Table ©) Each row in a SQL query dataset @ Each fle m a folder © Exch folder in» folter Each row in CSViText fe ©) Each node in an XML dataset Each emai message on server a | | TIP: Press F2toinsest variable Save || Cancet 3. Check or the existence of the file in the destination folder © Using the IF command from the Conditions/Loops category, select "File does not exist" option from the IF interface, In the "Select File” textbox specify "F:\DestinationFolder\$FileNames.$Extensions". Note: "F-\DestinationFolder\": itis destination folder in which the current file is to be searched. "$FileNameS.$Extension$": $FileName$ and $Extension$ are system variables $FileName$: Contain the name of the file currently referred in the loop without the extension. $€xtension$: Contain the extension of the file currently referred in the loop.© Fle does not exist Fokier does not exist Wadow does not exist ‘Application not running Sept successtul Script unsuccessful ‘Task successful Task unsuccessful Ping successful Ping unsuccessful Vriae Web Control Fle date Fle size Service running Service not running Image Recognition Windows Control Seiect Fie __|F \DestinaionFolder $FieNameS SExtenson$ ‘Y TIP: Press F2to insert vatiable How long would you Bke to walt for this condition tobe true (in seconds)? Save _| | Cancel 4. Copy the file from the source folder, if the file does not existin the destination folder Using the Files/Folders command from the Programs/Files/Windows category, select "Copy File(s)" option from the Files /Folders interface. In the "Source Files) with Path" textbox specify, "F:\SourceFolder\$FileName$.$Extension$" and in the "Destination Folder with path specify "F-\DestinationFolder\$FileName$.$Extension$' Note: "F:\SourceFolder\": It is the source folder referred in the loop, from which the file has to be deleted. “F:\DestinationFolder\": itis the destination folder, whose files are compared withthe source folder.Browse 29. ClMiyDoel.doo “| TIP: Press F2to inser vaniable. Destination File(s) / Folder: [FOesnstonfaldesFleNaneS Sézenson$—__—|_ Browse 29. CABackuo\ |g TIP: Press F2to inser variable. 9, CABactupl* doc Synchronize destination folder Repeat steps 2, 3 and 4 for coping files from destination folder that do not exist in the source folder.a Task Actions List Wom visuatze (Ge) Gees) | Fiters: [Z| Mouse Moves [¥) Keyetckes [¥| Mouse Cicks [J Delays [¥7) Other Windows [Al © Commert: Loop through each te na folder © Stat Loop "Each Fie ln Foler F.\SourveFolder” © Comment: check the curert fe reed inthe loop extsin destination Folder (it Fle Does Not Et ('F \Destnationder$FleNameS.SExenson$") Then ‘Comment: File nt found inthe Destin Folder. hen coy the fe from Sou Folder End F End Loop (Commert: Loop through each fen folder Stat Loop "Each Fe In Felder F\DestnatonFoider” (Comment: check the curent fe refered inthe loop extn destination Folder IF Fe Doce Not Exit ("F.\SouceFolde$FieName’ $Extension$") Then ‘Comment: Fe nt found inthe Destination Folder hen copy the fie from Source Folder Copy Files “F \DestnaionFolder SFlelames SExension$" to "F \SouceFolder\$FteNames Sensis” End F End Loop o80 Os g00ern When you run this task, it will create new folders in your given drive and backup data from your local folders to these newly created folders. SNMP To Manage Agents Task Description ‘Managing various agents across the network by setting a new value and sending email f any authentication fail (a) 175.atmmx 1S Note: Save the .atmx file in My Documents > Automation Anywhere -> Automation Anywhere -> My Tasks. Solutions 1. Greate new task © Click Tools > Task Editor. 2. Getvalue ‘© Select the ‘SNMP! command,Select Get option. © Select the variable to store the value. @ Get was SHMIP Agent: Agent [TestAgent eG1S218412 TIP: Pres F2toroet vane comany pie J TIP: Press F2to inset variable. ee 29136121150 @ Tip: Press F2to inset vaable. Teo at Logie: [CASNMPLoghe Assign the vate ‘anexaing varable (Select Venable Set new value Using If variable command check the value of the variable. © If the value is oldValue then set new value using Set option of the 'SNMP' command.4 ox wat sur agent: Agent [TestAgent coomniy ae (Y TIP: Press F2to inset vansble. (O10 Specifications : OpectD: [136121150 20136121150 | TIP: Press F2tomser variable ‘Trap Type: | Select Trap Type. =| Trap Specitic Number :[—SSSSS~*d LogFie: [EXSNMPLogbt View Advanced View (save _] (cancer ) Get info if any trap at agent side and send email Select the ‘SNMP! command, Select Send trap option Specify the agent, objectid and select trap type. © Using Send Email command send this trap log file which has all details.ne Task Actions List (Wem Viswatze Ga) Gea) raters: aes) Koyker) Mowe ck) Dain Or Wows [a (© Cormert St the new vabe ofthe paul eject dbus St oto of SNMP commare [SNMP set: Agee: ethgert”:O1D:°1361211 50 atthe vue “Nowak” pe Oar 1 Carmert Check faahercaion it he parikr pect by uang See Tap pion f SNMP comand [B SNMP Send Tp: Agere: ete: O1D: "136.1211 50° Tap Tipe “Ashertcaon Fa" (© Conment: Send the loge through emad using ‘Send Ema command. © Send Ema Subject "Automation Anywhere fished executing the task "wth Atachmert() When you run this task, it will get the value of the OID of the particular agent, check it with the fix value, ifits oldValue it will set the new specified value. An email will be sent with the log file of trap if any authentication falls. SMS Marketing Task Description ‘Send the same message toa list of mobile numbers through yahoo. \#)T08.atmx Si Note: Save the .atmx file in My Documents -> Automation Anywhere > Automation Anywhere -> My Tasks Solutions 1. Greate a List of mobile numbers Create List Variable from Tools Menu > Variable Manager. Make sure User Variables tab is selected, lick Add New Variable and in "Type" selection select List. Type user names. Give an appropriate name to List Variable (say MobileNo) and save the List Variable.Add Variable Select Action : Select Viable From List Record a Task Record 2 task to send a message to one particular mobile number through Yahoo Messenger's Text feature ("Start a Mobile Conversation" feature). Replace your mobile number in the task with the variable Open the task in the editor. Identify and edit the keystroke action that has the phone number and then replace the phone number with the variable you declared earlier (say "MobileNo"),‘Select Window : Send a SMS Meseage| E] Enoypt Keystrokes @ — Adattonal secunty Keystrokes: [sMobieNos 4, Loop through the list of mobile numbers Identify the action from where you started a mobile conversation, from there tll yau had sent the ‘mobile message and put all those actions inside @ Loop command for list variable "MobileNo’.as ‘Mouse Moves [7] Keystrokes [7] Mouse Gicks [Y] Delays [7] Other Stat Loop "List Variable $Mobiletos” (Comment: Please erter your commands to loop. Mouse Chick: Left Bution (568.242) in "Yahoo! Messenger” Keystrokes: $MobleNoS[ENTER] in "Send SMS Message" Keystrokes: $MessageS{ENTER]in “SMS Message” Delay: (3 sec) Keystrokes: (ALT DOWNDIALT UPlin “SMS Message" End Loop eenBecdo0 When you run this task, it will send your message to all the mobile numbers in your list, Server Monitoring Task Description Monitors the server and send an email alert if the server is down. a) Tao.atmmx Si note: Save the .atme file in My Documents -> Automation Anywhere -> Automation Anywhere -> My Tasks Solutions 1. Create new task © Click New>Task Editor, 2. Monitor the server Select Loop command, select "Start Loop" option and select ‘Condition’ Select 'Ping Successful’ option Specify the address of the server of to be monitored. Insert some delay so that loop is checking every few seconds or minutes.Fle does not exist Fokier does not exist Wadow does not exist ‘Application not running Script unsuccessful Task unsuccessful Ping unsuccessful Web Control Fle size Service not running Windows Control |g TIP: Press F2to insert vale How long would you Bke to walt for this condition tobe true (in seconds)? ‘Save Notify Administrator If the server crashes, the task will stop executing the Loop and will send an email alert.Task Actions List (TT visuatze | Filters: [¥| Mouse Moves [) Keystrokes [V) Mouse Clicks [¥| Delays [| Other Loop Wie Ping Successful (‘ww myservercom") Comment: This wil loop uni the Serveris up. wi ping every 1 minute Delay: (60000 ms) End Loop If Ping Successful Cwww myservercom") Then ‘Commert:F server is down, send emaito the administrator Send Ema: Subject "www myserver com” - Server Down wth Atachmert) End F ‘When you run this task, it monitors the server constantly. As soon as the server goes down or stops responding to Ping requests it sends an email alert. Send An Email To A List Of Contacts Task Description ‘Send an Email (e.g. a Marketing email or newsletter) to alist of contacts. \8) 104,atm (Solution A) and ‘A Todr.atmx (Solution B) 'S. Note: Save the .atmex ile in My Documents > Automation Anywhere > Automation Anywhere -> My Tasks Solutions You can send text emails to your list of contacts using 'Send e-mail feature provided by Automation Anywhere. See Solution - A. If you want to use your own email client see Solution - B, Solution A 1. Greate list of email addresses Create List Variable from Tools Menu-> Variable Manager. Make sure User Variables tab is selected. Click Add New Variable and in "Type' selection select List. Type email addresses. Give an appropriate name to List Variable (say MyContacts) and save the List Variable.\s TIP : Press F2to inert vaiable |s_TIP:: Press F2to insert variable. |g TIP : Press F2to inset vatable \y TIP: Press F2to reer varable [Adtomation Anywhere fished executing the task (TIP: Press F2to inset vanable * (V TIP: Press F2to inset vale \y TIP: Press F2to insert vaiable (save |\_ Cancel | 2. end text e-mail toa list of email addresses © Select ‘Send email! command from the Internet’ category and insert the list variable (MyContacts) in the TO’ field. © Keep this command in a Loop for List variable.Task Actions List Wammal”)visuatze ou) Fiters: [7] Mouse Moves [7] Keystrokes [7 Mouse Cicks [7] Delay [Z] Other Windows |) © Stat Loop “List Variable SNyCont © Send Emai: Subject “Asomation Anywhere fished executing the task " wth Atachmert(s) & End Loop 3, Greate list of email addresses Create List Variable from Tools Menu -> Variable Manager. Make sure User Variables tab is selected. Click Add New Variable and in "Type! selection select List. Type email addresses. Give an appropriate name to List Variable (say MyContacts) and save the List Variable. 4, Record task to send an email © Click on Record to Record a New Task.Open Outlook Express (or any ather mail program). Create a new mail. Insert your own em: address in To field, Enter Subject, Message & send email. Once mail is sent, stop the recording &i save the task. 5. Replace To email address with email lst In the Task Editor, identify the action where you typed in your email address. Double click or right click and select Edit Keystroke event. 1ddress with MyContacts variable and save the Keystroke event. start Loop Loop For: Tees ust [MyContact. | TIP: Press F2to inset variable, conation Each row in an Excel dataset © Each row inan internet Explorer Table ©) Each row in a SQL query dataset © Each fen a tolser Each foserin a folser © Each row ina CSViText fhe Each node h an XL dataset sav 6. Loop through all email addresses © From Commands window on the left select Conditions / Loops->Loop. © Select List option and specify the email list variable you created. Now using Up/Down arrow key in the tool bar make the "Start Loop" is the 1st statement and End Loop is the last statement.‘Task Actions List (WORN vsanse meas CMG Uterus Momecee One Otome i Me Oe at hae 780 Tata es ec he 2 50) ‘eee hat Br 4715 tag TH evra Scotch“: Mn Mme ay 7m ecient Mage (7M ay Ce ‘epee (Ton -ated-eae6M) y Se (rr SAF COMNHTT UPpAASn-ed. eee TM" ly 12m ‘ene (SFT OOWNSET UP HFT COWNDSMFT UP me SOFT COMNTSET Ue -Memage TI" e 387m Nene es To 1) seat Bon 05195 on Sea Meage TH Nc ne 08 8) 70128579 fone When you run this task, it will re-play the create e-mail functionality and will repeat this procedure for all entries in your MyContact List. Scrape Web Data And Transfer It To Your Database Task Desi Scrape web data and transfer it to your database. For e.. scrape information froman online book database and build your database. This sample task uses an example from http://www.getabstract.com/summaries/27000000/onlineDate/all/paged/en/it-production-and- logistics html just for illustrative purposes 1) 160.atm 2 Books.mab Solution 1. Record a new task Click on Tools->Web Recorder. Enter the starting URL for ic prohetiorarar giles Wa snd ack or Seare bien Click on Show all ink. Extract list of books on webpage. For that, click on 'Extract Data’ button in the Web Recorder toolbar. From Extract Data Option window, select 'Pattern Based Data' option and click on ‘Next’ button to start ‘Extract Multiple Data' wizard.Step! of wizard is to select the fields you need to extract. Click on ‘Add! button and capture a part from list. You will be presented with a small window having ‘Capture’ button. Click on that ‘Capture’ button to capture another instance of same field in order to match the pattern, Specify the Column Name in 'Extract Data Field’ window and save. Part Name Search O88 GENUINE OFS Genuine Air Mass Meter Part Number: 0123-1663196 = Availability: In Stock fetal ren: $402.32 Your Pree: $346.75, Quantity: FT B) ssinvinn ontions: ad contin ecoing After you captured the fields, click on ‘Next’ link. In Step2, you can specify if datas in multiple pages. In this case, the data is in single page so you can skip this step and click on Next button. In Step3, specify the name and path of CSV file, where you need to save the extracted data for e.g. C:\Books.csv. You can view the data using ‘Preview Data’ button. Eventually, dick on Finish button to complete the wizard,Preview Extracted Data ‘What Should We Be Womed About? Real Scenarios That Keep Scents Up at .. John Erockman [New Wavesin Philosophy of Mind Frank Seth “The Book of Leaming and Forgetting Phicsophy in a New Key: A Study nthe Symbolism of Reason, Rite, and At Investigating the Psychological Ward: Scientfic Method in the Behavior Science. Extract Data to a csv fle ep cuayFiate ea Tr: Press Ft reat vane (| Append to an already existing csv fle © Stop the recording and save the task. 2. Import the extracted data into your database. © Open the recorded task in Task Editor from Tools-> Task Editor. © After you extracted the book details at Line #3, connect to your database using Database:Connect command,Connect: ‘Session Name (Defaut e9. Session! | TIP: Press F2to inser variable. ‘Connection String Provider=Microsoft Jet, OLEDB.4.0:Data Source=C:\Books mdb, | TIP: Press F2to insert vatiable | save | Cance © Then insert Read from CSV/Text File command to open C:\Books.csv. © After Read from CSV/Text File command, insert Loop for each row in CSV/Text File command. Inside this loop block, insert Execute SQL query command to insert the data into database.‘TIP: Press F2to inser variable. Enter hserUUpdate/Delete Statement inser into books values ('$Fledata Colin (1)S" "Prompt ‘Assignment $") Using String Manipulation command you can trim the extracted data or extract the part of data extracted from web. © Entire task will look as shown: A Bpen’ mt pastapeek com/catalog/ 20/2 A/a cases 5 Enact Mtiple Data rom Webpage o C\Pats.ey fiom webpage -03 003 BMW’ Z4 Ai Fitri lak Full Mahe, arn. Al 5 Read Fiom CSV fie: Pats coy’ Deere Tab! Header: "Yer Session. Deu © Stat Loop "Each iow in @ CSV/Teat feof Session = Dela” 1 Clck ont immu pastsgenk con/eatlog/2003/bmn/28/at_riake/at_mass_meterhe Ik nthe webpage 132003 8 © Esract Mutiple Dara om Webpage to CAPanD etal cxv fon webpage: 03 2003 BMW 24 Ar Mase Metet At Intake -OE © EndLowp © Cie Browse EB Excel: Open Spreadsheet "C:\PartDetais csv". Active Sheet: Defauk Session: Delault 3. How to run the task In case you do not have Automation Anywhere installed, please download and instalSave T77.atmx under location, My Documents\Automation Anywhere\Automation Anywhere\My Tasks Copy Books.mdb under C:\ Launch Automation Anywhere and from Task List select T77.atmx and click on RUN button to run the task, When you run this tas, it wil extract the book details from a website into CSV file then will loop through all the extracted book details in CSV ile and transfer itto the database. Scrape Unstructured Data From The Web And Transfer It To Task Description Scrape unstructured data from the web and transfer it to Excel. This sample task uses an example from http://www.partspeek.com/catalog/2003/bmw/24/air_intake/air mass meter.htm| just for illustrative purposes. 8) T62.atmx 'S. Note: Save the .atmx ile in My Documents -> Automation Anywhere -> Automation Anywhere -> My Tasks Solution 1. Record a new task Click on Tools->Web Recorder. Enter the starting URL for e.g. http://www. partsgeek.com/catalog/2003/bmw/z4/air_intake/air_mass_meter-html and click oon Start button, Extract list of Related Parts from left panel on webpage. For that, click on ‘Extract Data’ button ln the Web Recorder toolbar. From Extract Data Option window, select ‘Pattern Based Data’ option and click on ‘Next’ button ‘to start Extract Multiple Data’ wizard. Step1 of wizard is to select the fields you need to extract. Click on ‘Add’ button and capture a part from list for e.. Air Filter. You will be presented with a small window having 'Capture’ button. Click on that ‘Capture’ button to capture another instance of same field in order to match the pattern for e.g. Air Mass Meter.‘sep (Ran conan noi Wind ih btw hee Sethe ee Can? Page URL - 4 a Sep e Senct atesExtract Multiple Data ® re + Classified Data Fields Cancel | Specify the Column Name in 'Extract Data Field! window and save. After you captured the field, click on ‘Next’ link. In Step2, you can specify if data is in multiple pages. In this case, the data is in single page so you can skip this step and click on Next button.Extract Multiple Data ® \ select Fields ~ Classified Data Fields In Step3, specify the name and path of CSV file, where you need to save the extracted data for e.g. C:\Parts.csv. You can view the data using ‘Preview Data’ button. Eventually, click on Finish button to complete the wizard, Click on any Part under Related Parts say Air Pump.Tae Actions st (ene =a (amma iad = a i Fo oe oe ‘Cec Mate Data Wipe oC Pata cov hae mb page €3 2003 BMW 24 Ae Fer Ae Hse Fu Mai, Mar APE KAN Patio ceases anata ee ec esagneris eee eae ooe =, ck on tey ae pata con ay 200mm ht pater Hc wpe 3 2003 NW 24M rr Hh Fu le, Ma, APE A Pan! Saar ehiacrneancr amie Extract unstructured data ‘To extract unstructured Part details on right side of webpage, click on ‘Extract Data’ button in the Web Recorder toolbar. From Extract Data Option window, select ‘Pattern Based Data’ option and click on ‘Next’ button to start ‘Extract Multiple Data’ wizard. In Step1 of wizard capture/add number of fields you want to extract data from webpage (Screenshot 2). For eg. Part Name, Part Number and Price. Screenshot 3 ‘After you captured all the fields, click on 'Next' link. In Step? click on Next button In Step3, specify the name and path of CSV file, where you need to save the extracted data say :\PartDetalls.csv. Click on Finish button to complete the wizard. © Stop the recording and save the task. 3. Edit the task to extract unstructured data for all the items (Parts) in list Open the recorded task in Task Editor from Tools-> Task Editor. After you extracted the list of Parts at Line #2, insert Read from CSV/Text File command to open C:\Parts.csv. After Read from CSV/Text File command, insert Loop for each row in CSV/Text File command. Inside this loop block, put commands that clicks on Part link and extracts the Unstructured data. Double-click on command that clicks on Part link and replace the actual Part with system variable, $Filedata Column(1)$. Save the command. Screenshot 4 Entire task will look as in Screenshot 5. 4, Howto run the task:In case you do not have Automation Anywhere installed, please download and instal Save T79.atmx under location, My Documents\Automation Anywhere\Automation Anywhere\My Tasks Copy Data.xls under C:\ Launch Automation Anywhere and from Task List select T79.atmx and click on RUN button to run the task. When you run this task, it will extract the required data (unstructured) from the web page into CSV file. Scrape Tabular Data From Web Task Description Scrape the tabular data from the web and transfer it to your own application, Solution 1. Create a new task © Glick on Tools->Web Recorder © Specify your website from where you want to scrape the tabular data, © Glick on Import Table in the toolbar on the bottom right hand corner ofthe screen, Click on the table that has the data that you want to scrape for e.g. as shown:Calling Card Rates Contry Rate/Min Afghanistan $0.85 Afghanistan (Cellular & Premiurn) $1.20 Albania $0.18 Albania (Cellular & Premium) $0.28 ‘Albania Tirana $0.17 Algeria $0.20 ‘Algeria (Cellular & Premium) $0.24 Algatia-- Algiers 0.14 Algetia- Algiers $0.15 American Samoa $0.13 American Samoa (Cellular & Premium) 0.14 Andorra $0.10 Andorra (Cellular & Premium) $0.35 © Specify the path of the csv file where you want to import the data. © Click on Stop Recording and Save the task. See how to create a task 2. Import CSV file to your proprietary application or database © The imported CSV file would look as shown:ee eens E) Bie Edt Yow Insert Format Tools Data Window Help cas GRAY LBRS O->- SEK =| Afghanistan bania (Cellular & Premium) lbania - Tirana Igeria igeria (Cellular & Premium) larctica - Christmas Island (Once you have imported the data to a csv file, you can import the CSV file into your application or database for further processing. When you run this task it will extract the tabular data to a CSV file Scrape Tabular Data From Web And Transfer It To Excel Task Description Scrape the tabular data from the web and transfer it to Excel. 4) Ts8.atmx Solution 1. Record a new task Click on Tools->Web RecorderSpecify your website from where you want to scrape the tabular data Click on Extract Table in the toolbar on the bottom right hand corner of the screen, © Glick on the table that has the data that you want to scrape for e.g. as shown: Upgrade From Upgrade To AB Premier 2.x/3.x/4.x AA Premier 5.5 A4Please click onthe table you want to capiute. Press ‘Ese“to cancel and continue recording AA Standard 2o/3.x/4.x AA stendard 5.5 8 Standard 2.x/3.x/4.3/5.x AA Premier 5.5 AA Enterprise 4.x AA Enterprise 5.5 AA Enterprise 5.5 + Integration Pack AA Enterprise 5.x Specify the path of the CSV file where you want to import the data Click on Stop Recording and save the task 2. Import data into Excel © Toimportthe data extracted from the import table, into Excel based on certain conditions, you need to edit the recorded task. Select the task in the Task List and dick on Edit. Insert Open Spreadsheet Excel command to open the excel file where you need to import the extracted data. You can find Excel command under Applications command category. Insert a Loop for Each row in an Internet Explorer Table to process all the extracted rows. Insert the condition based on which you want to filter the data. For e.g. the image below shows how to avoid importing products that includes AA Standard versions.[F STable Column(}$ Does Not Include "AA Standard” Then BH Veriable \Veriable: [Table Cota) “TIP: Pros F2to nse vane Operator: (Does Notincude =) Veue: @ Fx Variable “4 TIP: Press F2to insert variable. 29 AS orB10 ‘cet Vale [STable Cotumn( iS eg Orginal “G TIP: Press F2to insert variable Save || Cancel |Insert Go to Cell excel command to go to one cell right or down, ‘The final task will look as shown in Screenshot 4 3, How to run the task: In case you do not have Automation Anywhere installed, please download and install it from, Save T75.atmx under location, My Documents\Automation Anywhere\Automation Anywhere\My Tasks Copy Data.xls under :\ Launch Automation Anywhere and from Task List select T75.atmx and click on RUN button to run the task. } Task Actions (Wormal™ Visualize undo.) - itere: (U7) Mouse Moves (U7) Keyerckee 7) Mouse kis (Z| Delays) Qther © Wdows (Al } | Open “hip. /nnwautomationanywhere.com/purchase/buyUpgrede ht” —) Extract table from http://www automationanywhere.com/purchase /buy Upgrade him’ website's “3 table {all Excel: Open Spreadsheet "C:\Data.xls". ActiveSheet: "Default". Session: Defaut ‘G Stat Loop “Each row in an Intemet Explorer Table of Session: Default” Table Colun()$ Does Not include "AA Standard” Then Excel: Go to beginning of the row of the active cell. Session: Defaut Excel: Set value of Active Cell with "$Table Column(1)$". Session: Defaut Excel Goto one call cht of active cel. Session: Deut Excel: Set value of Active Cell wth "$Table Column(2}S". Session: Default Excel Got one cll ight of active cal. Session: Defaut Excel Sel value of Active Cal wth "STable Cokunn(S". Session: Defaut ‘Excel: Go to one call below the active cell. Session: Defaut end & End Loop |] Excel: Close Spreadsheet. Session: Defaut = Chose Browser Rac Cncn ci cICies When you run this task it will extract the tabular data and import the data into Excel Scrape Data From One Online System Task Description Transfer sales invoice data from one ERP application to another. This task can be very useful when you are upgrading or migrating your online systems. Using this task, you can automate data transfer of thousands ofrecords even if the structure af the two systems is different. 8) 159.atmx ‘NS. Note: Save the .atmx file in My Documents > Automation Anywhere -> Automation Anywhere -> My Tasks Solution 1. Prerequisites © The following example is recorded on sample web pages to illustrate how you can use Automation Anywhere to automate your data transfer from one online system to another. Keep the sales invoice entry window open in both the ERP applications. Keep the firstfield as ‘the current field in both windows. (see Screenshot 1 and Screenshot 2) Invoice No Customer Td Due Date Delivery At VAT Amount Discount Amt, Screenshot 1 <
> [cones (22/03/2007 DOT [AtGodown 443.00 239.50 Date Name Payment Mode Total Amount Other Charges ‘Net Amount 12/02/2007 23,955.00 }234.50 [23563.00[ Sales Invoice ] Invoice No [NST 1 Invoice Date Customer co08s 3) [Thomas Jefferson Inc. Gross Amount [2295500 SS VAT Amount Payment Terms -[ 7[ 8 Mode of Payment Tnsurance Amt :[ Freight Other Charges Discount Special Discount 8 12/02/2007 443.00 P01 § [By Cheque 2 # Delivery Instructions [DO1® [AtGodown —SSOSC~S~S Net Invoice Amount [23583.00 © Amount Received Screenshot 2 2. Identify the mapping ofthe fields between the two ERP systems Go to Tools->Variable Manager. Create a variable called 'ield_order' of type List. Specify to read the values from a text file. Specify the path of the text file as c:\field_order.txt Specify the order of the fields to be pasted in the text file. Field order is the number of the corresponding field in the destination ERP application where the data is to be pasted. For example, the date from VAT Amount is to be copied to the VAT Amount field in the destination application in which it is the 6th field and hence its field order is in the source application. Hence, the 11th value in the list is 6 6. Moreover, itis the 11th field+10,16,17,5,6,13,14,18 3. Create new task © Click Tools -> Task Editor. 4, Copy contents of a field in the source ERP application © Select Insert Keystrokes command and specify the keystrokes CTRL + C and TAB. This will copy ‘the contents of the current field and move to the next field. 5. Transfer the sales records from one ERP system to another Insert an if $field_order$ Not Equal To "0" command to prevent field data in the source application which does not have a corresponding field in the destination application, from being pasted. i.e. Due Date in one example Insert if $field_order$ Equal To 2 command to insert a single TAB key before pasting the data of Invoice Date into the second feld ofthe destination application. Similarly, Insert as many if $field_order$ Equal To x commands as the number of fields to be transferred from the source application where x is the field order ie. the field number where ‘the copled data is to be pasted. Select the Insert Keystrokes command to insert number of TAB keystrokes in the destination ERP application window depending on the field order. For example if we want to paste the data of Payment Mode then the field order for the same will be 9 in the destination application and hence we have to press TAB key 8 times if the contents are to be pasted in the Sth field. Select Insert Keystrokes command after the endif of the 'f Sfield_order$ Not Equal To "0" command’ and specify the keystrokes as CTRL + V. This will copy the contents of the current field in the corresponding field of the destination ERP. Select the Insert Mouse Click command to dick on the first field of the destination ERP application to make it currently selected. Insert a Loop List Variable field_order command to repeat the above actions for each field in the source ERP application, ‘The complete task would look as shown in Screenshot 4i Task Actions List Wamal” Visuntce | () Mouse Moves [Z] Keystrokes [7] Mouse Cicks € Oper ala (0 Mouse Cick: Left Button (137,333) in “ERP 1™* Mouse Cick: Left Button (161,258) in “ERP 2" Keystrokes: (CTRL DOWN}e(CTRL UFITAB] in "ERP Keystrokes: ALT DOWNIALT UP]in “Microsc Excel” Keystrokes: gin “Microsoft Excel" Rie Keystrokes: [TAB]in “ERP 2-~" ‘se f Sield_order$ Equal To (=) Keystrokes: [TAB] in “ERP Keystrokes: [TAB]in “ERP 2~* ‘se f Sield_order$ Equal To (=) Keystrokes: [TAB] in “ERP Keystrokes: [TAB]}in “ERP 2~* Keystrokes: [TAB]in “ERP 2" [Be Hf Sield_order$ Equal To (-)°5° Then Keyatrokes: [TAB]in “ERP 2-~* Keystrokes: [TAB] in “ERP 2~" Keysrokes: [TAB]in “ERP 2" Keytrokes:[TAB]in “ERP 2~* End iF 9 a & a a a a a a a a a a a a a ry a a a a y a 8 ‘Mouse Clk: Left Button (161,258) in "ERP 2." When you run this task, it will copy the contents of each field in the source ERP application and paste it into ‘the destination application. it thus saves a lot of time that would otherwise be required to re-enter all the data into the destination application when you switch over from one ERP application to another one. Save Variables In A File And Use It Later In The Task Task Description ‘Assign the values to variable while the task is running or save it to pass it to other tasks. ‘a)713.atmx 'S) Note: Save the .atm file in My Documents -> Automation Anywhere -> Automation Anywhere -> My TasksSolutions 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 Add Variable Select Action Select Venable From List (Yetwe___s] Pssigned Valet © Read fom tent fle 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,‘Log Data into File LogFie:(CWatt «ids Brose ‘6 TIP: Press F2to insert variable. Tent {Value 1=$Cipboards 3. Process the assigned values Use this assigned value of the variable in conditional commands for further processing later in the task, 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
=
“Task Actions List Namal visuate Fitters: (Wii (Keystrokes [J] Mouse Cicks [7] Delays © Comment: To recognize changes in Window names, widcard characters ae used ie. “Excel” @ Keysrokes: [CTRL DOWNIe{CTRL UPIDOWN ARROW] in “Excel™ BB Logto Fle: Assigned Value /=§CipboardS in "C:\Varbt™ D Keystrokes: [CTRL DOVNJe{CTRL UPIDOWN ARROW] in “Excel” } Logto Fie: Assigned Value2-SCipboardS in "C:\Varb” tnt SAsaigned-Value1$ Equal To (+) $Assigned Vaiue2$ Then
Automation Anywhere -> Automation Anywhere -> My Tasks Solutions 1. Create new task © Click on Tools ->Task Editor. 2. Loop through folder From the commands list select "Conditions / Loops -> Loop command, In the "Start Loop" wizard, select Each file in a folder option and specif Save the command@ Start Loop Loop For: Tees st Select Vanable ‘g) TIP : Press F2to inset vaiable Condtion Each row in an Excel dataset Each row in an internet Explorer Table) Each row in a SQL query dataset, @ Each fe m a toiser Each foler'n a folder Each row in CSV/Text fle Each node h an XML dataset SelectFotier: [EW Fede —SSSSSS~*=«~d Cs |W TIP: Press F2to insert variable. 3. Check if xls exter Select Conditions / Loops -> If command. In the If wizard, select Variable option and select variable Extension (Click edit to select a variable), Select Equal To operator and enter a fix value xls. Save the command
You might also like
Documents - Tips Mesc Fujikura Prequalification
PDF
100% (1)
Documents - Tips Mesc Fujikura Prequalification
73 pages
Product Information: Liquid Epoxy Resin
PDF
No ratings yet
Product Information: Liquid Epoxy Resin
2 pages
Isolation Valve - Watts B3001
PDF
No ratings yet
Isolation Valve - Watts B3001
2 pages
ERCON Distribution Boards
PDF
No ratings yet
ERCON Distribution Boards
28 pages
2023 GPP Evcb
PDF
No ratings yet
2023 GPP Evcb
67 pages
Annexure To Start-Up & Commissioning of Fire Water Pumps
PDF
No ratings yet
Annexure To Start-Up & Commissioning of Fire Water Pumps
5 pages
Paging-System Design A Step-By-Step Process - Cabling Install
PDF
No ratings yet
Paging-System Design A Step-By-Step Process - Cabling Install
7 pages
Capacity, Management, Operations, and Maintenance Plan (PDFDrive) PDF
PDF
No ratings yet
Capacity, Management, Operations, and Maintenance Plan (PDFDrive) PDF
304 pages
Level 2 m200 Pahu Qa-Qc Checks
PDF
No ratings yet
Level 2 m200 Pahu Qa-Qc Checks
10 pages
Installation Instructions
PDF
No ratings yet
Installation Instructions
38 pages
EL5000 Hardware Introduction
PDF
No ratings yet
EL5000 Hardware Introduction
39 pages
Zenith Catalog
PDF
No ratings yet
Zenith Catalog
16 pages
RN 02 00001 06 11 El WBG DG 000755
PDF
No ratings yet
RN 02 00001 06 11 El WBG DG 000755
1 page
Panasonic & NEER Prequalification - EMT & FITTINGS
PDF
No ratings yet
Panasonic & NEER Prequalification - EMT & FITTINGS
158 pages
FM EXGas HazardPoster
PDF
No ratings yet
FM EXGas HazardPoster
0 pages
E/E Review Checklist: Electrical
PDF
No ratings yet
E/E Review Checklist: Electrical
8 pages
What Is Megger Test and How Is It Performed
PDF
No ratings yet
What Is Megger Test and How Is It Performed
4 pages
Datasheet PA 12 Extended-6
PDF
No ratings yet
Datasheet PA 12 Extended-6
8 pages
Dr. Fixit Foamshield: Spray Applied Polyurethane Foam System
PDF
No ratings yet
Dr. Fixit Foamshield: Spray Applied Polyurethane Foam System
4 pages
2015 Foster HVAC Selection Guide
PDF
No ratings yet
2015 Foster HVAC Selection Guide
2 pages
Building Services Branch Testing and Commissioning Procedure No 5
PDF
No ratings yet
Building Services Branch Testing and Commissioning Procedure No 5
42 pages
Emergency Push Button
PDF
No ratings yet
Emergency Push Button
69 pages
Lux TX1500E Thermostat User Guide
PDF
No ratings yet
Lux TX1500E Thermostat User Guide
2 pages
Easwaran Mechanical Helper
PDF
No ratings yet
Easwaran Mechanical Helper
4 pages
As DG Nfpa Vacuum Systems
PDF
No ratings yet
As DG Nfpa Vacuum Systems
44 pages
AHA CHFM Handbook
PDF
100% (1)
AHA CHFM Handbook
29 pages
Carel Uchbp00n00191
PDF
No ratings yet
Carel Uchbp00n00191
116 pages
CH03 & CH04 Technical Data
PDF
No ratings yet
CH03 & CH04 Technical Data
32 pages
Tem 2035 60 0919
PDF
No ratings yet
Tem 2035 60 0919
28 pages
UL CSA Zertifikate
PDF
No ratings yet
UL CSA Zertifikate
176 pages
Kata Log
PDF
No ratings yet
Kata Log
106 pages
Passenger Lift - Catalog Mitsubisi
PDF
No ratings yet
Passenger Lift - Catalog Mitsubisi
10 pages
Es 2 14 0095
PDF
No ratings yet
Es 2 14 0095
28 pages
Eastman - Bulk Storage and Handling of Solvents and Coalescents
PDF
No ratings yet
Eastman - Bulk Storage and Handling of Solvents and Coalescents
12 pages
Remotec ZFM-80US
PDF
No ratings yet
Remotec ZFM-80US
2 pages
DIB Testing & Commissioning BOQ Schedule Building
PDF
No ratings yet
DIB Testing & Commissioning BOQ Schedule Building
1 page
Astralpool Master Catalogue 2021
PDF
No ratings yet
Astralpool Master Catalogue 2021
672 pages
Test Case: Issue Date: Project Name
PDF
No ratings yet
Test Case: Issue Date: Project Name
16 pages
4C. STD Specification-Motors
PDF
No ratings yet
4C. STD Specification-Motors
12 pages
Diff BTN FM200 and Novec 1230
PDF
No ratings yet
Diff BTN FM200 and Novec 1230
5 pages
Pump Testing Presentation
PDF
No ratings yet
Pump Testing Presentation
26 pages
PLC Starter Kit
PDF
No ratings yet
PLC Starter Kit
1 page
Flam BICC For Web
PDF
No ratings yet
Flam BICC For Web
27 pages
Msds - Puriblends 1 6 Final 2018
PDF
No ratings yet
Msds - Puriblends 1 6 Final 2018
8 pages
Conduits and Fittings
PDF
No ratings yet
Conduits and Fittings
285 pages
Instrumentation and Automation Engineer
PDF
No ratings yet
Instrumentation and Automation Engineer
7 pages
CMMP AS M0 HW - 2015 07b - 8046779g1
PDF
No ratings yet
CMMP AS M0 HW - 2015 07b - 8046779g1
122 pages
800PL Series: DC Hipot Testers
PDF
No ratings yet
800PL Series: DC Hipot Testers
28 pages
Powertech Brochure English Final
PDF
No ratings yet
Powertech Brochure English Final
7 pages
(Form GNQ 17) Aircoolers Pre Commissioning Checklist 1
PDF
No ratings yet
(Form GNQ 17) Aircoolers Pre Commissioning Checklist 1
140 pages
Introducing Super Computer
PDF
No ratings yet
Introducing Super Computer
8 pages
Mil P 19644C
PDF
No ratings yet
Mil P 19644C
17 pages
Ariston Catloque
PDF
No ratings yet
Ariston Catloque
68 pages
Lightnin Plenty Brochure
PDF
No ratings yet
Lightnin Plenty Brochure
28 pages
Rpa Unit-V Notes
PDF
No ratings yet
Rpa Unit-V Notes
35 pages
Guide Enterprise DT
PDF
No ratings yet
Guide Enterprise DT
286 pages
Guide Complete FTP
PDF
No ratings yet
Guide Complete FTP
286 pages
FTP Command Line
PDF
No ratings yet
FTP Command Line
7 pages