Cmdb_ci_services notifications

Elisa Mena
Tera Contributor

Hello, 

 

I'm trying to set a notification on cmdb_ci_service when some attributes are updated, like owned_by, Business criticality. This is only working on the name, but not the other attributes.

I want the notification to run on any type of service (application service, offerings, etc) but it seems it's not triggered when updating app. services or offerings.

Can you help? I wouldn't want to create one for each table.

ElisaMena_0-1726559067129.png

 

5 REPLIES 5

Eshwar Reddy
Kilo Sage

 

create a new event definition
Create a New Business Rule
Set this to before or after depending on when you want to check the change. Typically, you might use before to check changes before the record is saved.

Use the following syntax to check if attributes have changed:


if (current.name.changes()) 

{

gs.eventQueue('incident.priority_changed', current, current.name);

}

 

 

Hi Pandu, 

 

Do you happen to know why the notification fails? 

Not sure at the moment; I need to check.

 

Please mark this response as Correct and Helpful if it helps you can mark more that one reply as accepted solution

Swamy Malluri
Tera Guru
Tera Guru

Hi @Elisa Mena ,

 

If you are trying to update Service and if you want to get mail then "Send to event creator" in who will receive tab in advanced view. Also make sure users are active and they have email id, notifications are not disabled for them. also check logs in email logs table. And follow below article for more troubleshooting options.

 

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0535129#:~:text=Go%20to%20the....

 

Please select correct answer or hit helpful button if my answer address your query.

 

Thanks,

Swamy malluri