Monday, October 26, 2015

Add /Update properties via Javascript Console


JavaScript console, one of developer friendly tool, to make some quick actions. It directly hits the Alfresco Repository and by passing the Share customisation.


I quickly navigated to the JavaScript console and modified / added the new properties like the below mentioned below.

var node = search.findNode("workspace://SpacesStore/2c0b2272-9057-4d00-a049-5ac92470fa32");
node.properties["myco:assignedUser"] = "muralidharand";
node.properties["myco:status"] = "Open";
node.save();


Hope this helps someone !

Happy coding !
Murali!

No comments:

Post a Comment