I'm using SOAP to copy files between Document Libraries, the issue is that after copying the item it gets linked to the source item and that is visible in the element properties. Manual unlinking does work for each element but I'm not aware of a javascript solution for this.

I know that _CopySource is responsible for that but the field seems to be read-only. Is there a method to reset _CopySource or unlink the file in javascript?

C# apparently had or has fileToUnlink.UnlinkFromCopySource();, but i can't find an equivalent in js.

1 Answer 1


As far as I see, the UnlinkFromCopySource method of the SPListItem class is available neither via the CSOM nor via the REST interface. That means, it is probably not accessible from your JavaScript code, unless you create a custom wrapper web service for this method.

Some useful information about creating custom SharePoint web services is available here or here.

  • I guess this is the only possible solution i have to reset _CopySource then. Thank you for the answer.
    – Thun
    Aug 11, 2016 at 8:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.