As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
var results = search.selectNodes("workspace://SpacesStore","descendant::*[hasAspect('cm:workingcopy')]"); logger.info("Total rows" + results.length); for(var i=0;i<results.length;i++) { var node = results; var nodename = node.name; node.cancelCheckout(); }
logger.log("Original document " + document.assocs["cm:original"][0].nodeRef); logger.log("workingcopylink document " + document.assocs["cm:original"][0].assocs["cm:workingcopylink"][0].nodeRef);