After checking condition of column from data table. Need to put data into build datatable

After getting data into data table, I have used each row and putting If condition to check “Email” column is null or not.
My scenario is If email column is not null then I need to all rows data where email has data in column and store into build data table.

Can i anyone suggest how to do that?


Perhaps you should create DataTable instance before ForEachRow, then use AddDataRow in the loop, as the following.

Or, FilterDataTable activity also might be available, depending on your requirement.


Getting error while adding add data row

showing error:-Add Data Row: This row already belongs to another table.

It’s working now, I have changed dt.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.