Notification Preferences and removing old notifications

tjschmitt
Tera Guru

Hello!

 

I thought that this might be a good question for the user community.

 

Over time, we've revamped some of the notifications that we've used.   In order to do that, we've made new notifications and inactivated the old notifications.   The challenge is that the inactive notifications are still listed as options in the notification preferences for users in ServiceNow who have previously received the notification but we'd like to drive them into using the new notifications.

 

My first thought was to delete the preference records from cmn_notif_messages for all notifications that have been inactivated but I'm not sure that's the right choice.   What do you do to manage the available options in notification preferences when you change your notifications.

 

Tim Schmitt

Bremer Bank

1 ACCEPTED SOLUTION

marcguy
ServiceNow Employee
ServiceNow Employee

Hi Tim,



do you care about the users currently subscribed to the old notifications? i.e. do you want to automatically subscribe them to the new one? if that's the case and you can easily identify old and new then you could run a script to transfer their preference from the old notification to the new, checking they haven't already subscribed to them.



If you don't I would just run a gliderecord query to find subscriptions to inactive notifications and delete them.



Another alternative would be to modify the notification_preferences UI page to add an addActiveQuery() to the list it builds of notifications subscribed to, that would then mean you own that UI page though.


View solution in original post

4 REPLIES 4

marcguy
ServiceNow Employee
ServiceNow Employee

Hi Tim,



do you care about the users currently subscribed to the old notifications? i.e. do you want to automatically subscribe them to the new one? if that's the case and you can easily identify old and new then you could run a script to transfer their preference from the old notification to the new, checking they haven't already subscribed to them.



If you don't I would just run a gliderecord query to find subscriptions to inactive notifications and delete them.



Another alternative would be to modify the notification_preferences UI page to add an addActiveQuery() to the list it builds of notifications subscribed to, that would then mean you own that UI page though.


marcguy
ServiceNow Employee
ServiceNow Employee

One of things we did to our 'cmn_notif_message.notification' field is to add a reference qualifier to it of 'active=true' as well.



Marc


Chandan23
Tera Expert

simple:


If you want to deactivate the old, and instead want the user to use new notification:


Then why not you are modifying the old notification as the new one, there is no necessary of new one.


Kalaiarasan Pus
Giga Sage

deleting the old notification and replacing with the new notification is the way to go... this will not irritate the users to subscribe them back