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

Highlighted
Anonymous
Not applicable

Re: Rename SharePoint File that was Copied to another Folder

It worked! Thank you

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?

EricH
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!

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

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

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!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Users online (7,731)