AnsweredAssumed Answered

how to get node property base on node id ?

Question asked by dharmraj on Jul 16, 2019
Latest reply on Jul 16, 2019 by abhinavmishra14_alfresco

i am passing node from  UI to Back end to fetch node property based on node id and set property value .


String nodeId = req.getParameter(ID);;
NodeRef node = serviceRegistry.getNodeService().getNodeRef(Long.valueOf(nodeId));
if(node!= null) {
serviceRegistry.getNodeService().setProperty(node, NOTIFICATION_IS_EMAIL_SENT, true);



Is it correct ?