logo

NJP

Pre- requisite(Necessary)to perform any Integration in ServiceNow

Import · Mar 04, 2024 · article

Hi ServiceNow Gigs,

Things which we need to be aware of while doing any kind of Integration and we have to ask the requestor the below information:-

  1. Decide what we want to use and what our third party supports : REST or SOAP. If it supports both, we will go for REST.
  2. End point details for this third party tool.
  3. If there is any requirement to use Mid Server or not. If on same network then not needed. If on the other network then we should use mid-server.(in case of AIRBUS , we are using MID-Server as their 3rd party is hosted locally on their network.
  4. Request Body is needed(JSON details ).
  5. User name and password for third party if you are pushing or pulling the data to third party tool.(Authentication details can be given as a token also).
  6. We need to decide how we want to integrate, Workflow, Business rules, Script includes or scripted web services.(in our case we can use Workflow to call the Rest Message in run-script)
  7. We need to decide on Actions which we have to perform, such as get, put, post, update, delete, etc.
HTTP Methods Used Meanings
GET The GET method is used to retrieve information from the given server using a given URI.
POST POST request is used to send data to the server.
PUT Replaces all current representations of the target resource with the uploaded content.
DELETE Removes all current representations of the target resource given by a URI.

Sample Example what we need from Client/requestor:-

Endpoints:- https://xxx.service-now.com/api/now/table/incident

Authorization Details:- username and Password or token(bearer token)

Request Body:-

{

"caller_id":"ravi.gaurav",

"short_description":"new to api"

}

Content Type:- application/json

Accept :- application/json

Methods:- POST/GET/PUT/Delete

I hope all are clear on the above point. If any of the info is missing from the requestor end then it will be a blocker for our story. So make sure that we need to get the details from the requestor as soon as we analyze the API story.

Demo Video :-

https://www.youtube.com/watch?v=q0z8sZ6l3JY&list=PLKH9bPqlw1nfPpLULqorWsRiCKD2nNKUP

Thanks

Ravi Gaurav

ServiceNow MVP 2024

www.youtube.com/@learnservicenowwithravi

View original source

https://www.servicenow.com/community/developer-articles/pre-requisite-necessary-to-perform-any-integration-in-servicenow/ta-p/2839620