- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-07-2021 01:21 AM
Hi All,
I want to turn off the notifications to all the users by default in servicenow. Users can turn it on later if they need.
Could anyone please help me with this.
Please note that I can't turn off the notification engine.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-07-2021 01:57 AM
sys_user table has notification field with enable or disable option
You can write background script to disable that for all users if the above approaches don't work
disableNotifications();
function disableNotifications(){
var rec = new GlideRecord('sys_user');
rec.query();
rec.setValue('notification', 1);
rec.updateMultiple();
}
Regards
Ankur
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-07-2021 01:49 AM
Hi Mark,
Yes it is. I turned off by scripting but some how itz getting enabled again 😞
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-07-2021 01:52 AM
Can you share what you've setup?
If my answer helped you in any way, please then mark it as helpful.
Kind regards,
Mark
2020 ServiceNow Community MVP
2020 ServiceNow Developer MVP
---
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-07-2021 01:57 AM
sys_user table has notification field with enable or disable option
You can write background script to disable that for all users if the above approaches don't work
disableNotifications();
function disableNotifications(){
var rec = new GlideRecord('sys_user');
rec.query();
rec.setValue('notification', 1);
rec.updateMultiple();
}
Regards
Ankur
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-25-2021 12:29 AM
Hope you are doing good.
Did my reply answer your question?
If so, please mark appropriate response as correct & helpful so that the question will appear as resolved for others who may have a similar question in the future.
Thanks!
Ankur