Announcements
Hi there,
I want to upload the newest file by power automate desktop.
And I use record the become this.
What to make everyday report form server automatically upload to sharepoint folder.
Please help,thanks.
Brs
Dora .
After the download
get files sort by modified descending ‘this makes it so the latest file in that folder is the first file.
move files %Files[0]% ‘%Files% is the list of files from get files. Indexes are 0 based. So, %Files[0]% is the first file from the list.
good luck!
Hi @MichaelAnnis ,
Sorry, I don't understand what you mean.
You mean make the file descending in sharepoint or in file sever? and the variable set %Files[0]% ?
Thank you for answering me.
Brs,
Dora.
No, the action “Get Files” has a sort parameter, you want to sort by “Last Modified” and then flip the selector for Descending.
Dear @MichaelAnnis ,
Can you show the picture of power automate desktop what you mean? I can't figure out.
Appreciate a lot, thanks.
Sorry. Not at computer. You may be able to find one if you search for: get files last modified descending
@MichaelAnnis
I set file descending, however it ran the flow then show ascending.
Please provide a screenshot of your "Get files" parameter screen, the folder you are getting files from, and the list of files in the variable output.
Thanks, -Mike
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.
Jump in, show your community spirit, and win prizes!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Valantis 389
Vish WR 331
David_MA 298 Super User 2026 Season 1