- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-30-2016 07:25 AM
OOB there are a ton of notification options for folks to enable/disable. Can someone share where I might be able to limit the areas that folks can turn on/off their notifications.
Solved! Go to Solution.
- Labels:
-
Subscription Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-01-2016 01:23 PM
Here is what I found on this topic after great discussion here: While neither of these actions allow to "hide" the notification preference, it at least lets you control who can subscribe and unsubscribe.
There are two options for notifications (Force and Mandatory) that will determine how the notifications appear to the end user. I would like for the
In Geneva
Forcing will force the notification no matter what the user has set as their notification preference.
http://wiki.servicenow.com/index.php?title=Email_Notifications#gsc.tab=0 | 2.6
Setting as Mandatory will set the notification as mandatory, but will allow the user to unsubscribe from the notification if desired.
In Helsinki
Mandatory - https://docs.servicenow.com/bundle/helsinki-servicenow-platform/page/administer/notification/task/t_...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-18-2018 06:10 AM
I am curious what modification you made to only return notifications received by the user. Would you be able to share that? I have modified this Script Include so that 'subscribable' notification do not appear with the standard notifications and being able to filter the rest like they used to be would be awesome.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-18-2018 08:03 AM
Instead of querying "sysevent_email_action" table directly, query "cmn_notif_message" table which obviously stores notifications received at least one by a user.
var notifMessageGR = new GlideRecord('cmn_notif_message');
notifMessageGR.addQuery('user', userId);
notifMessageGR.addQuery('notification.active', true);
notifMessageGR.orderBy('name');
notifMessageGR.query();
Then you get the actual notification in while loop via var notification = notifMessageGR.notification; and you use notification instead of gr variable in the rest of the function code. (I recommend to create new function "gatherReceivedNotifications" instead of updating the "gatherNotifications" and use this in "gatherNotifPreferenceData").
That should be it.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-24-2018 02:10 AM
Anyone tested this with UI16??

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-23-2018 07:49 AM
Yes. Doesn't work with UI16.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-27-2020 12:06 AM
Hello Dominik Simunek,
Thanks for the solution ,could you please provide us the code as well which you already tried to get the notifications.
It will be very helpful for me for my requirement .
Regards,
Namrata Agrawal