read 3 files based creation of date in descending order hello.xaml (17.3 KB)
Directory.GetFiles(folder_inside_path,".",SearchOption.AllDirectories).OrderByDescending(Function(d) New FileInfo(d).CreationTime).Take(3)
addd .Take(3) at the end
getLatestExcel.xaml (12.2 KB)
Can anyone help me resolving this error. There is issue in type casting. I am trying to get single file name with path which is latest/very new/fresh from downloads folder.
@viraj_thakrar Your “excelfile” variable type is String. Change it to IEnumerable.
Yes. Its working perfect now. I am able to get latest single file from folder. Thank you @ovi. Thank you guys.
how to get that file from ienumerable type?
Hi. Go to the variable type and browse for other types . There you can find the ienumerable option.