How do you associate a "subscribable" notification to a user when they subscribe to it?

maynartt
Kilo Guru

I have a Notification (sysevent_email_action) where Subscribable is checked/true:

find_real_file.png

Then I sign up for it via Settings (gear at top right - in banner) > Notifications > Notifications by category, and then find the notification under SYSTEM NOTIFICATIONS, then toggling the channels to true:

find_real_file.png

When I did the screen shot above, I found that Notification Message (cmn_notif_message) records were created - this is good.

From this docs article, and from looking in my instance, I see that the "Subscription Based Notifications 2.0" plugin is installed, which replaces the cmn_notif_subscription table with the sys_notif_subscription table.

https://docs.servicenow.com/bundle/newyork-servicenow-platform/page/administer/notification/concept/...

In order to get my notification to work (create sys_email records), I had to manually link the Notification (sysevent_email_action) to the Notification Message (cmn_notif_message) by the following steps:

  • sys_notif_subscription.list in the Navigator and press Enter.
  • click the blue New button at the top of the list
  • fill in User, Notification, and Send to and click Save.

Obviously we can't expect our users to do the same.  My expectation was/is that this sys_notif_subscription would be automatically created when a user subscribes.  

I searched high and low for logic that would create the sys_notif_subscription record, and I did find some, but it looks like it's specific to cmdb, and nothing is there for notification subscription.  But I could be missing something.  

I'm thinking we'll have to create logic that will create sys_notif_subscription records when someone subscribes, and delete sys_notif_subscription records when someone unsubscribes.  But is there another way to do this?  Something different recommended by ServiceNOW?  Or could this be functionality that somehow slipped thru the cracks and should be in a future release?

1 ACCEPTED SOLUTION

Yup thats what I meant 🙂

Hope that helps you achieve what you are looking for.

View solution in original post

6 REPLIES 6

Jef DC
Tera Contributor

Hi all, this is still the case, 

The automatism to generate the records in sys_notif_subscription table is still missing....

I even saw that manipulating the UI as a user doesn't impact the active flag at all. (thus after manually adding the proper notification subscription, using the sliders in the 'Notification' UI doesn't update the Notification Subscription record.

I've opened a case and hope to get some answers as to what I might be missing...

 

Did you ever get any answers from the Support team on this?  I am trying to set up new push notifications for Mobile Agent and am finding the waters pretty muddy on what does and does not work OOTB.