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.
children[1].properties["custom:PrimaryDocument"] = true; children[1].save;
child = children[1]; if(child.properties["custom:PrimaryDocument"]) "do something" child.save; child.move(newFolder);
var notes = children[1].properties["custom:Notes"]; var containsOnlineMaterial = children[1].properties["custom:ContainsOnlineMaterial"]; children[1].removeAspect("custom:OtherProperties"); var otherProps = new Array(3); otherProps["custom:Notes"] = notes; otherProps["custom:ContainsOnlineMaterial"] = containsOnlineMaterial; otherProps["custom:PrimaryDocument"] = true; children[1].addAspect("custom:OtherProperties", otherProps);
var author = child.properties["cm:author"]; child.removeAspect("cm:author"); var props = new Array(1); props["cm:author"] = author; child.addAspect("cm:author", props); child.save; child.copy(newFolder);