cancel
Showing results for 
Search instead for 
Did you mean: 

Create subfolders using a script in rules

hsturner
Champ on-the-rise
Champ on-the-rise
I have a bunch of customer folders that when they will be created, will each have 7 sub-folders that are required as well. I figure I can add a rule to the parent folder that will contain the created folders to automatically create sub-folders. What I don't know is which scripting language I should use to create the script, and where I should store the script on the Alfresco server, so that I can select it as a rule.
2 REPLIES 2

niketapatel
Star Contributor
Star Contributor
You can use javascrit and for alfresco - javascript API detail Please refer - http://wiki.alfresco.com/wiki/JavaScript_API
javascript cookbbok - http://wiki.alfresco.com/wiki/JavaScript_API_Cookbook

You need to deploy this js under /Company Home/Data Dictionary/Scripts.

Once you deploy it, You can create rule with action - Execute Script with your custom script.

Thanks Niketa. I will give this a try.