cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a template for rules?

cirruslogic
Champ in-the-making
Champ in-the-making
Is there a template for rules?

Let me explain the context of my application:
I have got several vendors and I have created different spaces in under "user home"
Each vendor space has the same set of sub-spaces, namely, orders, invoices, remittances.
So I have created a space template (inside data dictionary/space templates) that has these same sub spaces and I add the template to each new vendor.
Next I need to have a rule that has it when there are any new items in the the space for orders and remittances, send an email to the users who have consumer permission to the space.

1.
I was thinking of setting this logic in the template. How do I do this?
2.
Can I automate the adding of the space template each time I create this new vendor space?
3.
Any sample web scripts - if I can use web scripts to accomplish this?
1 REPLY 1

thestorm
Champ in-the-making
Champ in-the-making
add a property to the folder to know what customer owns it (customSmiley Surprisedwner)

then create a JS that picks that var from the folder (see my recent posts on that one document.parent.properties["customSmiley Surprisedwner"]) and sends an email to this user.

now in you space template add this rule to execute the script

and you will have it every time, all you need to do for a new folder is to execute space template and set the property

should work like that

regards
Sebastian