System.Activities System.Activities.Statements System.Activities.Expressions System.Activities.Validation System.Activities.XamlIntegration Microsoft.VisualBasic Microsoft.VisualBasic.Activities System System.Collections System.Collections.Generic System.Data System.Diagnostics System.Drawing System.IO System.Linq System.Net.Mail System.Xml System.Xml.Linq UiPath.Core UiPath.Core.Activities System.Windows.Markup System.ComponentModel System.Runtime.Serialization System.Xml.Serialization UiPath.Excel UiPath.Excel.Activities System.Activities Microsoft.VisualBasic mscorlib System.Data System.Data.DataSetExtensions System System.Drawing System.Core System.Xml System.Xml.Linq PresentationFramework WindowsBase PresentationCore System.Xaml UiPath.System.Activities UiPath.UiAutomation.Activities System.Runtime.Serialization UiPath.Excel.Activities.Design UiPath.Excel.Activities UiPath.Excel System.ServiceModel Microsoft.Bcl.AsyncInterfaces System.ValueTuple System.ComponentModel.Composition UiPath.Mail UiPath.Python UiPath.OCR.Activities.Design UiPath.UIAutomationCore UiPath.Word System.Memory Microsoft.Extensions.DependencyModel System.Runtime.WindowsRuntime True [outDT] [inputDT.Clone] [outDT] [(From row In inputDT Group row By k1 = row("ID").ToString, k2 = row("DocNum").ToString Into grp=Group Let md = grp.Min(Function (x) CDate(x("Date").ToString)) Let fr = grp.Where(Function(x) x("Date").ToString.Equals(md.ToString))(0) Select outDT.Rows.Add({k1, k2, fr("Date"), fr("Status") })).CopyToDataTable]