U I Path Material
U I Path Material
Republic Polytechnic
Course Material
Note: this course was created using UiPath Studio 2021.6.0-beta.4514. Some elements may be different in
2
the latest Community Edition version.
OFFICIAL (CLOSED) \ NON-SENSITIVE
Trainers Introduction
3
OFFICIAL (CLOSED) \ NON-SENSITIVE
Participants
4
OFFICIAL (CLOSED) \ NON-SENSITIVE
goRPA Program
goRPA
Completion report
(last session)
OFFICIAL (CLOSED) \ NON-SENSITIVE
Day 1 Day 2
Morning Morning
Introduction of RPA and UiPath Handling and filtering data files
Afternoon Afternoon
6
OFFICIAL (CLOSED) \ NON-SENSITIVE
Housekeeping
• Class times
– 9:00 to 17:00, 1 hour lunch
• Food
– No drinks + food in class room, just water
• Washroom
– Water cooler
• Interaction
– Ask! Share!
– Help each other
• Wear mask
7
Introduction to Robotic Process Automation
(This topic will take about 15 mins)
8
OFFICIAL (CLOSED) \ NON-SENSITIVE
9
OFFICIAL (CLOSED) \ NON-SENSITIVE
Productivity Scalability
Efficiency Complete work faster
and with less manpower
Able to instantly ramp
up and scale down
Consistency Accuracy
Service Morale
Free up human
resources for higher
Experience
Customising
communication and
value tasks faster response
Software application
which has the
Robotic capability to mimic
human actions
A sequence of steps
Process leading to a meaningful
task
A RPA robot
11
OFFICIAL (CLOSED) \ NON-SENSITIVE
12
OFFICIAL (CLOSED) \ NON-SENSITIVE
13
Introduction to UiPath
(This topic will take about 10 mins)
14
OFFICIAL (CLOSED) \ NON-SENSITIVE
https://www.uipath.com/resources/automatio
n-analyst-reports/forrester-wave-rpa
15
OFFICIAL (CLOSED) \ NON-SENSITIVE
https://bit.ly/39O4yTA
16
OFFICIAL (CLOSED) \ NON-SENSITIVE
Why UiPath?
• Fast implementation
– Easy development
– Fast running speed
– Flow chart based design
• Reusability
– Reuse at the workflow level
– Use different packages for different purposes
• Extensibility
– support third-party packages as extension
– support Microsoft .Net framework (VB / C#)
– you can design your own packages as reusable libraries
• Scalability with Desktop and Enterprise level automation
17
OFFICIAL (CLOSED) \ NON-SENSITIVE
UiPath Products
18
OFFICIAL (CLOSED) \ NON-SENSITIVE
Versions of UiPath
https://www.uipath.com/start-trial 19
• Your job requires you to get the
latest currency converting result
Use Case 1:
from the following website.
Currency Converter https://forex.asiaone.com/
(This topic will take about 50 mins) • You have structured input data
(Amount, From Currency, To
Currency) in an Excel form.
20
OFFICIAL (CLOSED) \ NON-SENSITIVE
• In UiPath, go to StartTools
• Click Edge to install Browser extension
21
OFFICIAL (CLOSED) \ NON-SENSITIVE
22
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC1 - Approach
Start
• Phase 1
Using UiPath recording feature, we Type Amount
capture the process of one query
Select From
Currency
• Phase 2
Read any number of data record from Select To currency
End
23
OFFICIAL (CLOSED) \ NON-SENSITIVE
Edge browser
Open browser
2. Open UiPath Studio
3. Create a new project
Attach browser
4. Add a Flowchart
5. Record the steps
Convert currency
6. Play the recorded steps
End
24
OFFICIAL (CLOSED) \ NON-SENSITIVE
3
25
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 1 – Convert Currency
26
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 1 – Convert Currency
• In UiPath Studio (Activities panel),
– Search Flowchart
– Double click
27
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 1 – Convert Currency
• In the Design tab, click
28
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 1 – Convert Currency
• Click
29
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 1 – Convert Currency
30
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 1 – Convert Currency
1
31
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 1 – Convert Currency
• If you need to scroll down the page without robot capturing that
scrolling process.
• Press F2
• F2 function will pause the robot from capturing for 3 seconds
32
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 1 – Convert Currency
• Click From: field, select “Australian Dollar (AUD)”
• Click OK
3
33
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 1 – Convert Currency
• Click To: field, select “Canadian Dollar (AUD)”
• Click OK
3 34
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 1 – Convert Currency
• Click Submit button
35
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 1 – Convert Currency
36
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 1 – Convert Currency
37
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 1 – Convert Currency
Default start:
Debug File
38
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 1 – Convert Currency
• Let’s review the workflow
Attach Browser page
1
39
OFFICIAL (CLOSED) \ NON-SENSITIVE
40
OFFICIAL (CLOSED) \ NON-SENSITIVE
Selectors
41
OFFICIAL (CLOSED) \ NON-SENSITIVE
42
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 1 – Convert Currency
Uncheck SimulateType 43
OFFICIAL (CLOSED) \ NON-SENSITIVE
Other specialized Recording Types include: Image, Native Citrix, Computer Vision 44
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 1 – Convert Currency
What if we
want to
record a
right-click?
45
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 1 – Convert Currency
What happens if
AsiaOne website is
not opened when
we run the bot?
47
OFFICIAL (CLOSED) \ NON-SENSITIVE
48
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 1 – Convert Currency
Do we have
to open the
AsiaOne
website
manually?
49
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 1 – Convert Currency
Search Open
1
2
Drag Open Browser to
the design panel
50
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 1 – Convert Currency
Click Double-
click to view
51
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 1 – Convert Currency
Type URL with double inverted commas,
“https://forex.asiaone.com/”
1 2
UC 1 – Convert Currency
53
OFFICIAL (CLOSED) \ NON-SENSITIVE
55
OFFICIAL (CLOSED) \ NON-SENSITIVE
Recap
• Phase 1
Using the UiPath recording feature, we capture the
process of currency conversion
• Phase 2
Read any number of currency conversion transaction
request from Excel and search the result
56
OFFICIAL (CLOSED) \ NON-SENSITIVE
Approach to Phase 2
End
57
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 1 – Convert Currency
58
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 1 – Convert Currency
Amount From To
2500 Australian Dollar (AUD) Chinese Yuan (CNY)
1400 Bulgarian Lev (BGN) Czech Koruna (CZK)
3200 Brazilian Real (BRL) Danish Krone (DKK)
4300 Canadian Dollar (CAD) Euro (EUR)
5000 Swiss Franc (CHF) British Pound Sterling (GBP)
59
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 1 – Convert Currency
Search Read Range
1
60
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 1 – Convert Currency
3
1
2 4
“A1” means
reading from
worksheet cell 61
A1
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 1 – Convert Currency
62
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 1 – Convert Currency
Amount From To
2500 Australian Dollar (AUD) Chinese Yuan (CNY)
1400 Bulgarian Lev (BGN) Czech Koruna (CZK)
3200 Brazilian Real (BRL) Danish Krone (DKK)
4300 Canadian Dollar (CAD) Euro (EUR)
5000 Swiss Franc (CHF) British Pound Sterling (GBP)
63
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 1 – Convert Currency
64
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 1 – Convert Currency
Specify the
DTCurrency variable
that we have created
earlier
65
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 1 – Convert Currency
Amount From To
2500 Australian Dollar (AUD) Chinese Yuan (CNY)
1400 Bulgarian Lev (BGN) Czech Koruna (CZK)
3200 Brazilian Real (BRL) Danish Krone (DKK)
4300 Canadian Dollar (CAD) Euro (EUR)
5000 Swiss Franc (CHF) British Pound Sterling (GBP)
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 1 – Convert Currency
Move Do sequence
into the Body of For
Each Row in Data
Table
67
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 1 – Convert Currency
The Do sequence is
inside the Body of
For Each Row
68
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 1 – Convert Currency
How to access
the data in
each column?
69
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 1 – Convert Currency
UC 1 – Convert Currency
CurrentRow("Amount").ToString
CurrentRow("From").ToString
CurrentRow("To").ToString 71
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 1 – Convert Currency
• Go to Open Browser activity to create UiBrowser variable, AsiaOneBrowser.
1
Create variable AsiaOneBrowser
72
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 1 – Convert Currency
73
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 1 – Convert Currency
1
Click Properties Tab 74
OFFICIAL (CLOSED) \ NON-SENSITIVE
75
OFFICIAL (CLOSED) \ NON-SENSITIVE
76
• After you search the currency
conversion result, you want to
Use Case 2:
save the data for future use.
Pull Data from Website
• You will modify UC 1 to extract
(This topic will take about 60 mins) currency conversion result and
save the result to Excel file.
77
OFFICIAL (CLOSED) \ NON-SENSITIVE
Approach
78
OFFICIAL (CLOSED) \ NON-SENSITIVE
79
OFFICIAL (CLOSED) \ NON-SENSITIVE
Go to project folder
Double click
81
OFFICIAL (CLOSED) \ NON-SENSITIVE
Double click
83
OFFICIAL (CLOSED) \ NON-SENSITIVE
UiPath activity
1
Right click mouse
84
OFFICIAL (CLOSED) \ NON-SENSITIVE
• Delete Web
• Reconnect Close Tab
85
OFFICIAL (CLOSED) \ NON-SENSITIVE
Why we
move
activities to
Open
Browser?
86
OFFICIAL (CLOSED) \ NON-SENSITIVE
• Add a Activity.
• Then click “Take Informative screenshot” from AsiaOne website to
get the result
Create a variable,
Result as the output
87
OFFICIAL (CLOSED) \ NON-SENSITIVE
88
OFFICIAL (CLOSED) \ NON-SENSITIVE
89
OFFICIAL (CLOSED) \ NON-SENSITIVE
90
OFFICIAL (CLOSED) \ NON-SENSITIVE
91
OFFICIAL (CLOSED) \ NON-SENSITIVE
Check AddHeaders
option to add column
header into Excel
file. 92
OFFICIAL (CLOSED) \ NON-SENSITIVE
• Run the execution and verify your results in the Excel sheet.
How to
extract
the
values?
93
OFFICIAL (CLOSED) \ NON-SENSITIVE
94
OFFICIAL (CLOSED) \ NON-SENSITIVE
Regular expression can be used to search, extract and replace data based on
pattern
\d{2} Find any string with 2 digits '12', '145', '34', '65', '7895'
\s+\d{2}\s+ Find 2 digits enclosed by 1 or more '12', ' 12 ', ' 45 ', ' hi ', 'test'
spaces
1
What is the
difference between
the two Read Range
and Write Ranges
activities?
99
OFFICIAL (CLOSED) \ NON-SENSITIVE
100
OFFICIAL (CLOSED) \ NON-SENSITIVE
101
OFFICIAL (CLOSED) \ NON-SENSITIVE
102
OFFICIAL (CLOSED) \ NON-SENSITIVE
104
OFFICIAL (CLOSED) \ NON-SENSITIVE
105
OFFICIAL (CLOSED) \ NON-SENSITIVE
106
OFFICIAL (CLOSED) \ NON-SENSITIVE
• Run the UC 2 again and verify your result in the Excel sheet2.
• You will notice that Microsoft Excel Application is opened
107
OFFICIAL (CLOSED) \ NON-SENSITIVE
Further Reading
108
OFFICIAL (CLOSED) \ NON-SENSITIVE
110
OFFICIAL (CLOSED) \ NON-SENSITIVE
Approach
111
OFFICIAL (CLOSED) \ NON-SENSITIVE
Click Data
Scraping
112
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 3 – Data Scraping
113
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 3 – Data Scraping
114
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 3 – Data Scraping
UC 3 – Data Scraping
Rename column
name to Description
1
2 3 Rename column
name to URL
check Extract URL
Click Next
116
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 3 – Data Scraping
Click Extract
Correlated
Data to get
price data
117
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 3 – Data Scraping
118
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 3 – Data Scraping
1
Change to
Price
Click Next
119
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 3 – Data Scraping
Click Finish
1
120
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 3 – Data Scraping
Click Yes
121
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 3 – Data Scraping
1
Click Next
122
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 3 – Data Scraping
Connect Data 1
scraping to the
start node.
Click Double
click to View
123
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 3 – Data Scraping
By default the Scope will be Data scraping.
Change the scope to Flowchart to enable the
variable to be accessed beyond Data Scraping.
1
Click here
UC 3 – Data Scraping
3
connect to Data
scraping sequence.
2
125
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 3 – Data Scraping
2
Select ExtractDataTable.
126
OFFICIAL (CLOSED) \ NON-SENSITIVE
127
OFFICIAL (CLOSED) \ NON-SENSITIVE
128
Variables
(This topic will take about 5 mins)
129
OFFICIAL (CLOSED) \ NON-SENSITIVE
Variables
130
String Manipulation
(This topic will take about 5 mins)
131
OFFICIAL (CLOSED) \ NON-SENSITIVE
String Manipulation
• Here are some commonly used string manipulation functions
1. Concat: connect two strings
MyString=String.Concat(" Good ", "morning! ") “ Good morning! ”
2. Trim: Remove the spaces from both ends of a string
MyString.trim “Good morning!”
3. ToLower: Convert string to lower case
Check the
MyString.ToLower “good morning!”
sample script
4. ToUpper: Convert string to upper case provided in the
MyString.ToUpper “GOOD MORNING!” Word file
5. Replace: Replace part of the string
MyString.Replace("MORNING", "afternoon") “GOOD afternoon!”
6. substring: extract part of the string
MyString.Substring(0,4) “GOOD” Number of characters
7. Split: Split a string based on the given string to be extracted
MyString=“Good morning! ”
MyString.split({“d"},stringsplitoptions.None) {"Goo", “ morning!"}
Start position: 0 is
the first character
132
OFFICIAL (CLOSED) \ NON-SENSITIVE
String Manipulation
133
• You are thinking of what to
purchase for your son’s coming
Use Case 4:
birthday. You had previously
Data Manipulation (similar to Use Case 2) ran a bot
to scrape some price information
(This topic will take about 100 mins) from the internet.
134
OFFICIAL (CLOSED) \ NON-SENSITIVE
Approach
• Keep the first price value if there is Waterborrle Item not found
Gloves S$ 17.39 to S$ 17.55
more than one
• Remove space
• Convert string to number TV
Items Price
S$ 220.00
Price(S$)
220.00
• If price is not a number, set price as iPhone
S$ 272.58 to
S$ 340.72 272.58
0 Wallet
Shoes
S$ 10.89
S$ 40.37
10.89
40.37
Waterborrle Item not found 0
S$ 17.39 to S$
Gloves 17.55 17.39
135
OFFICIAL (CLOSED) \ NON-SENSITIVE
Start
Convert data
Save data
End
136
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 4
Create Flowchart
activity
1
137
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 4
Excel: Read
Range
works inside Excel
Application Scope
and requires Excel
being installed
Workbook: Read
Range
doesn’t require
Excel application
138
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 4
Create ItemsDT
variable
139
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 4 – ItemsDT Visualization
UC 4
141
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 4 – ItemsDT Visualization
• After Add Data Column, this is how the ItemsDT look like now.
Items Price
TV S$ 220.00
S$ 272.58 to S$
iPhone 340.72
Wallet S$ 10.89
Shoes S$ 40.37
Waterborrle Item not found
S$ 17.39 to S$
Gloves 17.55
142
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 4
UC 4 – ItemsDT Visualization
• After setting the new data column, this is how ItemsDT look like
now. Items Price Price(S$)
TV S$ 220.00
S$ 272.58 to S$
iPhone 340.72
Wallet S$ 10.89
Shoes S$ 40.37
Waterborrle Item not found
S$ 17.39 to S$
Gloves 17.55
144
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 4
145
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 4
Select ItemsDT
146
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 4
3
Change the variable
type to String 147
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 4
4 Change
variable type to
Array of
String
148
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 4
ArrayString(0).Trim
149
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 4
• Exception handling
• Catches a specified exception type. The activity body
contains three fields:
– Try - The activity performed which has a chance of throwing an
error.
– Catches - The activity or set of activities to be performed when
an error occurs.
• Exception - The exception type to look for. Please note that you can
add multiple exceptions.
– Finally - The activity or set of activities to be performed after
the Try Catch block whether or not an error occurred.
150
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 4
151
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 4
3
Browse for variable types to find and change to
system.double type, change scope to Body 152
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 4
1
2
Select
System.Exception Set Price value to be 0 if there is an error
153
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 4
154
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 4
• Add a activity to save data
UC 4
156
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 4 - Debug
Trainer will do a
demo first. All
trainees must
practise it.
157
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 4 - Debug
Click Breakpoints to
3 add a break point
2
UC 4 - Debug
159
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 4 - Debug
UC 4 - Debug
• Discussion
• What is
Debug?
• When to use
Debug?
161
OFFICIAL (CLOSED) \ NON-SENSITIVE
• Practise debug
• Use the following activities:
– Add Data Column
– Try Catch
162
OFFICIAL (CLOSED) \ NON-SENSITIVE
Day 1 Day 2
Morning Morning
Introduction of RPA and UiPath Handling and filtering data files
Afternoon Afternoon
163
OFFICIAL (CLOSED) \ NON-SENSITIVE
Quick Recap
• Introduction to RPA
– Productivity, Consistency/Accuracy, Scalability, Morale
• Use Case 1: Upload data to web from Excel
– Read Excel, DataTable, For each row, type into, click
• Use Case 2: Reading data from web
– As UC1, get Text, Selectors
• Use Case 3: Data scraping
– Reading large blocks of structured data, save to CSV
• Use Case 4: Variables and String Manipulation
– Integer, Boolean, Double,
– Replace, Split, Trim, Substring, toLower, toUpper
164
• Sally is working as a HR executive
in ABC Pte Ltd. She is in-charge
Use Case 5:
of consolidating over time (OT)
Handle Data Files and work information from each
Data department and computing the OT
pay for each staff in the company.
(This topic will take about 165 mins)
• Your task is to assist Sally to
develop a bot to sort OT files and
to compute a list of employees
who draw more then S$100 OT
pay.
165
OFFICIAL (CLOSED) \ NON-SENSITIVE
166
OFFICIAL (CLOSED) \ NON-SENSITIVE
Approach
Start
Approach
Start
Move to
folder
“Others”
End
168
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 5 – Open Project
169
OFFICIAL (CLOSED) \ NON-SENSITIVE
170
Get Files from a Folder
171
OFFICIAL (CLOSED) \ NON-SENSITIVE
• This process will retrieve the full path of all the files and the
number of files in the given folder
Out_ArrOfFiles
In_FolderName
GetFilesFromFolder
Out_Count
172
OFFICIAL (CLOSED) \ NON-SENSITIVE
1
173
OFFICIAL (CLOSED) \ NON-SENSITIVE
Arguments is to bring in
or return values.
Out_ArrOfFiles
In_FolderName
GetFilesFromFolder
Out_Count
174
OFFICIAL (CLOSED) \ NON-SENSITIVE
Discussion
What is the
difference between
Variable and
Argument.
175
OFFICIAL (CLOSED) \ NON-SENSITIVE
system.IO.Directory.GetFiles(In_FolderName)
Out_ArrOfFiles is the
2 list of all the files in that
folder.
Out_Count is the
number of files.
176
OFFICIAL (CLOSED) \ NON-SENSITIVE
Discussion
177
The Main Process Flow
178
OFFICIAL (CLOSED) \ NON-SENSITIVE
179
OFFICIAL (CLOSED) \ NON-SENSITIVE
Discuss what is
the difference
between String
and String[].
180
OFFICIAL (CLOSED) \ NON-SENSITIVE
• Add activity
2
Set DisplayName property to: Get files
from folder “Files”
181
OFFICIAL (CLOSED) \ NON-SENSITIVE
GetFilesFrom
Main Invokes
Folder
ArrOfFiles Count “Files” In_FolderName Out_Count Out_ArrOfFiles
Import Arguments
connects these links
182
OFFICIAL (CLOSED) \ NON-SENSITIVE
183
OFFICIAL (CLOSED) \ NON-SENSITIVE
Input Output
Input data
Workflow file Returned data
This is folder
name
This is
variable
name
185
OFFICIAL (CLOSED) \ NON-SENSITIVE
What is the
meaning of this
condition?
186
OFFICIAL (CLOSED) \ NON-SENSITIVE
Invoke
Workflow
1
5 Check whether it is an Over Time file
6 2
Execution ended
3 187
OFFICIAL (CLOSED) \ NON-SENSITIVE
188
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 5 – Move File
189
OFFICIAL (CLOSED) \ NON-SENSITIVE
Set WorkflowFileName to
190
“ProcessOTFiles.xaml”
OFFICIAL (CLOSED) \ NON-SENSITIVE
191
OFFICIAL (CLOSED) \ NON-SENSITIVE
192
Process OT Files
193
OFFICIAL (CLOSED) \ NON-SENSITIVE
Approach
195
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 5 – Process OT Files
Double click
ProcessOTFiles.xaml
196
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 5 – Process OT Files
197
OFFICIAL (CLOSED) \ NON-SENSITIVE
198
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 5 – Process OT Files
UC 5 – Process OT Files
2
Delete all the preset columns
and fields as shown
3 Click OK 200
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 5 – Process OT Files
• Create a activity
• Set values to be “ArrOfFiles”
201
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 5 – Process OT Files
202
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 5 – Process OT Files
UC 5 – Process OT Files
UC 5 – Process OT Files
205
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 5 – Process OT Files
• Create a activity
• Change display name to “Process OT data”
• Create activity
UC 5 – Process OT Files
UC 5 – Process OT Files
• Create activity
• Calculate the value for “Total OT ($)”
• Total OT ($) = Hourly OT rate X OT hours
CombineDatatable
DataTable
row("Total OT ($)")
What is Cint
here?
Cint(row("Hourly OT ($)"))*Cint(row("Overtime (hrs)")) 208
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 5 – Process OT Files
UC 5 – Process OT Files
UC 5 – Process OT Files
• Output the result
212
OFFICIAL (CLOSED) \ NON-SENSITIVE
Project Organisation
213
OFFICIAL (CLOSED) \ NON-SENSITIVE
Further Reading
215
OFFICIAL (CLOSED) \ NON-SENSITIVE
216
• In the previous Use Case, you
helped Sally to develop a bot to
sort OT files and to compute OT
Use Case 6: pay for staff from various
Read Emails departments for her company.
• At the end of each month,
(This topic will take about 40 mins) department heads will send Sally
emails with the OT file attached.
Instead of manually downloading
the OT files, this process can be
automated as well.
• Your task is to assist Sally to
develop such a bot.
217
OFFICIAL (CLOSED) \ NON-SENSITIVE
Approach
End
218
OFFICIAL (CLOSED) \ NON-SENSITIVE
219
OFFICIAL (CLOSED) \ NON-SENSITIVE
220
OFFICIAL (CLOSED) \ NON-SENSITIVE
221
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 6 – Read Emails
• Create a
• Create a
• Change sequence Display Name to “Get email via Outlook”
222
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 6 – Read Emails
223
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 6 – Read Emails
UC 6 – Read Emails
1
2
UC 6 – Read Emails
Drag Message
Box into the Body
of For Each
window Type
2
mail.Subject
1
226
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 6 – Read Emails
2
The mail
attachments will
be saved to
subfolder
227
"Attachments"
• Ella work as an admin executive
in a company offering work-based
Use Case 7: training for other companies. Her
Send Emails daily routine includes replying
enquiries for interest on courses
the company offer. Ella
(This topic will take about 40 mins)
consolidated email addresses of
the enquirers in an excel file.
228
OFFICIAL (CLOSED) \ NON-SENSITIVE
Approach
229
OFFICIAL (CLOSED) \ NON-SENSITIVE
230
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 7 – Send Emails
Start
Send email
based on
email list
End
231
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 7 – Send Emails
2
Copy these
files into
project folder
1
232
OFFICIAL (CLOSED) \ NON-SENSITIVE
233
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 7 – Send Emails
Email list in Excel file “EmailList.xlsx”
UC 7 – Send Emails
235
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 7 – Send Emails
Click to select
"email_body_
plain_text.txt"
text file
236
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 7 – Send Emails
UC 7 – Send Emails
Add activity
UC 7 – Send Emails
UC 7 – Send Emails
• Add attachment
Set attachment file name from
EmailList column “Attachment”:
row("Attachment").ToString
2
Click Create
Argument
240
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 7 – Send Emails
• Practise how to get Outlook Mail Messages and filter incoming emails
• Practise how to save attachments in Outlook Mail Messages to local
folder
• Practise how to send email with attachment
• Use string.format() to customize a string
• Use the following activities:
– Get Outlook Mail Message
– Save attachments
– Read Text File
– Send Outlook Mail Message
– If
– Append Line
242
OFFICIAL (CLOSED) \ NON-SENSITIVE
243
• Jimmy has developed a few bots
which he will run them at least
once per week. After a few weeks,
Robot and Orchestrator Jimmy finds it is troublesome to
open UiPath Studio each time he
needs to run a bot. He wants to
(This topic will take about 30 mins)
explore a different way to run a
bot without opening UiPath Studio
and pass the robot to his
colleague without passing the
design code. Is that possible?
244
OFFICIAL (CLOSED) \ NON-SENSITIVE
Robot Execution
245
OFFICIAL (CLOSED) \ NON-SENSITIVE
246
OFFICIAL (CLOSED) \ NON-SENSITIVE
Robot
• A process needs to be published before it can be executed on a
robot
• Run it to check whether it is working
• Click
1
Click Publish
Robot
• Run a process
– Automation project package is stored in folder:
C:\ProgramData\UiPath\Packages
248
OFFICIAL (CLOSED) \ NON-SENSITIVE
Robot
249
OFFICIAL (CLOSED) \ NON-SENSITIVE
UiPath Assistant
• You can set a reminder date, time and frequency to get a reminder to
run the selected process
250
OFFICIAL (CLOSED) \ NON-SENSITIVE
UiPath Assistant
251
OFFICIAL (CLOSED) \ NON-SENSITIVE
252
OFFICIAL (CLOSED) \ NON-SENSITIVE
Discussion
253
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 8 – Environment Folder
254
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 8 – Environment Folder
255
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 8 – Environment Folder
256
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 8 – Environment Folder
Search get
environment folder
257
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 8 – Environment Folder
1 Right Click
FolderPath output
Select field to create a
MyDocuments string variable
DocumentFolder
258
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 8 – Environment Folder
259
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 8 – Environment Folder
260
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 8 – Environment Folder
261
OFFICIAL (CLOSED) \ NON-SENSITIVE
UC 8 – Environment Folder
262
OFFICIAL (CLOSED) \ NON-SENSITIVE
263
OFFICIAL (CLOSED) \ NON-SENSITIVE
UiPath Orchestrator
https://www.UiPath.com/orchestrator
264
OFFICIAL (CLOSED) \ NON-SENSITIVE
Deployment
265
https://www.uipath.com/start-trial
OFFICIAL (CLOSED) \ NON-SENSITIVE
UiPath Orchestrator
Enterprise level
266
OFFICIAL (CLOSED) \ NON-SENSITIVE
267
OFFICIAL (CLOSED) \ NON-SENSITIVE
Going Further
1. Tutorials www.UiPath.com/tutorials
2. UiPath Academy www.UiPath.com/rpa-academy
3. UiPath forum forum.UiPath.com
4. Youtube videos:
• UiPath Version: https://youtu.be/h3-L7qaTeEg
• UiRobot Offline Mode: https://youtu.be/eVD00t2Upjw
• UiRobot Online Mode: https://youtu.be/Uwmlaxvm83Q
• UiRobot Scheduling: https://youtu.be/TqnmN-01qAA
268
How to approach your first use case
(This topic will take about 45 mins)
269
OFFICIAL (CLOSED) \ NON-SENSITIVE
270
OFFICIAL (CLOSED) \ NON-SENSITIVE
271
OFFICIAL (CLOSED) \ NON-SENSITIVE
272
OFFICIAL (CLOSED) \ NON-SENSITIVE
273
OFFICIAL (CLOSED) \ NON-SENSITIVE
Create Email
Send Email
274
OFFICIAL (CLOSED) \ NON-SENSITIVE
275
OFFICIAL (CLOSED) \ NON-SENSITIVE
• Value-add of process
– Do we really need it?
• Do we really need RPA?
– Can we implement the process in Excel / other software?
– For example Pivot tables or VLOOKUP
277
OFFICIAL (CLOSED) \ NON-SENSITIVE
278
OFFICIAL (CLOSED) \ NON-SENSITIVE
279
OFFICIAL (CLOSED) \ NON-SENSITIVE
Reduce Defects
• Validate inputs
– Garbage in, garbage out
• Standardize inputs using forms
– Structured data is easier to read
• Standardize between processes
– Address format, data / time format
– Templates
• Make documents easily readable for computers
– Reduce merging cells, adding data between rows
280
OFFICIAL (CLOSED) \ NON-SENSITIVE
Reduce Defects
281
OFFICIAL (CLOSED) \ NON-SENSITIVE
Reduce Motion
282
OFFICIAL (CLOSED) \ NON-SENSITIVE
UiPath Tutorials
https://www.UiPath.com/kb-articles/how-to-automate-sap-applications-the-quick-guide 283
OFFICIAL (CLOSED) \ NON-SENSITIVE
284
OFFICIAL (CLOSED) \ NON-SENSITIVE
285
Complexity VS Impact
286
OFFICIAL (CLOSED) \ NON-SENSITIVE
Complexity VS Impact
287
OFFICIAL (CLOSED) \ NON-SENSITIVE
Yes
Paste first price displayed
on Lazada back to Excel
More Items
to search in
Lazada?
289
OFFICIAL (CLOSED) \ NON-SENSITIVE
290
OFFICIAL (CLOSED) \ NON-SENSITIVE
291
OFFICIAL (CLOSED) \ NON-SENSITIVE
Automation Benefits
Lazada Use Case Example
Automation Benefits
293
OFFICIAL (CLOSED) \ NON-SENSITIVE
For Each
Copy the first
Row
data from
excel.
Assign
296
OFFICIAL (CLOSED) \ NON-SENSITIVE
298
OFFICIAL (CLOSED) \ NON-SENSITIVE
UIPath Activities, Flow, Settings and • Focus on completing your first bot
Exception Handling first, then use more efficient
activities and improve its reliability
Activity to Use
299
UiPath Task Capture
300
OFFICIAL (CLOSED) \ NON-SENSITIVE
301
OFFICIAL (CLOSED) \ NON-SENSITIVE
• Double Click
302
OFFICIAL (CLOSED) \ NON-SENSITIVE
303
OFFICIAL (CLOSED) \ NON-SENSITIVE
304
OFFICIAL (CLOSED) \ NON-SENSITIVE
• Click Next
1
• Click Export
305
OFFICIAL (CLOSED) \ NON-SENSITIVE
306
OFFICIAL (CLOSED) \ NON-SENSITIVE
Day 1 Day 2
08:30
09:00 Welcome and introduction to RPA
Introduction to UiPath Use Case 5 - Handle Data Files and data
09:30 Use Case 1 – Convert Currency, Flow Decision, Get files, Use Invoke Workflow File, Merge
10:00 Open Browser, Web Recording, Basic Selectors datatable, Filter data table
10:30 Tea Break Tea Break
11:00
Read Excel, For Each Row, Close Tab Sort datatable , Project organisation
11:30
12:00
Lunch Lunch
12:30
13:00 Use Case 6 and Use Case 7- Email Automation
Use Case 2 - Pull Data from Web Site
13:30 Log Message, Selectors
14:00
UiPath Robot and Orchestrator
14:30 Use Case 3 - UiPath Data Handling - Data scraping
15:00 Tea Break Tea Break
15:30
How to Approach Your First Use Case
16:00 User Case 4 – Data Manipulation
String manipulation, Variables, Conditional statement,
16:30 Exception handling, Add data column, Practise Debug First Use Case Discussion
17:00
307
First Use Case Discussion
308