UiPath Beginner Training Lab Excel β†’ Web Form β†’ Order ID β†’ Email β†’ SharePoint

Training Objective

Participants will build a UiPath robot that reads customer data from Excel, fills in a web form, captures the Order ID, stores the Order ID in Excel, emails each customer and uploads the file to SharePoint.

6Process steps
10Sample data records
~2 hrsEstimated training time

Process Flow

Prepare Customer Data in Excel/CSV
πŸ” For Each Row
Open Input Data Form
Fill Customer Data & Submit
Extract Order ID from Submission
Store Customer Data + Order ID in Excel
Send Email to Customer with Order ID
More Customers to Submit? β†’ Yes: repeat
Upload Excel with All Order IDs to SharePoint
Validate Data & Email Delivery

Preparation (Step 0)

  1. Install UiPath Studio (Community Edition) and sign in.
  2. Install the UiPath Browser Extension for Chrome / Edge.
  3. Create a new project: Process β†’ name it CustomerOrderBot.
  4. Make sure the following packages are installed (Manage Packages):
    UiPath.Excel.Activities UiPath.UIAutomation.Activities UiPath.Mail.Activities UiPath.MicrosoftOffice365.Activities
  5. Download the sample data from the 2. Sample Data tab and save it in your project folder.

Suggested Variables

NameTypePurpose
dtCustomersDataTableData from Excel
strOrderIdStringOrder ID from the form
strExcelPathStringExcel file path
intCountInt32Successful count
1

Prepare Customer Data (Excel/CSV)

Download Customer_Sample_Data.xlsx. The file contains: Full Name, Address, Phone No, Gender, Date of Birth, Nationality, IC / Passport, Email and an empty Order ID column. Make sure all data is complete before you start.

Use Excel FileRead RangeRead CSV
Use Excel File  β†’ Path: "Customer_Sample_Data.xlsx"   (Reference as: Excel)
  Read Range    β†’ Range: Excel.Sheet("Sheet1")   Output: dtCustomers   (Has headers βœ”)
Log Message     β†’ "Total customers: " + dtCustomers.Rows.Count.ToString
2

Submit Data via Form

Open the 3. Input Form tab in your browser, then use Use Application/Browser. Inside For Each Row in Data Table, fill in every field and click Submit. Each element has a stable id so selectors are simple and reliable.

Use Application/BrowserFor Each Row in Data TableType IntoSelect ItemClickGet Text
FieldElement idActivityValue (VB.NET)
Full NamefullNameType IntoCurrentRow("Full Name").ToString
AddressaddressType IntoCurrentRow("Address").ToString
Phone NophoneNoType IntoCurrentRow("Phone No").ToString
GendergenderSelect ItemCurrentRow("Gender").ToString
Date of BirthdobType IntoCurrentRow("Date of Birth").ToString (DD/MM/YYYY)
NationalitynationalityType IntoCurrentRow("Nationality").ToString
IC / PassporticPassportType Into🧩 Challenge – see below
EmailemailType IntoCurrentRow("Email").ToString
SubmitbtnSubmitClick–
Order IDorderIdGet TextOutput β†’ strOrderId
Submit AnotherbtnNewClickReturn to an empty form
Error messageformErrorCheck App StateIf it appears β†’ log the error, skip the row

πŸ’‘ Tip: For Type Into, enable Empty field before typing. Tick β€œSimulate slow server” on the form to practise Check App State / timeouts.

Use Browser Edge/Chrome β†’ URL: (link tab Input Form)
  For Each Row in Data Table (CurrentRow in dtCustomers)
    Type Into  'Full Name'      ← CurrentRow("Full Name").ToString
    ...                          (field lain)
    Select Item 'Gender'        ← CurrentRow("Gender").ToString
    Click      'Submit'
    Check App State β†’ wait element 'orderId' appears (timeout 10s)
    Get Text   'orderId'        β†’ strOrderId
    Assign     CurrentRow("Order ID") = strOrderId
    Click      'Submit Another'

Order ID format: 12345001234_1234 (11 digits + underscore + 4 digits). Validation regex: ^\d{11}_\d{4}$

