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.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
11manish 237 Super User 2026 Season 2
David_MA 227 Super User 2026 Season 2
Mohsin Ali 194