Move Documents in SharePoint with Versions
Posted by zieglers on August 13, 2010
In this post, i’ll mention an enhancement I recently implemented for ‘Move Documents‘ bulk action in SharePoint.
Content explained in this post is additions and enhancements made to the topic explained in Bulk Move Documents post. If you are not familiar with bulk move action, you can refer to that post before reading this one.
After developing bulk actions, i received some feedbacks on how to improve its functionality and make it more useful in SharePoint.
1. Move Documents within subsites (site-collection level)
Original functionality only supported moving documents from one library to another in the same web(subsite). It was suggested that being able to move documents from one subsite to another would be a good improvement to extend its scope of use.
So, i implemented that functionality. Now users can move documents from one library to another in a site-collection. Simply on move page, you first select destination web and then destination library as shown below.
2. Move documents with versions
Also another feedback was about to keep versions of documents during move operation. Although that was trickier, finally i managed to implement it. As an addition i included an extra comment in version history showing from which location documents were moved.
To begin with, I have two test docs in Shared Documents library. Those documents were editted 3 times after being uploaded so there are 4 versions in total as shown. As for this demonstration, i renamed titles as v0 (uploaded), v1, v2, v3 respectively.
Then, I move these 2 test docs using ‘Bulk Move’ action.
I select destination web and library.
After clicking OK, documents are moved to ‘Move Here‘ library in subsite-1.
Let’s check Version History of recently moved documents.
As you can see document was moved along with its versions. Also there is an extra comment showing where doc was moved from.
Feel free to download bulk move from codeplex in case you are interested. Also you are more than welcome to provide your feedback, comments and enhancement ideas.