web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Cannot rename and move...
Power Automate
Answered

Cannot rename and move a file

(0) ShareShare
ReportReport
Posted on by 3

Hello there,

I am using a desktop flow to download the file from the website.

The file is in .xlsx format which gets stored in the download folder. The file name is "TEST-Price-List-4_28_2022, 2_27_54 AM"

 

I want to remove the time stamp from the file and move it to another folder.

 

I have created a desktop flow but since the time and date change every time it shows an error in re-naming and moving it.

 

Any help will be appreciated.

  • VJR Profile Picture
    7,635 on at

    The downloaded file is TEST-Price-List-M_DD_YYYY, H_MM_SS AM/PM

    While you download the file at times it shows the name of the file that is going to be downloaded. Is that the case with you?

     

    What is the new name you want to give?

    If the new name is TEST-Price-List then simply rename the above downloaded file as that.

     

    Please share further details if you are looking for something more.

     

     

  • Verified answer
    MichaelAnnis Profile Picture
    5,727 Moderator on at

    After downloading:

    Get files with file filter = *.xlsx, click on advanced, sort by Date Last Modified = Descending

     

    This makes it so the most recent Excel file will always be the first in the list of %Files%. Now you can reference the file as %Files[0]%.

     

    use move files or rename files to using %Files[0]% and your own logic to rename/move it to whatever/wherever you want.

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.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 237 Super User 2026 Season 2

#2
David_MA Profile Picture

David_MA 227 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 194

Last 30 days Overall leaderboard