one email notification instead of different emails

ServiceNow Use6
Tera Guru

Hi,

I have a requirement which is, Please merge all email notification for when a case is assigned in one email notification instead of different emails for each team.

In the filter, user "not any of" so teams receive these notification by default with the ability to opt out. This is what I have done until now. I took some help from someone for part of it. Question is how do I test the scenario? We use CSM. Also, how to make it opt out for the assignment groups. Kindly help.

 

Regards

Suman P.

1.png

 

2.png

 

3.png

 

(function executeRule(current, previous /*null when async*/) {


gs.eventQueue('case.assigned.merge.notify',current,current.assignment_group.toString(),
current.assignment_group.toString());
	

})(current, previous);

 

4.png

 

5.png

 

6.png

 

9.png

 

7.png

 

8.png

 

Regards

Suman P.

2 REPLIES 2

Tanushree Maiti
Tera Patron

1. create event:  case.assigned.merge.notify  //created

2. create notification:  Run Merge notify event //created

3. Notification filter: 

   Navigate to System Notification > Email > Notification Filters.

  •         table : customer case
  • Create a new filter. Under Conditions, set: [User] [not any of] [group A, group B, group C]

4. Testing in non-prod:  Impersonate a user from a team not in the filter (should receive email) and a user from a group in the filter (should not receive email).

  • Trigger the Notification: Manually assign a test case to a user within a group.
  • Check sys_email.list Table (Email Logs):
    • Navigate to System Logs > Emails.
    • Filter by the Subject of your notification.
    • Verify that only one record exists, and the recipients list is correct.

 

 

 

Please Accept the solution if it assisted you with your question & Mark this response as Helpful.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti

Hi @Tanushree Maiti ,

We only use Notifications, we don't use Notification filters, please help me accordingly. Also, there are hundreds of groups in a company right

Regards

Suman P.