How to find matching values in two different data table?

Hi,
I have 2 data tables DataBase
image

and PersonelDT
image

I need to take Registration Number from DataBase and find in PersonelDT and write the corresponding Activity Type to DataBase.
For example for 98765 in DataBase I need to get 1215 and write it to DataBase.

I used look up data table activity but it didn’t work.

Thanks.

Hi,

Can you try using join data table activity in UiPath? you can easily the expected result through this

1 Like

Hi @makboga

Try with this expression

DT_Final = DT_2.AsEnumerable.Where(Function(r) DT_1.AsEnumerable.Any(Function(r2) r2("Registration Number").ToString=r("Regist. No").ToString)).CopyToDataTable.DefaultView.ToTable(False,{"Registration Number","Amount","Activity Type"})

Regards
Gokul

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