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.
Are the files Office documents (Word, Excel, etc.)?
Are the files stored in SharePoint?
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.
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:
More details about the MoveTo method in SharePoint REST API, please check the following article:
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).
Three Super User rank tiers have been launched!
Features releasing from October 2020 through March 2021
We are excited to announce the launch of Power Virtual Agents Community. Check it out now!
We've updated and improved the layout and uploading format of the Power Automate Cookbook!
Fill out a quick form to claim your user group badge now!