Send Servicenow data to external application
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-12-2017 02:26 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-12-2017 02:47 AM
Hi Monica
About the first requirement i would suggest to make you external system to call service now the first time and export everything you need.
If you use this approach I think you will find very helpful this article
http://wiki.servicenow.com/index.php?title=Table_API#gsc.tab=0
It explains the attributes available for a GET method using ServiceNow REST API.
One is sysparm_limit that can be used to paginate the export.
On the other hand if you expose a web service in your external system to create/update an incident from ServiceNow i would suggest this other article
http://wiki.servicenow.com/index.php?title=Outbound_REST_Web_Service#gsc.tab=0
it explains how to use/set external web services.
In particular section 6 http://wiki.servicenow.com/index.php?title=Outbound_REST_Web_Service#Scripting_with_REST explains how to generate automatically some code that can be used in a business rule to execute the call to your web service.
This will do exactly what you need.
Each time an incident is created/updated the business rule with the generated code will be executed to create/update the incident in the external system.
I hope this will help/answer your question and if it does please mark it
Cheers
R0b0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-12-2017 03:02 AM
Hi R0b0,
I was looking for some way to set this sysparm_limit on servicenow side itself. So that the outbound rest webservice send the data in chunks(say 100 records).Also if the same rest webservice can take care of newly opened incidents as well.
Is there any way that we can achieve all these functionality in the same outbound webservice?
Thanks,
Monica
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-20-2017 08:56 AM
The ServiceNow Wiki content is no longer supported. Updated information about this topic is located here:
Table API
Outbound REST Web Service
Visit http://docs.servicenow.com for the latest product documentation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-12-2017 02:48 AM
Hi Monica,
What is your exact requirement?
a) Whenever incident is created in Servicenow it has to be sent over to external application -> in this case the third party needs to provide some api endpoint which you can consume and call whenever incident gets created in Servicenow. They may say you to send assignment group, notes, priority etc which you can send using either SOAP message or REST message depending on which endpoint they provide either REST/SOAP
b) The external application needs to create an incident in ServiceNow -> in this case you will have to create a web service either SOAP/REST and give the endpoint to them so that they can consume it.
Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader