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.
// make js object var jsonObj = { alf_destination: "workspace://SpacesStore/ea280a82-d0ce-482d-8044-8025495807b9", // this is nodeRef of parent folder where you want to create new one prop_cm_name: "New Folder" // this is name of new folder }; // convert object to json string var jsonStr = jsonUtils.toJSONString(jsonObj) // get connector var conn = remote.connect("alfresco"); // call alfresco webscript var repoResponse = conn.post("/api/type/cm%3afolder/formprocessor", jsonStr, "application/json"); // if success if (repoResponse.status == 200) { // convert string response to object var repoJSON = eval('(' + repoResponse + ')'); … }