email notification

piyushbedre
Tera Contributor

I want to sent the email notification to the Assignment group members 

which one is the best practice to do that ? coz assignment_group.include members  in "who will received" is not working

 

4 REPLIES 4

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @piyushbedre 

 

It should work but make sure includes members is true at group level and then automatically when email sent to group, it goes to members as well.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Oliver Stammler
Tera Guru

Hey @piyushbedre,

it definitely works, I did it myself at my current customer.
Did you configure it like this: 
{6A3BC04D-15AA-48F1-B0F9-F8F13FDB5525}.png

Are you sure the e-mail is getting triggered correctly? Did you also double check that all members have an email address in their user profile? 
Also have a look at this KB article, it might help as well: hKB2319573 - How to fix group members not receiving email notifications 

 

Cheers

Oli

Sarthak Kashyap
Kilo Sage

Hi @piyushbedre ,

 

You can do it in 2 ways,

 

1. In Notification add assignment_group in select tab of who will receive

SarthakKashyap_0-1762933576455.png

 

2. You can do it by script 

gs.eventQueue("send.notification.when.request.closed", current, current.assignement_group, "");
and in notification select checkbox "Event parm 1 contain recipient"
 
Please mark my answer correct and helpful if this works for you
Thanks and Regards,
Sarthak

Ankur Bawiskar
Tera Patron
Tera Patron

@piyushbedre 

it should work fine as lot of OOTB notifications do use Assignment Group as email recipients

Things to check

1) does that group have members who are active, not locked out and have notification preferences enabled

AnkurBawiskar_0-1762932941830.png

 

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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