AnsweredAssumed Answered

Root Objects : companyhome

Question asked by riadhazzouz on Mar 27, 2019
Latest reply on Mar 29, 2019 by sanjaybandhniya

I wrote this code in a webscript controller

var newFolderName="Configuration";
var newFolderNode=companyhome.childByNamePath(newFolderName);
if (newFolderNode === null) {
//which means newFolder does not exists, so create it
newFolderNode=companyhome.createFolder(newFolderName);
}

 

and I'm getting "companyhome" not defined. I found this post https://community.alfresco.com/thread/169855-companyhome-not-defined but it didn't fix the error.

Outcomes