Calling external webhook/API from service now

srikanthjsnap
Kilo Contributor

Hi,

My requirement is when an incident is updated in service now , i need to notify another application through webhook URL , basically service now application should be able to call external URL by providing information about incident.

I am thinking below approach .

1. Implementing Scripted Rest API which calls my external webhook URL.

2. Create a business rule for Incident update.

3. In business rule script will call the scripted rest API which points to external URL.

Could you please let us know my approach is correct or any other best approach.

3 REPLIES 3

Chuck Tomasi
Tera Patron

Hi Srikanth,



You can do this with REST. A Scripted REST API is generally used for other systems contacting ServiceNow and providing your own custom API that they talk to. This sounds like you are building an outbound message, which is a different use case than Scripted REST API. A standard outbound REST message sent from a business rule should do nicely I would think (based on the information provided so far.)



Getting Started with REST - ServiceNow Wiki


REST API Explorer - ServiceNow Wiki


REST API  


Thank you it answers my question , I need to create rest message sent from business rule.


If you would be so kind... please mark my response as correct so that others with the same question in the future can find it quickly and that it gets removed from the Unanswered list.


If you are viewing this discussion from your "inbox", use the "mark as correct" option under actions. If you are viewing it directly from the thread use the Correct Answer link (red with a star).


Thank you