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.

Exclude email domain from all notifications

Mathias Johans1
Mega Expert

Hi all!

We have gotten a requirement from one of our customers, to never send them any email notifications from our ServiceNow instance. Is there a way to "globally" exclude their domain, instead of configuring every notification separately?

I was thinking about using an Before business rule on sys_email table, but it seems like the email is processed before the business rule. Any suggestions?

Thanks!

1 ACCEPTED SOLUTION

SatheeshKumar
Kilo Sage

Hi mathias,

Check the below article, it should provide  a solution to you!

https://community.servicenow.com/community?id=community_article&sys_id=83a7a5acdb60ebc09d612926ca961...

 

-Satheesh

View solution in original post

4 REPLIES 4

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

you can disable sending email using properties;

in left navigation type email properties -> Email sending enabled should be false

Mark Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur

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

Hi! Thank you for replying!

The trick is, that we need to exclude a specific domain from outgoing notifications. All other notifications should be sent normally. This configuration deactivates all notifications to all users..

I.e if I update an Incident and the caller email is "person@servicenow.com" and a user in watch list is "me@advania.com". Then the email should only be sent to "me@advania.com", because we want to exclude all notifications to "@servicenow.com"

Hi Mathias,

So it depends on particular email address.

For example if 2 recipients are present one from advania.com and one from servicenow.com

then servicenow.com users should not receive

for this you would require to have some code on sys_email table only; remove the recipient you don't want. you need to use proper condition probably for this

Mark Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur

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

SatheeshKumar
Kilo Sage

Hi mathias,

Check the below article, it should provide  a solution to you!

https://community.servicenow.com/community?id=community_article&sys_id=83a7a5acdb60ebc09d612926ca961...

 

-Satheesh