email is not sending group members on for group email it is sending

sinu2
Tera Expert

Hi,

 

I have a notification where it is not triggering to group members it is sending only to group email address. 

This notification is triggering from event . But even i could not able to find from which script this event is triggering from

 

I have checked business rule , script actions, script includes, ui action with script contains that event name

 

and also i ran a script in background to find the record with below code but not getting

var name = 'myevent';
var tables = ['sys_script', 'sys_script_action', 'wf_activity_definition'];
for (var t of tables)
{
var gr = new GlideRecord(t);
gr.addQuery('script', 'CONTAINS', name);
gr.query();
while(gr.next()){
gs.print(t + '--' + gr.name);
}
}

 

5 REPLIES 5

Ankur Bawiskar
Tera Patron
Tera Patron

@sinu2 

what's the notification content? approval etc?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Anil Nemmikanti
Giga Guru

Please check whether notification event is triggered from the Flow designer.

SD_Chandan
Kilo Sage

Hi @sinu2 ,

You can remove group email address ,If group email is empty then SNOW will put all group member's email in to field of the notification. If group has some email address then that email address will have priority and same will be put in to field (not all group members).

If "include members" field is checked in group table for that group then SNOW will put both Group email and members in to field.

This is the KB Link :- Troubleshooting Email Notifications



If my answer has helped with your question, please mark my answer as the accepted solution and give a thumbs up.

Thank you
Chandan

Community Alums
Not applicable

I noticed that the notification is only sending to the group email address and not to individual group members. Usually, this happens when the notification’s recipient list is set to Assignment Group, which resolves to the group’s email instead of sending to each user. To fix this, you should update the notification to also include Group Members as recipients so that every user in the group will get the email directly.

As for finding where the event is triggered, you did the right thing by checking Business Rules, Script Actions, and Script Includes, but sometimes the event might come from a Flow Designer flow, Workflow activity, or even a fix script. To look deeper, you can use this background script to search other tables like sys_flow_context or sys_flow_step that might store the event name:

var name = 'myevent';
var tables = ['sys_script', 'sys_script_action', 'wf_activity_definition', 'sys_flow_context', 'sys_flow_step'];
for (var t of tables) {
  var gr = new GlideRecord(t);
  gr.addQuery('script', 'CONTAINS', name);
  gr.query();
  while(gr.next()){
    gs.print(t + ' -- ' + gr.name);
  }
}