Forum Discussion
sivapratap kurapati
Aug 21, 2017Copper Contributor
Programatically move documents to document library along with metadata columns and version history
Hi Team, Need inputs in moving a copy of document along with its metadata columns and version history to a different document library using C# Console App (CSOM). We are automating a scenario where...
Aug 21, 2017
Why not using the PnP to replicate your document library and the create the code required to move the documents from the source to the destination?
- DeletedAug 22, 2017
As Juan Carlos Mentioned PnP is your friend!
- sivapratap kurapatiAug 22, 2017Copper ContributorHi,
Sorry to ask. I am not exactly clear on what PnP does. To be frank, after seeing your comment i started browsing about what exactly PnP is. Can you share artifacts on how to use PnP to replicate document library ?
Many Thanks,
Sivapratap.- DeletedAug 23, 2017
You Could use Get template which is getting the whole site as xml.
then apply template to add everything to the site.
in the xml you can remove the items you do not want to copy to the other site. it is really easy Vesa Juvonen and his team putted out a lot of howto's about pnp provisioning.