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.

Filter notification by role

chahinazekbz
Tera Contributor

Hi everyone,

 

I need some help with a notification issue.

I have a group of users with the “partner” role, and I want them to receive only three specific notifications — the ones whose names contain “Partner” (name in notification table )— and no others.

 

Since there are currently over 500 notifications on the platform, I can’t modify them manually.

 

I thought about creating a Business Rule on the sys_email table with a condition like:

 

if the user has the “Partner” role and the email subject doesn’t contain “Partner”, then abort the email.

 

However, the problem is that the three notifications don’t have any common keyword in their subject or name, so I can’t easily filter them that way.

 

thank you 

10 REPLIES 10

Its_Azar
Tera Guru
Tera Guru

Hi there @chahinazekbz 

Instead of blocking emails in sys_email, the best way is to use Notification Filters. Create a filter for users with the partner role and only allow the three specific notifications for them. This avoids touching 500+ notifications and prevents messy subject-based logic. If those three notifications don't share a keyword, you can reference their sys_ids in the filter or add a custom tag/role to them. This is the supported and scalable way to restrict notification delivery for a specific role.

 

☑️ If this helped, please mark it as Helpful or Accept Solution so others can find the answer too.

Kind Regards,

Mohamed Azarudeen Z

Developer @ KPMG

notification filter 3.png

notification filter 2.png

notification filter 1.png

I did that, but it’s not working.
Cenomi is a group of people with the partner role.
What could be missing?

   

I did that, but it’s not working.
Cenomi is a group of people with the partner role.

notification filter 2.png

notification filter 1.png

notification filter 3.png

   


What could be missing?

notification filter 3.png

notification filter 2.png

notification filter 1.png
I did that, but it’s not working.
Cenomi is a group of people with the partner role.
What could be missing?