I have filtered the Excel table for each user, generating four output Excel files, i.e. one file per ‘Name’. Now I need to send those files to their corresponding email addresses. For the file with ‘Name1’, having two rows, it’s sending the same file twice to ‘name1@domain.com’. It should be sent only once. I tried those properties for distinct values, such as ‘arrayVariable.Distinct().ToArray()’ and 'table.DefaultView.ToTable(True,“Email”) but no success.
Thanks. It works just fine
One quick question: suppose if I have a fourth column (columnD) holding other values, let’s call it Value2. How to send those emails only if Value2-Value1 <= 1000?
Sorry, just learning UiPath and every information here in this forum is a great help.
Read the input excel and store output in master datatable variable
Using For each DataRow with input as master datatable
a) Create new dattable with same structure as master dattable with build datatable activity.
b) get the values from Value2 and Value1 columns.
c) In IF condition check Value2-Value1 <= 1000
i) If Value is true, copy that row from mater datatable to new datatable.
ii) Write new datatable to excel sheet with approriate name and send mail give same
path which u have used to create excel in send mail activity.
iii) if value is False do nothing