SharePoint only Move & Copy operations

Oct 16, 2015 at 3:55 PM
Hi, I do not understand how these operations are working. Is it copying and moving inside SharePoint? Is it possible to have an example of the server relative destination path?

Thanks.
Coordinator
Oct 30, 2015 at 3:42 AM
Its uses internal SharePoint Client Object Model functions to do the copying, moving work. These functions can be found here for more info:
https://msdn.microsoft.com/en-us/library/microsoft.sharepoint.client.file.moveto.aspx
https://msdn.microsoft.com/en-us/library/microsoft.sharepoint.client.file.copyto.aspx

As an example, if I want to copy a file from one document library to another in a SharePoint site, and the location of the file is as follows:
https://bandr.sharepoint.com/sites/BSteinhauser/SitePages/bagt1.aspx
Lets say the new library folder to move the file is here:
"/sites/BSteinhauser/OtherPages"
Thats what the server relative url would be. At this time, leave out the filename as it reuses the current file name when using the command.