How to automate notifications subscribtions with Automation ?


I use Automation to create new Workspaces, upload files and so on. I need to inform by mail different addresses when files are uploaded in different workspaces. How can it be done with Automation ? It seems there's nothing of the sort in the documentation.

0 votes

1 answers



Hi, What you are looking for is probably the send email operation:

To find the list of all operations and there documentation, the explorer is probably the ressource you need:



0 votes


Is it possible to send a mail to a group of users with this operation?


I suppose Notification.SendMail can be used in my scripts when I upload files with Automation. But if users upload files through the web interface of Nuxeo, no notifications will be send. My problem is that some times I'll upload through Automation, sometimes users will do it themselves and in any cases they want notifications to be sent.

@Flav : your question is different, please create a new question :) @EricS : In that case, use this operation on an automation chain bound to an event handler on "document created". So that whatever way used to create the document, the notification will be sent.

Thanks for your help. I'm afraid I don't know much about automation chains. Though, I don't see how it can help me specifying the recipients of the notification (who are dependant of the workspace). I suppose I can call the chain with parameters in a script so there's no problem here. But how can I specify the notification recipients of the current workspace when the chain is called by an event ? Nuxeo doesn't know the relation between recipients and workspaces since I created the workspace with Automation and I coudn't give him the recipients of notification the same way.

Maybe, in your case, you do not need to use Automation and Studio:

plus an example on how to extend the alerts: