cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper III
Helper III

Rename File while Copying

Hi Team,

I would like to rename file when i am moving document from one Document Library to another Document Library.

 

3 REPLIES 3
Highlighted
Super User III
Super User III

Re: Rename File while Copying

Unfortunately, you cannot change the file name by using the Copy File or Move File actions.  However, you can effectively do the same thing by using the Get File Content and Create File actions.  Pleasee see the screen shot below.  This Flow runs succesfully.  To complete the "move", I would add a delete file action at the bottom of the Flow to delet the original/copied file.

 

I pre-pended the file name with "Copy - " in my example.  To do something a little more sophistacted, you could use the string expressions to break apart the file name and create a new name.

 

RenameOnCopy.jpg

 

If this solves your issue, please mark your post as Solved.

 

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
Highlighted
Helper III
Helper III

Re: Rename File while Copying

Hi Scott,

Thanks for your help.

Its working  but sometime it create blank file. Any idea hy it behave like this.

Highlighted
Helper III
Helper III

Re: Rename File while Copying

Hi Scott,

Thanks for your help.

Its working  but sometime it create blank file. Any idea hy it behave like this.

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
Users online (4,413)