02-14-2015 10:54 AM
02-16-2015 05:45 AM
// 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 + ')');
…
}
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.