🧩 Challenge – IC / Passport field
The form only accepts numbers in the IC / Passport field, but the Excel data contains dashes (e.g. 900314-14-5671) and some passports contain letters (e.g. K48201937). Do not edit the Excel file – make the robot clean the value before typing it. Malaysian IC must end up as exactly 12 digits.
Hint 1Look at the String methods available on CurrentRow("IC / Passport").ToString – which one can swap a character for nothing?
Hint 2Passports contain letters, not only dashes. Is there an activity or .NET class that removes every non-digit character in one go?
Show answer Dashes only: CurrentRow("IC / Passport").ToString.Replace("-","")
All non-digits: System.Text.RegularExpressions.Regex.Replace(CurrentRow("IC / Passport").ToString, "[^0-9]", "")
3

Store Order ID in Excel

When the loop finishes, write the DataTable (which now contains the Order IDs) to a new file Customer_Order_List.xlsx.

Write RangeWrite Cell
Use Excel File β†’ Path: "Customer_Order_List.xlsx"  (Create if not exists βœ”)
  Write Range  β†’ Destination: Excel.Sheet("Sheet1")   Source: dtCustomers   (Include headers βœ”)
4

Send Email to Customer

Use Send Outlook Mail Message inside the loop (or in a second loop after the Excel file is saved). Replace the Email column with your own email address when testing.

Send Outlook Mail Message
Your Order ID from UiPath Submission
Dear [Customer Name], Thank you for your submission. Your Order ID is: [Order ID] Please keep this Order ID for your reference. Best regards, UiPath Training Team
To:      CurrentRow("Email").ToString
Subject: "Your Order ID from UiPath Submission"
Body:    "Dear " + CurrentRow("Full Name").ToString + "," + vbCrLf + vbCrLf +
         "Thank you for your submission." + vbCrLf + vbCrLf +
         "Your Order ID is: " + CurrentRow("Order ID").ToString + vbCrLf + vbCrLf +
         "Please keep this Order ID for your reference." + vbCrLf + vbCrLf +
         "Best regards," + vbCrLf + "UiPath Training Team"
5

Upload Excel to SharePoint

Manual: Sign in to SharePoint β†’ go to the training / automation results folder β†’ Upload Customer_Order_List.xlsx.
Automated (optional): Use Microsoft 365 activities (requires an M365 account connection / Integration Service).

Microsoft 365 ScopeUpload File
Microsoft 365 Scope (or OneDrive & SharePoint connection)
  Upload File β†’ File: "Customer_Order_List.xlsx"
               Destination: SharePoint site β€Ί Documents β€Ί UiPath Training Results
6

Validation

  • ☐ The Excel file on SharePoint can be opened.
  • ☐ Every customer has an Order ID (correct format).
  • ☐ Emails have been sent to all customers.

Use the 4. Submissions & Validation tab β†’ upload Customer_Order_List.xlsx to automatically check that every Order ID is valid and exists in the form records.

Optional UiPath Enhancements

  • Automate form submission using Data Scraping / Type Into.
  • Automate email sending using Send Outlook Mail Message with Excel looping.
  • Automate SharePoint upload using UiPath SharePoint / Microsoft 365 Activities.
  • Add Try Catch + Retry Scope for failed records, and write a Status column.

Sample Customer Data

Download the file below and save it in your UiPath project folder. The Order ID column is left empty for the robot to fill in.

πŸ’‘ Date of Birth, Phone No and IC / Passport are stored as text so UiPath does not change the date format or drop leading zeros. Replace the Email column with your own email address before testing Step 4.

Generate random data (extra practice)

For volume / looping practice, generate a random dataset in the same format.

Customer Input Data Form

Enter customer details and click Submit to receive an Order ID.
Format: DD/MM/YYYY
Numbers only – no dashes, spaces or letters.
Processing submission…
0Total submissions
0Unique customers
–Last submission

Submission Log

All form submissions (stored in this browser). Use it as the β€œanswer key” to check the robot’s results.

Validate Customer_Order_List

Upload the robot’s output file (.xlsx or .csv). The Order ID column will be checked: present, correct format, and matching the submission records.

Email Preview

Select a submission to preview the email the robot should send.

–