Create subfolders using a script in rules
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2013 04:49 PM
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.
Labels:
- Labels:
-
Archive
2 REPLIES 2

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2013 12:29 AM
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.
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.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2013 02:16 PM
Thanks Niketa. I will give this a try.
