cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Rename SharePoint File that was Copied to another Folder

Hi,

 

I used Recurrence > Get file metadata > Copy file to save a monthly copy of a spreadsheet. It works well, except there is no option to rename the file. I need to rename the file or else the flow won't work because there is already a file in the folder with the same name. I'd like to automatically rename the file to the current month and year if possible.

 

Is there any way to do this? Any help is appreciated.

 

Thank you

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Rename SharePoint File that was Copied to another Folder

Hi @Anonymous

Please see my examply below.  I am using a button vs a recurrence trigger, but that doesn't impact the concept.  Also, I am copying to another library - just specify your library and folder.

 

I am renaming the file during the copy.  I am also assuming that this will happen only once during any given month.  If it could be more than once a month, I would change the date format to include a day.

 

I successfully ran the Flow pictured below. 

 

CopyFile.jpg

 

If this meets your needs, please mark your question as Solved.

 

If not, please explain and I will make adjustments.

 

Scott

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

View solution in original post

5 REPLIES 5
Super User
Super User

Re: Rename SharePoint File that was Copied to another Folder

Hi @Anonymous

Please see my examply below.  I am using a button vs a recurrence trigger, but that doesn't impact the concept.  Also, I am copying to another library - just specify your library and folder.

 

I am renaming the file during the copy.  I am also assuming that this will happen only once during any given month.  If it could be more than once a month, I would change the date format to include a day.

 

I successfully ran the Flow pictured below. 

 

CopyFile.jpg

 

If this meets your needs, please mark your question as Solved.

 

If not, please explain and I will make adjustments.

 

Scott

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

View solution in original post

Anonymous
Not applicable

Re: Rename SharePoint File that was Copied to another Folder

It worked! Thank you

Highlighted
zylantha
Level: Powered On

Re: Rename SharePoint File that was Copied to another Folder

This method doesn't work with the new, non-deprecated "Copy File" action, which of course has worse functionality than the action it is supposed to replace.

 

Is there any solution for the new "Copy File" action that isn't deprecated?

EricH
Level: Powered On

Re: Rename SharePoint File that was Copied to another Folder

The new Copy File is a downgrade from the previous, why has Microsoft removed the ability to rename a file? UGH!

zylantha
Level: Powered On

Re: Rename SharePoint File that was Copied to another Folder

Removing capability / functionality from SharePoint is completely normal. There are dozens of examples of this, and you need look no further than the “Modern” list view which removed the search box, “Open in Explorer”, etc...

Once you accept that Microsoft hates SharePoint and wants you to stop using it, their design decisions do start making sense.

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 158 members 5,870 guests
Please welcome our newest community members: