prevent disabling the System notification from preference setting

PrachiI
Tera Contributor

I need to prevent user's to be disable the system notification setting. As there is no attribute in system which will stores the value after enabling/disabling the option. Please kindly help with solution.

2 REPLIES 2

Hemanth M1
Giga Sage
Giga Sage

Hi @PrachiI ,

 

System Notification information is stored in the "sys_aggregate_preference" table. A new record is created if a user tries to disable notifications for the first time and the same record is used to track enable/disable status.


You can create a Business Rule or a Flow on this table to check if a record exists. If it does and the status is changing from true to false -> abort the operation or revert the value to true.
If a new record is being created and its value is set to false, -> abort the creation.

 

Ex: 

HemanthM1_0-1762188388776.png

 

Hope it helps if so,

 

Accept and hit Helpful if it helps.

Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025

I tried to disable/enable both scenario but no entry is getting created newly on "sys_aggregate_preference" table.