After downloading the file from sap, there is the dates in a column, if any of the date is previous month date then it should merge in previous month file or it should merge in current month file, how to write the if.
Can you try this In If activity
dt1.AsEnumerable().
Where(Function(r) DateTime.ParseExact(r("DateColumn").ToString, "dd.MM.yyyy", System.Globalization.CultureInfo.InvariantCulture).Month = Now.AddMonths(-1).Month).
CopyToDataTable().RowCount>0
Note: Based on DateColumn format you need to change
Regards,
2 Likes
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.