Announcements
You can use the Get Files action and in the Advanced section it will have an option to Sort by the modified date and choose the Descending switch as per your requirement.
This will give a Datatable called Files. Loop through the Files datatable for 10 times as you copy/move the files.
how do I apply the loop?
It continues to bring over all the files instead of one at a time.
Follow the pseudo logic.
-Set variable counter =1
-Get files in folder
-for each loop on %files%
If counter<=10 then
Copy files (make sure here you use current item and not %Files% as you have used which is causing everything to get copied)
End if
Increase variable counter by 1
-end of for each loop
Here's the PAD version of VJR's post. Be sure the "Get files in folder" is sorted how you want it
That worked!!! Thank you very much for your help.
Be noted in your code Counter starts from 1 and the "IF" condition is <=10 which means 0 to 10. It will process 11 documents.
Either have:
Counter = 1
If Counter <=10
OR
Counter = 0
If Counter <10
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 2026 Super Users!
Congratulations to our 2025 community superstars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Vish WR 1,005
Valantis 825
Haque 619