(From row In dt.AsEnumerable()
Group row By Name = row.Field(Of String)("Name") Into Group
Where Group.All(Function(r) String.Equals(r.Field(Of String)("Activity"), "Warrior", StringComparison.OrdinalIgnoreCase))
Select Group.First()).CopyToDataTable()
(From row In DT.AsEnumerable()
Group row By Name = row.Field(Of String)("Name") Into Group
Where Group.All(Function(r) String.Equals(r.Field(Of String)("Activity"), "Warrior", StringComparison.OrdinalIgnoreCase))
Select Group.First()).CopyToDataTable()
Since UiPath offers this feature, I’m not sure if you’re already aware. However, the Expression Editor can generate this type of content for you (see screenshot).