@alex_joshy
Welcome to the community
Can you please try this
dt = Dt.AsEnumerable.GroupBy(function(x) x("SONum").ToString).Select(function(x) x.First).CopyToDataTable
Use this in assign
Cheers
1 Like
@alex_joshy Hi
The DefaultView property returns a DataView you can use to sort, filter, and search a DataTable.
For Example :We can use the simple DefaultView Code to To Remove Duplicates From Datatable In UiPath
dataTable new_dt =
old_dt.DefaultView.ToTable(True)
Note:
Useful when we are removing duplicates with respect to every “Column”
1 Like
Thanks its worked
1 Like
Please mark the solution if resolved, so that others also can get help
Happy Automation
Cheers
1 Like
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.