Copying Files and their version history in 2016

  • 14 March 2019
  • 2 replies
  • 4 views

Badge +2

Hi,

I have a requirement to move documents and their version history to an archive location, this is not determined by time or use - but if products are discontinued.  The users have a check box to tick when a product is discontinued and I have a workflow which runs on a daily basis which moves these documents.

I have used Vadim's post http://www.vadimtabakman.com/nintex-workflow-move-documents-and-preserve-version-history.aspx to get this working in 2010.  It has been in place and doing its job for 18 months or so. 

I am in the process of migrating the Site to 2016 (on prem) and I am having trouble getting it working. In the web request that does the move you use the following :-

"method=move+document:14.0.2.5420&service_name=/&oldUrl=Source/DocSet/aaa.txt&newUrl=Source/DocSet2/aaa.txt&url_list=[]&rename_option=findbacklinks&put_option=overwrite,migrationsemantics"

 

I am assuming that the 14.0.2.5420 has something to do with it being SharePoint2010.  What is the equivalent I should be using for 2016 or where should I find it ?   In the Microsoft documentaion it is termed the server_extension_version

https://docs.microsoft.com/en-us/previous-versions/office/developer/sharepoint-2010/ms442283(v%3Doffice.14)

 

Thanks in advance.

 


2 replies

Badge +17

@Catharine you should be able to use the copy item workflow action from the document library to move it from one library to another. This should move the document and its history to the new library. 

 

Badge +2

Hi,

I am afraid that option does not copy version history so is not suitable for our requirements.  It is also restricted to files in the "root" of the library - not in sub folders.

Reply