How to combine row from two datatable

Hi,

How to combine the row from two datatable
image

image

to this :
image

use merge data table activity

Hope this helps

your case is a side-by-side merge

1 Like

Hi @Suastrian_Dika

-Read the Two DataTables
-Create a New DataTable and Combine rows
Use a For Each Row activity to loop through each row in the first DataTable (dt1) and add them to the combinedDataTable.
-(dt2) and also add them to the combinedDataTable.

Like this…

For Each Row in dt1
combinedDataTable.Rows.Add(row.ItemArray)
For Each Row in dt2
combinedDataTable.Rows.Add(row.ItemArray)

Cheers…!

Hi,

If number of rows of the dataable is same, the following will work

Sequence.xaml (11.5 KB)

Regards,

1 Like

Main.xaml (12.8 KB)

Hope this clarifies
Usha

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