how to add group recipients to bcc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-28-2016 02:29 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-28-2016 03:30 AM
ya i followed as
var user = new GlideRecord("sys_user_grmember");
user.addQuery("sys_id", recipients);
user.addQuery("sys_id", grecipients);
user.addQuery("notification", 2); //email
user.addQuery("email", "!=", "");
user.query();
while (user.next()) {
//add to bcc list
var bcc = current.u_bcc ;
email.addAddress("bcc", user.email, user.getDisplayValue());
email.addAddress("bcc",addditionContact, "");
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-28-2016 03:35 AM
Code is wrong Radha...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-28-2016 03:40 AM
Mihir Mohantacode is correct
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-28-2016 03:44 AM
your code is not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-28-2016 03:36 AM
Write the email script like:(Modify the script according to your need)
var grp= new GlideRecord("sys_user_grmember");
grp.addQuery("group", "sys_id of the group you want to add as BCC");//sys_id of the group you want to add as BCC
grp.query();
while(grp.next()){
email.addAddress("bcc", grp.user.email, grp.user.name);
}
Please mark it as Helpful/Correct according to its impact.
Thanks,
Mihir