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 folder = companyhome; var copy = document.copy(folder); if (copy != null) { copy.name = "new_"; // Add the English category to the document var nodeRef = "workspace://SpacesStore/666345ce-1d81-11db-b398-13c0b9d26600"; document.properties["cm:locale"] = nodeRef; copy.save(); }
var folder = companyhome; var copy = document.copy(folder); if (copy != null) { copy.name = "new_"; // Add the English category to the document var node = search.luceneSearch(……)[0]; document.properties["cm:locale"] = node; copy.save(); }
var nodeRef = search.luceneSearch("TYPE:\"{http://www.alfresco.org/model/content/1.0}category\" AND PATH:\"/cm:generalclassifiable//cm:MyCategory\"")[0]; copy.properties["cm:generalclassifiable"] = nodeRef;
var categories = new Array(1); var nodeRef = search.luceneSearch("TYPE:\"{http://www.alfresco.org/model/content/1.0}category\" AND PATH:\"/cm:generalclassifiable//cm:MyCategory\"")[0]; categories[0] = nodeRef; // … add further categories here to the array copy.properties["cm:generalclassifiable"] = categories;