- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-20-2022 11:22 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-20-2022 11:29 PM
Hi,
you can use email script and do this and include that email script in your email body
I hope you are aware on how to include email script in email body
Scripting Email Notifications in ServiceNow
I assume assignment_group field is on current table and notification is also on same table
Also I assume manager means group manager
var group = current.assignment_group;
var gr = new GlideRecord("sys_user_grmember");
gr.addQuery("group", group);
gr.query();
while(gr.next()) {
email.addAddress("cc", gr.user.email.toString(), gr.user.name.toString());
}
email.addAddress("cc", current.assignment_group.manager.toString(), current.assignment_group.manager.name.toString());
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-20-2022 11:29 PM
Hi,
you can use email script and do this and include that email script in your email body
I hope you are aware on how to include email script in email body
Scripting Email Notifications in ServiceNow
I assume assignment_group field is on current table and notification is also on same table
Also I assume manager means group manager
var group = current.assignment_group;
var gr = new GlideRecord("sys_user_grmember");
gr.addQuery("group", group);
gr.query();
while(gr.next()) {
email.addAddress("cc", gr.user.email.toString(), gr.user.name.toString());
}
email.addAddress("cc", current.assignment_group.manager.toString(), current.assignment_group.manager.name.toString());
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-22-2022 09:07 PM