Users exclude from email notifications using script

Surya31
Kilo Contributor

Hi All,

I  have ABC- group , having 10 members , i need to exclude two members to not receive mail remaining 8 user get notification  when  new incident created. How do we achieve Email is not triggered to two users using script? 

Thanks in advance

5 REPLIES 5

Adrian Ubeda
Mega Sage
Mega Sage

Hi Surya,

In this case you should trigger this notification using events and BR. Inside BR you can set event paremeters for adding the members that notification must be sent.

Check this link below, where's explained:https://community.servicenow.com/community?id=community_article&sys_id=81a40d6adb1b2300b1b102d5ca9619bb

If it was helpful, please give positive feedback.
Thanks,

If it was helpful, please give positive feedback! ✔
☆ Community Rising Star 22, 23 & 24 ☆

Hi Adrian,

I  have ABC- group , having 10 members and i need to exclude two user to not receive email remaining 8 user get email notification  when  new incident created. How do we achieve Email is not triggered to two users using script? 

Aman Kumar S
Kilo Patron

There is no oob way to handle it.

You have to leverage events and only pass on the sys_ids of the users to whom you want to send the notification and skip those whom you dont want

Best Regards
Aman Kumar

Allen Andreas
Administrator
Administrator

Hello,

Ideally, if you can, you would push that onto the relevant individuals. If they don't wish to receive a specific notification, they themselves can navigate to their user preferences to turn off specific notification or better yet, you can remove their email channel (not email address from their promotion, but email communication channel) and that too will prevent them from getting any notifications.

Please mark reply as Helpful/Correct, if applicable. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!