Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Integration/Mail Scripts/cc all group members/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
This mail script can be used to CC all members of a group in the current record context.

Use case:
CC all members of the assignment group for the current record.
CC all active members of the assignment group for the current record.

Solution:
Create the mail script as mentioned in cc all group members.js file and then call the mail script in you email notification using ${mail_script: your mail script name} in the notification body
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
// Add your code here
var grp = new GlideRecord('sys_user_grmember'); //Query to the group member table
grp.addQuery("group", current.assignment_group); //add a filter to query based on the current record's assignment group
grp.addQuery("user.active", true); // all active users
grp.query();
while (grp.next()) {
email.addAddress('cc', grp.user.email, grp.user.name); //Passing email as name and 2nd and 3rd parameter
Expand Down
Loading