Notify when a case is created or updated

DimaB
Kilo Expert

Hi, I have a developer instance of CSM running and I'm looking for a way to get notified via api call when a case is created or updated, ideally with a webhook. I couldn't find a way to do it, is it possible?

 

Thanks in advance

5 REPLIES 5

Robbie
Kilo Patron
Kilo Patron

Hi @DimaB,

 

Check the below link which guides though how this can be achieved and provides sample code using Business Rules.

 

To help others (or for me to help you more directly), please mark this response correct by clicking on Accept as Solution and/or Kudos.


Thanks, Robbie

 

Link:

https://www.transposit.com/devops-blog/itsm/creating-webhooks-in-servicenow/

Thanks @Robbie 
I followed the article step-by-step and was able to get an event sent to my test webhook but the json was empty. No matter what changes I made to the business rules script I'm unable to get any data from the event.

Any ideas? I feel like the article might be outdated

ersureshbe
Giga Sage
Giga Sage

Hi, To enable integration only for notification is not valid use case. Instead of enabling integration add the recipient email address in the 'Watch List' from case ticket.

Regards,
Suresh.

Thanks @ersureshbe 
I added my email to the watch list but I don't receive any emails on new comments to the case. What am I missing? how can I be notified of any change to the case?