Disable notification for all users using script

Govind Kumar S1
Kilo Guru

Hi all,

I want to disable notification for all users for Temporary purpose. Anyone can suggest me , how to achieve this using Script.

Thanks & Regards

Govind Kumar Sharma

1 ACCEPTED SOLUTION

Help me understand this.



Why do you need to write a script when you can do this by simply unchecking the checkbox?


Or just navigate to user table and add the 'Notification' field to list view. Double click on notification field and select 'Disable' for a record. Now right click on the header and click 'Update All'



11-6-2015 2-28-57 PM.png


View solution in original post

13 REPLIES 13

Gurpreet07
Mega Sage

Hi Govind,


What type of notifications you want to disable. If you want to disable email notifications for all users then you could simply modify the email properties(System Properties --> Email ) to redirect all emails to some other email address.


Capture.JPG


Hi Gurpreet,



Thanks for reply. I want to disable all notification.I know this this solution. but I want to do this using script. can you please guide me on this.



Thanks & Regards


Govind Kumar Sharma


Hi Govind,



I am not sure if it will help or not but all i know is , Devices for notification preferences for all users stored in cmn_notif_device table . Thus un checking active for all devices should disable the notifications but not all notifications. if a notification is configured to be send to a user the system first check for the primary notification device of type email and if its not found then it will send email to the email field in the user record. You could inactivate all records using script but remember to keep   a backup. There will be some notification devices which are already inactive and if you are inactivating all the email devices then you will lost the record that which were inactive earlier.


Kalaiarasan Pus
Giga Sage

There is a notification field on all the user records. Query sys_user table and set it to 'disable' using script for all the users.