Subscription notification for Changes

KritiSrivastava
Tera Contributor

Hi, 

 

There is an option with name "Subscribe" in "Related Links" of any CI. So that when we click on that it creates a record in "sys_notif_subscription" table. And it by default sets table as incident and to a particular incident notification. But I want to change it to change. So that whenever any user subscribes to a particular CI and if that CIs gets used in change. Then they will receive a notification. Please help..

6 REPLIES 6

Community Alums
Not applicable

Hi @KritiSrivastava ,

You can getting the values set from a Script include called "SubscriptionUtil"

If you look at the script, line number 33, the Table in the "sys_notif_subscription" table is set by the Affected Table which is cmdb_ci, i don't see anything for incident table.

 

SandeepDutta_0-1710410589526.png

SandeepDutta_1-1710410650607.png

 

Also, this is a OOTB Script include, i would think 100 times before i change anything.

 

 

Hi @KritiSrivastava 

 

I follow this chat and also try to find out but it is not clearly mention where this table is getting set. 

AGLearnNGrow_0-1710411966927.png

 

 

My thought say, as Incident is primary in ITIL so it may set it , Try to check the properties. 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

KritiSrivastava
Tera Contributor

Hi Sandeep, 

 

If you open the notification subscription, you will see the "Table" and "Notification" field. When we click on subscribe this is by default getting created, but I want to set it by default for "Change".

Hi Sandeep,

 

I have also attached screenshot, please check I have highlighted it.