AnsweredAssumed Answered

Has anybody successfully called the CopyIntoItemsLocal webservice in Office365 ?

Question asked by beckettj on Dec 21, 2016
Latest reply on Feb 19, 2017 by tposzytek

I have been trying out the "CopyIntoItemsLocal" webservice call from a "Web Request" action in Nintex Workflow for Office 365 this afternoon (it's preferable over the Copy Document action, because you can change the filename at the same time as copying).

 

With a very simple test system, with libraries "Source Library", and "Destination Library", the call is failing, and I have no idea why (and of course there is no ULS log in 365 to look at).

 

Here is a sample of the XML being submitted (using Soap 1.2 in this case)

 

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<CopyIntoItemsLocal xmlns="http://schemas.microsoft.com/sharepoint/soap/">
<SourceUrl>https://foo.sharepoint.com/test/Source%20Library/test.txt</SourceUrl>
<DestinationUrls>
<string>https://foo.sharepoint.com/test/Destination%20Library/test.txt</string>
</DestinationUrls>
</CopyIntoItemsLocal>
</soap12:Body>
</soap12:Envelope>

 

It always returns the following (highlighted for clarity):

 

<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<CopyIntoItemsLocalResponse xmlns="http://schemas.microsoft.com/sharepoint/soap/">
<CopyIntoItemsLocalResult>0</CopyIntoItemsLocalResult>
<Results>
<CopyResult ErrorCode="Unknown" ErrorMessage="Value does not fall within the expected range." DestinationUrl="https://foo.sharepoint.com/test/Destination%20Library/test.txt" />
</Results>
</CopyIntoItemsLocalResponse>
</soap:Body>
</soap:Envelope>

 

I'm just wondering if anybody else has successfully called the Copy webservice from SharePoint Online.

Outcomes