Building Your First Automation Bot - Steplist
Building Your First Automation Bot - Steplist
Purpose ....................................................................................................... 2
Prerequisite ................................................................................................. 2
1. Register your device(s) and set user device credentials.............................. 3
2. Create and structure the task bot ............................................................ 4
3. Step 1: Extract data from a web portal into a CSV file ............................... 6
4. Step 2: Open the CSV file and launch the CRM ....................................... 11
5. Step 3: Populate the CRM webform ....................................................... 13
6. Step 4: Save and send the CSV file to the Relationship Manager ............... 21
7. Run the task bot ................................................................................. 24
Page 1
Building Your First Automation Bot – Step List
Purpose
In this use case, you will learn to use Automation 360 actions for creating a bot to
automate a business process.
Prerequisite
• Access to the Automation Anywhere Community Edition:
Access Automation Anywhere Community Edition and Register yourself. If
you have already registered, log in to Community Edition using the URL that
is mentioned in the Community Edition Welcome email that is sent to your
email address.
• Microsoft Excel: You will need to have Microsoft Excel installed for the
successful execution of the bot.
Page 2
1. Register your device(s) and set user device
credentials
Page 3
Building Your First Automation Bot – Step List
Page 4
Note:
• Actions are grouped into packages based on the technology
they automate. For example, the Excel advanced package
contains Excel-related actions, which you can use to automate
operations on a spreadsheet.
• When you hover the mouse over the package, you will notice
that a pop-up displays context-sensitive information. You can
watch a quick video about the package by clicking the Tutorial
icon. Please note that tutorial videos are available for the
Email, Excel advanced, and Recorder packages with the
Automation 360 v.29 release.
• You can also access real-time documentation related to the
action package or an action. To do so, click the
Documentation icon. This will open the in-app Help Center
widget, which displays related documentation.
Page 6
iii Select Google Chrome from the drop-down list in the Browser
field in the Action details pane.
iv Enter the URL of the web portal
(http://rpademo.automationanywhere.com/itbricks_enroll.php) in
the Link to open field.
v Click Save.
Page 7
Building Your First Automation Bot – Step List
ii Click the Application toggle button and from the drop-down list,
select the IT Bricks – Holiday Customer Report window in the
Window section of the Action details pane.
Note: You must click the Refresh windows icon to populate the
drop-down list.
iii Click Capture object.
iv Navigate to the web portal, hover your mouse over the table until a
red outline appears, and then click to capture it.
v Navigate back to the Bot Editor and from the Action to take on
object drop-down list in the Action details pane, select the Get
table action.
vi Click the Variables pane, and then click the Create variable icon
to create a table variable.
Page 8
Note: A variable is a symbol or a character that can hold a specific
type of data temporarily.
vii Select the variable type as Table and enter the variable name as
Customers, and then click Create, in the Create variable pop-up.
viii Select Customers from the drop-down list in the Save the
outcome to a variable field of the Capture action.
Note: We will be using the Customers Table variable to capture
data from a webpage and to retrieve multiple cells from Excel. To
enable this variable to be reused, be sure to define the variable as a
Table variable using the Variables pane.
Page 9
Building Your First Automation Bot – Step List
ii Select the variable to which you assigned the captured table (the
variable will be 'Customers' - if you named the variable as per the
step vii above) from the Data table name field in the Action details
pane.
iii Enter the file location of the CSV file in the Enter file name field.
iv Check the Create folders/files if it doesn’t exist checkbox and
then click the Overwrite existing file option.
v Select ANSI as the encoding option from the Encoding list.
Note: Select the encoding option as per the encoding scheme of
your system.
Page 10
iii Run the bot.
Note: This ensures that the CSV file is created and available at the
specified location.
Page 11
Building Your First Automation Bot – Step List
Page 12
c. Launch the IT Bricks CRM web page.
i Search for the Browser package in the Actions palette and drag
and drop the Open action to the second step.
ii Select the New window toggle button in the Action details pane
and select Google Chrome from the Browser drop-down list.
iii Enter the URL of the web portal
(http://rpademo.automationanywhere.com/itbricks_crm.php) in the
Link to open field. Execute the step to open the CRM webpage and
then save the bot.
Now, you have added the steps to open the CSV file and launch the CRM
website.
Page 13
Building Your First Automation Bot – Step List
b. Loop through the rows of the CSV file and assign each row to a variable.
i Search for the Loop action in the Actions palette and drag and drop
the Loop action at the end of the third step in the Actions palette.
ii Select the loop type as For each row in table under Data Table
in the Action details pane.
iii Select the same table variable (Customers) used earlier in the
Table variable list.
iv Click the Create variable icon to create the record type variable in
the Assign the current row to this variable field.
v Enter the variable name as CustomerRow and click Create &
select.
Page 14
c. Update each field in the CRM webform with the data from the CSV file.
i Search for the Recorder package in the Actions palette and drag
and drop the Capture action within the Loop action.
ii Click the Application toggle button in the Window section of the
Action details pane and from the drop-down list, select the IT
Bricks - New Holiday Club Signup window.
iii Click the Capture object button.
iv Navigate to the CRM web page and capture the First Name field.
Page 15
Building Your First Automation Bot – Step List
v Navigate back to the Control Room and from the Action to take on
object drop-down list, select Set text.
vi Use the Insert a value icon to select the record variable
(CustomerRow) in the Keystrokes section, then select the By
name toggle button and then enter First Name in the text box.
Note: It is a good practice to copy the column header names such
as First Name, Last Name etc. from the CSV file. This will help
eliminate any potential errors that may occur while typing.
vii Click Yes, insert.
viii Repeat steps i to vii for each field in the CSV file.
Page 16
d. Capture the Register button and the message that indicates whether the
registration was successful or not.
i Search for the Recorder package in the Actions palette and drag
and drop the Capture action within the Loop action.
ii Click the Application toggle button in the Window section of the
Action details pane and from the drop-down list, select the IT
Bricks - New Holiday Club Signup window.
Page 17
Building Your First Automation Bot – Step List
v Search for the Recorder package in the Actions palette and drag
and drop the Capture action within the Loop action.
vi Click the Application toggle button in the Window section of the
Action details pane and from the drop-down list, select the IT
Bricks - New Holiday Club Signup window.
Note: You will need to enter all the details of one customer
manually and then click register so that the message to be captured
is displayed.
vii Click the Capture object button.
viii Navigate to the CRM web page and capture the message at the top
of the page that says, ‘User information saved’.
Page 18
ix Navigate back to the Bot Editor and from the Action to take on
object drop-down list, select the Get property action.
x Select HTML InnerText from the drop down in the Property
name field.
xi Click Create variable icon to create a Status variable of type
String in the Save the outcome to a variable field and click
Create & select.
Page 19
Building Your First Automation Bot – Step List
e. Update the status in the CSV file and move the cursor one cell below.
i Search for the Excel advanced package in the Actions palette and
drag and drop the Set cell after the last Recorder action within
the loop.
ii Click Active cell in the Cell option section and in the Cell value
list, use the Insert a value icon to select the status variable.
iii Click Yes, insert.
Page 20
iv Search for the Excel advanced package in the Actions palette and
drag and drop the Go to cell action at the end of the loop.
v Select the Active cell radio button and from the drop-down list,
select One cell below.
vi Click Save.
Congratulations! You have now completed the third step and populated all the
customer details in the CRM webform.
Page 21
Building Your First Automation Bot – Step List
Page 22
Great! Your bot is now ready!
Page 23
Building Your First Automation Bot – Step List
Congratulations! You have now successfully created the bot that would extract
data from a web portal, capture it in an excel sheet, populate all the customer
details in the CRM webform, and also notify the email recipients.
Page 24
Go be great.
TM
Page 25