Users exclude from email notifications using script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2022 07:52 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2022 07:59 AM
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,
☆ Community Rising Star 22, 23 & 24 ☆
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2022 09:15 AM
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?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2022 08:10 AM
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
Aman Kumar

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2022 08:11 AM
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!