Select most recent excel file downloaded

Lets assume most recent excel file from downloads - evaluated on the Creation date

new DirectoryInfo("C:\XXXX....").GetFiles("*.xlsx").OrderBy(Function (x) x.CreationTime).Last().FullName

We also can adopt on other criterias if needed

[CheatSheet] - Filesystem APIs - News / Tutorials - UiPath Community Forum

1 Like