Fine
This is the detailed steps
-
Hope u have an excel file with two columns say “columnA” and “columnB” which is read with read range activity named dt
-
Now let’s get the unique records from this datatable dt
Use a assign activity like this
dt_1 = dt.DefaultView.ToTable(True, “columnA”, “columnA”)
Where dt_1 is a variable of type datatable
Use another assign like this
dt_2 = dt.DefaultView.ToTable(True, “columnA”, “columnB”)
- Use add datacolumn activity where pass datatable as dt_1 and in datacolumn property mention as dt_2.Columns(“your columnname”)
So now the datatable dt has both the columns with it unique values
- Now use a For each row for datatable activity and pass dt_1 as input
5.To get the mail id together from
Both the columns which has unique value now, use a assign activity like this
Strmailid = CurrentRow(“ColumnA”).ToString+”;”+ CurrentRow(“ColumnB”).ToString
If u want to get them as separate value then in assign activity
Strmailid_1 = CurrentRow(“ColumnA”).ToString
Strmailid_2 = CurrentRow(“ColumnB”).ToString
Here ColumnA and columnB are column header names
Id header name is not there then use column index like this
Strmailid_1 = CurrentRow(column index).ToString
Where column index start from 0 for first column so it would be like
Strmailid_1 = CurrentRow(0).ToString
Strmailid_2 = CurrentRow(1).ToString
Hope this helps
Cheers @ayushi_jain3