How to send email to all group member in Flow Designer
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-02-2018 10:40 PM
Hi All,
Is it possible to send an email to an all group member in Flow Designer from Send Email action?
Please suggest me.
TIA
PKG
Labels:
- Labels:
-
Platform and Cloud Security
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-01-2020 06:10 AM
This script works great. Thanks.
I'm trying to make a slight variation where it looks to see if the record is assigned to someone. If so, send the email to the assigned to. If not, send to the group. I tried to update the code but it is always sending to the group even if there is someone assigned.
var assigned = fd_data._1__look_up_record.record.assigned_to;
if (assigned != ''){
var grp = fd_data._1__look_up_record.record.assignment_group;
var members = [];
var groupGR = new GlideRecord('sys_user_grmember');
groupGR.addQuery("group", grp);
groupGR.query();
while(groupGR.next())
{
members.push(groupGR.user.email);
}
var allMembers = members.join(',');
return allMembers;
}
else{
return assigned;
}