You are on page 1of 4

----------------------------------------------------------------------

"COMPANY CONFIDENTIAL FILE IN DETAIL"


"ONLY FOR COMPANY USAGE,NOT FOR DISTRIBUTION TO ANY ONE IN CASE"
"XECUTESMART TECHNOLOGIES"/"XECUTESMART SERVICE ASSOCIATION"
[CONTACT:ENGINEER.MR.S.SUDHAKARAN]//[SURULIRAJ SUDHAKARAN]
[PHONE: 91.97900.20881]//[EMAILID: XECUTESMART.ITSME@GMAIL.COM]
----------------------------------------------------------------------
# CS,IT/SW SKILLS: ROBOTICS PROCESS AUTOMATION // [RPA] UiPATH TOOL

# DEAR STUDENTS, PLEASE READ AND UNDERSTAND EACH STEP, BEFORE YOU PROCEED TO DO THE
LAB
AND FOLLOW THE TRAINER SPEECH FOR YOUR DIRECTION TO AVOID CONFUSION/MISTAKE/DELAYS
TO GET AN ACTUAL RESULT. THANK YOU!

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# PROJECT NAME: EXCEL ACTIVITIES IN EMAIL AUTOMATION # [EMAIL AUTOMATION SSR10] #

# FINAL RESULT, WE NEED TO GET EMAIL-ID'S WITH THE FOLLOWING:


J-KI@XECUTESMART.COM
R-SI@XECUTESMART.COM
D-BR@XECUTESMART.COM
B-VI@XECUTESMART.COM
K-LE@XECUTESMART.COM

JOHN.KIM@XECUTESMART.COM
ROBERT.SIMON@XECUTESMART.COM
DAVE.BROWN@XECUTESMART.COM
BYRON.VICTOR@XECUTESMART.COM
KAREN.LEO@XECUTESMART.COM

# Step 0.0: Create a sample, People_Email Excel Sheet file in folder,


with the following columns with the details, Please make sure, EMAILID column
values are Empty
This Project or Task, we are going to find those Emailid values at the end result:

FIRSTNAME LASTNAME EMAILID CITY


JOHN KIM CALIFORNIA
ROBERT SIMON NEWYORK
DAVE BROWN ARIZONA
BYRON VICTOR ALABAMA
KAREN LEO OMAHA

# Step 0.1: Click On Project, Please make sure, the following 4 default packages
and
click on Managed Packages to install and save for: UiPathTeam.File.Activities

UiPath.Excel.Activities
UiPath.Mail.Activities
UiPath.System.Activities
UiPath.UIAutomation.Activities
UiPathTeam.File.Activities

# STEP 1: Look at down menus, Click on Activities, Search for Flowchart, Drag and
Drop in workspace,
Flowchart Title named as Email Automation

# STEP 2: Activities, Search for Excel Application Scope, Drag and Drop in
workspace,
Goto the path to the excel file you
created one above
"C:\SSR\IT_SKILLS\ROBOTICS_RPA\PROJECTS_PRACTICALS\People_Email.xlsx"

# STEP 3: Activities, Search for Read Range, Drag and Drop in Do Drop Activity
window,
Excel / Read Range, Sheet1, ""

# STEP 4: Click on Excel / Read Range, look at the Properties, Output:DataTable:Do


Right click,
Choose Create Variable, Set Name: GetEmployeedata

Then Click on Variables down,this will display as:


Name: GetEmployeedata, Variable type: DataTable, Scope:Email Automation, Default:

# STEP 5: GOTO Email Automation - Workflow:


Start.....>Excel Application Scope

# STEP 6: In Activities, Search For each row, Drag and Drop in workspace,
Programming/DataTable/For Each Row
Connect For each row with the above Excel Application Scope
Start.....>Excel Application Scope......>For each row....double click then

Foreach row in box,Just type G, this will drop down to get, GetEmployeedata

In Activities, Search for Assign,


Drag and Drop "Assign" Activiy in Body of For each row
On Assign Right Click Create Variable
Set Name/Var: V1 = row.item(0).ToString.Substring(0,1)

