Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

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

when i run this script the below error is throwing

 

Script compilation error: Script Identifier: null.null.script, Error Description: missing ; after for-loop initializer (null.null.script; line 3), Script ES Level: 0, Interpreted Mode: true
Javascript compiler exception: missing ; after for-loop initializer (null.null.script; line 3) in: