I have multiple excel files in a folder with following naming convention Month Year abc.xlsx. I need to select the file month wise. Like say I need Jan 2006 abc.xlsx file then in next run I need Feb 2006 abc.xlsx file and so on in next run. I am using
→ For each file in folder filter by *.xlsx
@raygandhit assign the query in for each activity
or send the entire screenshot what variable type are you trying to assign to the query and in the query you have got .xls it should be .xlsx based on your description
I used For each activity and changed type argument to System.Collections.Generic.List<System.String>
List of Item : Directory.GetFiles(“\is-test"),”*.xls").OrderBy(Function(f)DateTime.ParseExact(Path.GetFileNameWithoutExtension(f).Substring(“0,8”),“MMM yyyy”,System.Globalization.CultureInfo.InvariantCulture)).ToList()