cancel
Showing results for 
Search instead for 
Did you mean: 

Script to send email

marcelavar
Champ in-the-making
Champ in-the-making
Good morning,
I want to refer to users or groups within a current space, and send an email notifying all of them. I don't use a rule that sends email because I need the document's name in subject.
I created a rule and executed a script. But I can't find out how to send the mail to the groups without naming the group specifically. I've tried

var siteGroup = "GROUP_MP_Admin";
mail.parameters.to_many=siteGroup;

But I need the group to be variable.
Regards,
Marcela
2 REPLIES 2

kaynezhang
World-Class Innovator
World-Class Innovator
I'm not very clear what you mean.
A little suggestion:
You can save your group name in a property of your space node or other nodes, then get the group name in your script from the space node(or other nodes).

Thank you very much! I solved it the way you suggested, I add this sentences in my script:
var siteGroup = "GROUP_MP_"+space.parent.name+space.name;
mail.parameters.to_many=siteGroup;
And the group has the name exactly as the spaces referred.
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.