Notifications
Announcements
Hello,
how can I retrieve the last (most recent) file added to the folder?I have tried this If Statement
but it does not help me achieve the goal I want to achieve.
Can anyone point me in the right direction?
Regards,
d'Kayt
Hi @dkayt
a simple method would help 🙂
here i am using get files in folder action to get list of all files which would be sorted by creation time in descending order 🙂
Now the output is stored in %Files% variable, Now use %Files[0]% to retrive a most recent file 🙂
Nived N 🚀
LinkedIn: Nived N's LinkedInYouTube: Nived N's YouTube Channel
🔍 Found my answer helpful? Please consider marking it as the solution!Your appreciation keeps me motivated. Thank you! 🙌
in the "Get files in folder" action you can go into "advanced" and sort by what you want, in this case, creation time. this will generate a list, simply set a variable to %Files[0]% and you'll have the latest file.
@Nived_Nambiar and @Pavel_NaNoi
Thank you guys for your quick answer. Your solutions work very well. Have a nice weekend.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Michael E. Gernaey 525 Super User 2025 Season 2
Tomac 324 Moderator
abm abm 232 Most Valuable Professional