Drag and Drop Assign Activiy in Body of For each row


On Assign Right Click Create Variable
Set Name/Var: V2 = row.item(1).ToString.Substring(0,2)

Drag and Drop Assign Activiy in Body of For each row


On Assign Right Click Create Variable
Set Name/Var: V3 = V1+"-"+V2+"@xecutesmart.com"

# STEP 7: In Activities, Search for Excel Application Scope, Again Drag and Drop
Excel Application Scope in Body
Give path name of your excel file
"C:\SSR\IT_SKILLS\ROBOTICS_RPA\PROJECTS_PRACTICALS\People_Email.xlsx"

# STEP 8: In Activities, Searh for Assign, Drag and Drop Workflow/control/"Assign"


into Excel Application Scope/Do/
Do right click on first assign workflow, choose create variable, Set Name: Counter
=

Click on Variables:
Name:Counter, VariableType:GenericValue, Scope: Email_Automation, Default: 1

Go back to Step 8 above, fullfill the detail like, Set Name/Var: Counter =
Counter+1

# STEP 9: In Activities, search for Assign and Drag and Drop "Assign" into Excel
Application Scope/Do/again
Set Name/Var: cellnum = "c"+counter.ToString

# STEP 10: In Activities, Search for Write Cell, Drag and Drop Excel Write Cell,
into After Assign into Excel App Scope/Do/
In First Box:
"Sheet1" = cellnum
In 2nd Box:
V3

Click on For each row window, then Click on Variables down to see:
Name: cellnum, VariableType: GenericValue, Scope:Email_Automation, Default: 1

Please make sure, click on Main, see the following:


Start............>Excel Application Scope.............>For each row should be
connected

Then Ctrl+S = Save, Validate on Execute window/tab, then Run

Goto your People_Email Excel file in Stored folder to to See the Result

-------------------------------------------------------------------------------
[Main: Start............>Excel Application Scope.............>For each row]

[Excel Application Scope...........Do[Read Range]

[For each row...Body...Assign...Assign...Assign...Excel Application


Scope..Do[Assign...Assign...Writecell]
--------------------------------------------------------------------------------
# Main...For each row...Click on Body, Display the following:
Name:V1 V.Type:GenericValue Scope:Body Default:
Name:V2 V.Type:GenericValue Scope:Body Default:
Name:V3 V.Type:GenericValue Scope:Body Default:
Name:GetEmployeeData V.Type:DataTable Scope:People Email Automation Default:
Name:counter V.Type:GenericValue Scope:People Email Automation
Default:1
Name:cellnum V.Type:GenericValue Scope:People Email Automation
Default:1
-----------------------------------------------------------------------------
# FINAL RESULT, WE NEED TO GET EMAIL-ID'S WITH THE FOLLOWING:

Drag and Drop "Assign" Activiy in Body of For each row


On Assign Right Click Create Variable
Set Name/Var: V1 = row.item(0).ToString.Substring(0,1)

Drag and Drop Assign Activiy in Body of For each row


On Assign Right Click Create Variable
Set Name/Var: V2 = row.item(1).ToString.Substring(0,2)

J-KI@XECUTESMART.COM
R-SI@XECUTESMART.COM
D-BR@XECUTESMART.COM
B-VI@XECUTESMART.COM
K-LE@XECUTESMART.COM

---------------------------------------------------------------
# FINAL RESULT, WE NEED TO GET EMAIL-ID'S WITH THE FOLLOWING:

Drag and Drop "Assign" Activiy in Body of For each row


On Assign Right Click Create Variable
Set Name/Var: V1 = row.item(0).ToString.Substring(0)

Drag and Drop Assign Activiy in Body of For each row


On Assign Right Click Create Variable
Set Name/Var: V2 = row.item(1).ToString.Substring(0)

JOHN.KIM@XECUTESMART.COM
ROBERT.SIMON@XECUTESMART.COM
DAVE.BROWN@XECUTESMART.COM
BYRON.VICTOR@XECUTESMART.COM
KAREN.LEO@XECUTESMART.COM

---------------------------------------------------------------------------------

You might also like