AnsweredAssumed Answered

Create a folder with a template folder

Question asked by roseta on May 22, 2011
Latest reply on Jun 1, 2011 by fstnboy
I would like to create (in Javascript) a folder according to an already existing folder as a template. Is that possible? So far, I just know how to create an empty folder, but I would like to create a folder, with some folder structure, rules and permisions inside. Anyone can give me a hand? Thanks a lot!

My js code by now is the following:

var origin = bpm_package.children[0].parent;                              
var destination = origin.createFolder("New folder");