From 6ca7f20ad40e9cd470663396a74cd820c1ffb5d8 Mon Sep 17 00:00:00 2001 From: Deepak Negi <120473057+dvn-lazywinner@users.noreply.github.com> Date: Tue, 7 Oct 2025 18:53:55 +0530 Subject: [PATCH 1/2] Update cc all group members.js All active users from the group --- .../Mail Scripts/cc all group members/cc all group members.js | 1 + 1 file changed, 1 insertion(+) diff --git a/Integration/Mail Scripts/cc all group members/cc all group members.js b/Integration/Mail Scripts/cc all group members/cc all group members.js index 0610fe3f33..b513df54f1 100644 --- a/Integration/Mail Scripts/cc all group members/cc all group members.js +++ b/Integration/Mail Scripts/cc all group members/cc all group members.js @@ -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 From b87967967dadb39949a466022752fe8dff4ebd5a Mon Sep 17 00:00:00 2001 From: Deepak Negi <120473057+dvn-lazywinner@users.noreply.github.com> Date: Tue, 7 Oct 2025 18:54:19 +0530 Subject: [PATCH 2/2] Update README.md --- Integration/Mail Scripts/cc all group members/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Integration/Mail Scripts/cc all group members/README.md b/Integration/Mail Scripts/cc all group members/README.md index df1bb3f79a..b74113ba3c 100644 --- a/Integration/Mail Scripts/cc all group members/README.md +++ b/Integration/Mail Scripts/cc all group members/README.md @@ -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