cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Copy file and it's properties

I have a file that gets approved and once it is approved I move it into a folder with view only permissions for visitors. How do I copy the file properties along with the file? I can move the file fine just not the properties/metadata that is associated with the file.

5 REPLIES 5
Highlighted
Super User III
Super User III

Re: Copy file and it's properties

Are the files Office documents (Word, Excel, etc.)?

Are the files stored in SharePoint?

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
Frequent Visitor

Re: Copy file and it's properties

They are PDFs

Highlighted
Frequent Visitor

Re: Copy file and it's properties

And yes they are in SharePoint

Highlighted
Super User III
Super User III

Re: Copy file and it's properties

Properties set by the system such as created by, modified by, created, etc. cannot be copied of changed via Flow.  There may be a way to do this by calling a SharePoint web service, but I do not believe so.

 

If these were Office documents and additional columns for metadata had been created in the library, those properties become part of the document.  If the same fields exist in the destination library, they should get automatically populated.

 

If the properties that you are referring to are columns that had been added to the list, for non-Office documents you can manually update those columns after the file has been copied.  In other words, read the properties from the source library and update the files properties in the destination library using Get File Properties and Update File Properties.

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
Community Support
Community Support

Re: Copy file and it's properties

Hi @cdmcali,

 

Could you please share a screenshot of your flow's configuration?

Further, could you please show more details about the file properties that you mentioned? Is it the system properties or the custom columns within your SharePoint library?

 

I agree with @ScottShearer's thought almost, if the file properties that you mentioned is the system properties (e.g. Created, Modified, etc), I afraid that there is no way to achieve your needs in Microsoft Flow directly. You could consider take a try to add a "HTTP" action within your flow and make a call to the SharePoint REST API, then move the file from a SharePoint library to another SharePoint library.

 

More details about calling any SharePoint REST API from Microsoft Flow, please check the following article:

http://sharepointscribblings.blogspot.sg/2017/07/call-any-sharepoint-rest-api-from.html

 

More details about the MoveTo method in SharePoint REST API, please check the following article:

https://msdn.microsoft.com/en-us/library/office/dn450841.aspx#bk_FileMoveTo

 

If the file properties that you mentioned is the custom columns within your SharePoint library, you could consider take a try to use the "Get file properties" action of SharePoint connector to get the file properties and then use the "Update file properties" action of SharePoint connector to update these properties into another SharePoint library (I assume that the Destination SharePoint library has same custom columns (properties) with the source SharePoint library).

 

Best regards,

Kris

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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

Join the new 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!

Users online (4,668)