Just met a problem while using Alfresco out of box Rest API: copy-to function. By invoking copy-to API:
In Alfresco Labs v3.2.0, I can copy document or container to destination space successfully, but the return results are little bit different between them.
Copy container can return uuid of new copy, copy document cannot.
I notice that there is because the input parameter are different in copy method
Code snippet of copy-to.post.json.js:
// copy the node (deep copy for containers) if (fileNode.isContainer) { result.nodeRef = fileNode.copy(destNode, true).toString(); } else { result.nodeRef = fileNode.copy(destNode).toString(); }
After using the same call method as copy container, I can get uuid of new copies for both container and document.
However, this does not work in Alfresco Community v3.2.0.
It’s urgent and I really want to get the node uuid of the copy from the return result in Alfresco Community v3.2.0.