Basically, we have used the Sharepoint CopyService Web Service method GetItem method to get the document contents, including metadata (columns as well as managed metadata) into an array. The next step is to use the CopyService method CopyIntoItems and specify the source and destination libraries.
// Archive Document
ArchiveDocument(sitePath, docName);
Since we want to Move the Document, the original document will need to be deleted from the Source Sharepoint Library
// Delete Original Document
retVal = DeleteFile(sharePointPath, sitePath,
docName, partNumber, status);Here is the detailed code for all the required methods:
ArchiveDocument Method:
DeleteFile Method:
getListID Method:
Do you know have to do the same but also preserving version history?
ReplyDelete