You are on page 1of 16

STRING ACTIONS

Action What? Example Output

Compares two strings and returns True if the strings are Source String: “Hello World”

String compare Compare to string: “Hello TRUE
identical.
World”
Locates a given string within the source string. Returns 0 if
Source String: “Hello World”

String find string not found, otherwise returns the position of the found 6
Find string: “World”
string.
Source String: “The brown The

String split Splits the source string into multiple strings using a delimiter. fox”
 Brown

Delimiter: “ “ Box

Length Gets the length of a string. Source String: “Hello world” 11

Source String: “ It’s a nice


Trim Trims blanks and whitespaces from a given string. It’s a nice day
day “

Uppercase Converts the source string to upper case. Source string: “A cool cat” A COOL CAT

https://www.udemy.com/user/andrewseeley/
STRING FIND - REGEX
• You can use string find with Regex to see if a string matches a pattern
• And example of this is checking if a given string is an email address
• In Automation Anywhere Enterprise it includes a RegEx option for the email
address
• In Automation Anywhere community cloud you can use the following RegEx:
• ^([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5})

https://www.udemy.com/user/andrewseeley/
LOOPS
• You can loop over a certain action any amount of times you specify
• There are two types of loops:
• Iterator - run over the loop a certain amount of times
• While - run the loop forever until a condition is meet to exit the loop
• You can also loop over the following items:
• Database tables
• Excel tables
• CSV and Text files
• Folders
• Files

https://www.udemy.com/user/andrewseeley/
DATA CONVERSION
Remember the following conversion options and how they work

• Number to String
• Some items in automation anywhere such as message box only accept a
string as an input
• String to Number
• You can only do math operations on numbers!
• Boolean to Number
• Converts True to 1
• Converts False to 0
• Boolean to String
• Converts True to “True”
• Converts False to “False”

https://www.udemy.com/user/andrewseeley/
ERROR HANDLING
If you catch an error, you can get and assign
• The exception message to a variable
• The line number the error occurred on to a variable
• This can be seen in the list view

https://www.udemy.com/user/andrewseeley/
AUTOMATION ANYWHERE CERTIFIED ADVANCED
RPA PROFESSIONAL (V11)
CHEATSHEET
BY: SEEMU AUTOMATION
RECORDER TYPES
• In Automation Anywhere Enterprise there are three recorder types

Smart Recorder Web Recorder Object / Screen Recorder


• Used to automate websites • Not recommended - last
• Recommended recorder • Supported browser is Internet
• Can operate an application even if resort
Explorer • Based on screen window
it’s window is a different size or at a
different location sizes, co-ordinates
• So only works if application
is in the same spot!

* In Automation Anywhere Community there is only the smart recorder


https://www.udemy.com/user/andrewseeley/
BOT TYPES
• In Automation Anywhere Enterprise there are three bot types
• Bots can run 24/7
• Focus for bots in exam is mostly Task and Meta bots

Task Bot Meta Bot IQ Bot


• Used to automate core functionality • Machine learning bots
• Standard Automation Anywhere bot of a system
• Used to Automate processes • Recognize images
• E.g. Login, Place Order, Retrive • Recognize text
Orders for a given system. E.g SAP • Categorize emails
• Not run directly
• Used as part of other bots

* In Automation Anywhere Community there is only the Task Bot and IQ Bot
https://www.udemy.com/user/andrewseeley/
*
WILDCARDS
• Application window titles may change so you cannot rely on them to be stable!
• You can use a wildcard * which will match zero to many characters
• E.g. *Notepad will match the following titles:
• Notepad
• Andrews Notepad
• Cool Notepad

https://www.udemy.com/user/andrewseeley/
FILE AND FOLDER ACTIONS
Action What? Example Output

File: C:\Text.txt

File: Create Create a file at the specified location
Overwrite: True

Source File: C:\Text.txt

File: Copy Copys a source file to a given destination Destination File: C:\Backup.txt

Overwrite: True

File: Delete Delete a file at the given location File: C:\Text.txt

Folder: C:\Temp

Folder: Create Create a folder at the specified location
Overwrite: False

Folder: Delete Delete a folder at the given location Folder: C:\Temp

https://www.udemy.com/user/andrewseeley/
EXCEL ACTIONS
Action What? Example Output

Session Name: Default

Get single cell Get the value of a single cell Cell Option: Specific cell
Sydney
Cell Name: C2

Closes an excel spreadsheet/session. By default Session Name: Default

Close
will save it. Save changes: True

https://www.udemy.com/user/andrewseeley/
EXCEL SESSIONS
• To open multiple excel files you must have them assigned to a unique session
• A session is a “box” which can hold a single given excel file at and time
• You can read, write and save the excel session
• Each excel action will have the session name to indicate which one you want to select
• So remember you can have multiple excel files open at a time, it must be with sessions!

MyDetails.xlsx Invoices.xlsx

Session Name: Default Session Name: Accounting

https://www.udemy.com/user/andrewseeley/
PDF ACTIONS
Action What? Example Output

PDF Path: C:\Example.pdf

Text Type: Plain text

Extract Text Get text from a PDF and save it to a file Page range: All pages
Content.txt
Export to text file: C:
\Content.txt

Split_1.pdf

PDF Path: C:\Example.pdf

Split_2.pdf

Split document Split a PDF into multiple files Folder Path: C:\

Split_3.pdf

File prefix: Spiit


etc…
Image_1.png

PDF Path: C:\Example.pdf

Image_2.png

Extract Image Save PDF document to an image file Image Type: PNG

Image_3.png

Folder Path: C:\


etc…

https://www.udemy.com/user/andrewseeley/
EMAILS
• If you want to include images in an email you must use the HTML option!
• The default port is 25!
• There is an action to delete all emails
• Remember what the email actions do and what they do at a high level!

Action What?

Change Status Change email status to read/unread

25
Check if folder exists Check if a given folder exists and returns true/
false
Delete all Delete all email messages

Delete Delete an email message

Move all Move all email messages to a specified folder

Reply Reply to an email message

Save all attachments Save all attachments from multiple email


messages
Save attachment Save attachments from a given email

Save email Save a single email

Send Send an email

https://www.udemy.com/user/andrewseeley/
DELAYS
• If you have a slow internet connection or application you can use the delay action to wait until
executing the next action!

https://www.udemy.com/user/andrewseeley/
SHORTCUTS
• Only for Automation Anywhere Enterprise!
• F2 = Insert a variable into a field
• CTRL + SHIFT + S = Stop recording

https://www.udemy.com/user/andrewseeley/

You might also like