I use Lookup Range activity (because dynamic column) to find Sales Contract No then get the date 21-Dec-23.
I just know to use a filter to remove row contains: Sunsco but have some more row numbers. how to delete all rows under Sales Contract No rows to get the date row 21-Dec-23 ?
May be after finding the sales contract no row…use a loop and loop through each row and use a matches activity inside till you get the match count as 1 and then that is the required date
If the date when you reqd this is also in same format then use regex.match(currentrow(0).ToString,“\d{2}-[A-Za-z]{3}-\d{2}”).Count>0 …on then side use .value to get the date or directly currentrow(0).Tostring and use break to stop the loop
@anh.nguyen Try the below syntax and assign to string variable
RequiredDate = dt.AsEnumerable.Where(Function(w) DateTime.TryParseExact(w(“ColumnName”).ToString.Trim,“MM/dd/yyyy hh:mm:ss”,Nothing,Nothing,Nothing)).Select(Function(x) x(“ColumnName”).ToString).SingleOrDefault()
Hope this helps.