cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
JimmyWork
Level 8

Copy file to location with Metadata, Term, Content type

So i have been trying alot now to get this to work.

 

I want to copy a file to another Document Library and i want it to have all it's original metadata with it. Including content type, and term, and so on.

 

I have tried using Update file properties, but im not getting the Content Type with this and also i dont seem to be able to use Dynamic content to set the Library name, and i need this because the Library name in my flow depends on a value. 

 

Error recived if i try to use Dynamic Content to set Library name in "Update file properties"

"Cannot evaluate the parameter 'path.$.table' at design-time; it is empty or has a runtime expression."

 

Is there any way around this and how can i get all the metadat and content type with me?

3 REPLIES 3
Community Support Team
Community Support Team

Re: Copy file to location with Metadata, Term, Content type

Hi @JimmyWork ,

 

To copy a file from one library to another with all its original properties, the two libraries should have the same columns/properties.

 

About Content type, it will be copied automatically. You could show it on current library view to check the result.

 

About updating the library name, I am afraid that it might be not possible. It seems that only existing libraries could be detected.

 

Hope this makes sense.

 

Best regards,

Mabel

 

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
JimmyWork
Level 8

Re: Copy file to location with Metadata, Term, Content type

You are correct it copies the content type if the library contains same.

But it does not copy metadata from columns.

I have a column named Metadata, this is setup on both librarys and uses Manage metdata from Term set.

This is not copied with it. Do i have to run a Update item to paste the Metadata from the column metadata?

 

 

Also version history is not copied, is this posisble?

 

Community Support Team
Community Support Team

Re: Copy file to location with Metadata, Term, Content type

Hi @JimmyWork ,

 

Please try with action Update file properties to get the metadata value from the original library to the destination library.

 

Best regards,

Mabel

 

Community Support Team _ Mabel Mao
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

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

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!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Solution Authors
Top Kudoed Authors
Users online (4,556)