cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Super User III
Super User III

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
Highlighted
Super User III
Super User III

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

Highlighted
Anonymous
Not applicable

Re: Rename SharePoint File that was Copied to another Folder

It worked! Thank you

Highlighted
Anonymous
Not applicable

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?

Highlighted
Regular Visitor

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!

Highlighted
Anonymous
Not applicable

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
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

Top Solution Authors
Top Kudoed Authors
Users online (7,632)