Context:
I have created a link for a document with the "Copy to-> Create link" feature in alfresco share. I have the nodeRef and from that the document object of the link.
Question:
How do I get the original document's nodeRef or document object using the JS APIs?
Solved! Go to Solution.
When we create a link the type of content which is getting created is "app:filelink". There is property associated with this type named as cm:destination. This contains the details of actual nodeRef.
So in javascript you can get it by node.properties["cm:destination"].
When we create a link the type of content which is getting created is "app:filelink". There is property associated with this type named as cm:destination. This contains the details of actual nodeRef.
So in javascript you can get it by node.properties["cm:destination"].
Thank you! That was what I was looking for.
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.