07-10-2017 04:17 PM
var path = args.path
function main()
{
var docNode = companyhome.childByNamePath(path);
model.foo = docNode;
}
main();
The above script returns an object
Node Type: {http://www.alfresco.org/model/content/1.0}folder Node Ref: workspace://SpacesStore/8e9a9f49-0d33-41b4-9c4a-ad9d172d3f02
Is there a way to retrieve Node Ref from this?
07-10-2017 04:29 PM
Hi,
That childByNamePath method is returning a ScriptNode so it should be docNode.nodeRef
07-10-2017 04:29 PM
Hi,
That childByNamePath method is returning a ScriptNode so it should be docNode.nodeRef
Explore our Alfresco products with the links below. Use labels to filter content by product module.