SharePoint REST API moveTo URL limitation
Hello community,
I am using SharePoint REST API in SharePoint (Online) 2013 Workflow to move documents b/w different libraries. It was working fine for files with small names but it failed for documents with very large names.
For REST API we have to pass server relative URL in the moveTo method so it fails if my destination library structure contains nested folders and server relative URL becomes very lengthy.
1) Is there a work around for this URL limitation (260 characters)
1) Can i use "GetFileByID" or "GetFolderByID" to move documents using REST API?
Help needed!
Hi Brent
You can put the newUrl variable in a Dictionary.
The assign the Dictionary as the parmeters of the Call HTTP web service action.
The POST method will include it as payload.
then Build {...} Dictionary (Output to Variable: parameters)
The pass the Dictionary to the Call HTTP web Service action...
The Call [My Site/MyList/MyItem etc.]/file/MoveTo() HTTP web service with Variable:parameters (Response Content to.....
Hope this helps,
Tony