email notification is only sent out to the group manager

asd22
Tera Contributor

Hello, i have a group with a manager and 4 other users. When an email notification is set up to send email to this group, its only the manager that gets it. What may cause this?

3 REPLIES 3

Barath P
Tera Guru

Hi @asd22 

You can try this
https://www.servicenow.com/community/developer-forum/notification-to-be-triggered-to-group-s-manager...

"If you found my answer helpful, please give it a like and mark it as the accepted solution. It helps others find the solution more easily and supports the community!"

 

Thanks & Regards,

Barath.P



Community Alums
Not applicable

Hi @asd22 ,

I tried your problem in my PDI and it works for me please check below code

var gr = new GlideRecord('sys_user_group');
gr.addQuery('sys_id', '8a4dde73c6112278017a6a4baf547aa7');;
gr.query();
if(gr.next()){
	gs.eventQueue('event.name',gr,gr.name,gr.manager.email);
}

 

In parm1 I passed group name and in parm2 I passed manager name 

 

You have to create one notification which triggers when the event is fired 

SarthakKashyap_0-1727867549469.png

 

In Who will recive section you have to check Event parm 2 contains recipient to true

SarthakKashyap_2-1727867628493.png

 

Please mark my answer correct and helpful if this works for you

Thanks and Regards 

Sarthak

 

 

 

Mark Manders
Mega Patron

Does the group has the 'include members' checkbox ticked?


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark