Send Servicenow data to external application

monicanegi
Kilo Contributor

Hi ,

I have a requirement where I want to send open incidents from Servicenow to external application.

Can i send the limited number of records(say i have 1000 open incidents , i want to send 100 records at a time, so that they are sent over a loop.)

Also is this feasible that my Rest API gets called automatically whenever a new incident is opened. So that ,a new incident will also be sent to external application without making any further changes.

It will be great if any pointers are provided on this.

Thanks,

Monica

12 REPLIES 12

Ivano B
ServiceNow Employee
ServiceNow Employee

Hi Monica



yes you can deploy the business rule using update set.


Of course you need to create an update set and set as current.


After that you need to continue working on your BR. The BR will be captured in your update set.


After closing the update set can be retrieved in another instance and than deployed locally to be used.



More information can be found here



Getting started with Update Sets


Update Set administration




Cheers


R0b0


If you are trying to send incidents in the sets of 100s, then what is the trigger point? As in, when do you want to send it? Is it at some point in time, or at a particular event? Or does the external system sends request to send these incidents in sets of 100?



In any of above case, once you are sure about the trigger point - then you can write a script (Ondemand scheduled job / Script actions / Script Include function to be called in BR) to -


        a. Query all open incidents.


        b. Maintain a counter of 100, and accumulate all the results in one response.


        c. Send the response. Reset the counter.


        d. Update a "sent" flag on all the incident records which you have sent in current batch of 100. - [You need to create a custom flag (true/false) field.]


        e. Repeat this process till all open incidents are sent in batches of 100.


Hi 

Ankur Bawiskar

I am trying to configure eaxctly this one. Can you please provide the more detilse like where can i find the configuration details.