Hi
I'm a relative newbie, so apologies if this appears a dumb question.
Is there a straightforward way in 3.22 to trigger an email to be sent when an asset has been added using the asset builder? Doesn't have to be anything complicated, I just need to let the admin know that the event has taken place.
Thanks
Matt
Yes, it's a trigger action called 'Send Email'. Trigger that on Asset Created or Status Changed (if you want your trigger to perform a little quicker).
Just make sure that you add adequate restrictions!
[quote]
Just make sure that you add adequate restrictions!
[/quote]
Wow! That's fantastic. Thanks Duncan. I never used triggers before, that's perfect!
nnhubbard, what do you mean by adequate restrictions?
Thanks
Matt
[quote]
nnhubbard, what do you mean by adequate restrictions?
[/quote]
Sorry Matt, more specifically I mean Trigger Conditions.
If you don’t set specific conditions, the trigger will fire every time your selected event happens. So, if you are using Asset Created, make sure that you set a root node, asset type, etc. so that the email does not get trigger more than needed.
If in doubt, take a look at the Triggers Manual.
Yes, rule of thumb. Make triggers as specific as possible. Fixed by root node, asset type, permission, even user.
Unless you want to destroy your server. Then just create three triggers:
- On asset accessed, send an email, change status to under construction
- On status changed, send an email, change status to live
- On status changed, send an email, change status to under construction
Let the flames begin.
[quote]
Sorry Matt, more specifically I mean Trigger Conditions.
If you don’t set specific conditions, the trigger will fire every time your selected event happens. So, if you are using Asset Created, make sure that you set a root node, asset type, etc. so that the email does not get trigger more than needed.
If in doubt, take a look at the Triggers Manual.
[/quote]
Thanks, I understand that, and as the next poster says, the importance of not creating anything that might be recursive. At the moment I’ll just keep things as specific as possible! Great functionality though.