07-12-2018 02:43 AM
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?
07-12-2018 03:32 AM
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"].
07-12-2018 03:32 AM
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"].
07-12-2018 04:10 AM
Thank you! That was what I was looking for.
Explore our Alfresco products with the links below. Use labels to filter content by product module.