Hi,
I am stuck on creating a solution as I am at a beginner level and I do not know how to implement the solution for my company.
Objective: Create an email draft using Studio to automate and generate a customer invoice every Monday based on the customer’s purchased history and summary. By refencing the Excel workbook “Summary.xlsx”
- Start by opening the Excel workbook with all the table data, read the values and create an Outlook mail draft.
- Each customer is assigned to a sales person (unique). There are no duplicate customers for each salesperson.
- There is a point system whereby if a customer purchased a certain amount of products they can obtain points and they can claim a discount amount.
> “Eg. If Customer A purchased Product A, 10 points is given. Need 100 points to claim a 10USD discount which will be stated inside the email draft notifying the customer that they need 90 more points to claim the 10USD discount voucher.”
- The output:-
Within the Outlook draft,
(Body Content)
Dear <cust_code> <cust_name>
Thank you for the purchase!
Your current point is <total_accu_points>
You require additional <req_points> to obtain <voucher_amount>
*As of purchased <current_date>
- The email draft will be sent to the sales person when I run the UiPath Assistant.
The end result should look like this:-
The logics,
For each sales_person,
if Sales 1 is found, do For Each cust_code {
Where by referring to Sales worksheet
cust_code = vlookup(B2, Sales, A:B, 2,0)
cust_name = vlookup(B2, Sales, A:C, 3,0)
total_accu_points = vlookup(B2, Sales, A:D, 4,0)
req_points = total_accu_points - gain_points
voucher_amount == req_points, vlookup(D2, Points, A:C, 3,0)
}
If Sales 2 is found, do For Each cust_code {
Where by referring to Sales worksheet
cust_code = vlookup(B2, Sales, A:B, 2,0)
cust_name = vlookup(B2, Sales, A:C, 3,0)
total_accu_points = vlookup(B2, Sales, A:D, 4,0)
req_points = total_accu_points - gain_points
voucher_amount == req_points, vlookup(D2, Points, A:C, 3,0)
}
If Sales 2 … and so on
*As each sales person is handling multiple customer, how do I send multiple email drafts to the salesperson?
Summary.xlsx (14.1 KB)