1. Web Services Integration – ServiceNow
  2. What is integration?
  3. Type of Integration
  4. Basic Requirements for Integrate any system
  5. Integration Testing Tools
  6. Integration Module
  7. Inbound Integration
  8. SOAP VS REST API
  9. Table API Web Service – REST
  10. Direct web services – SOAP
  11. Import Set Web Service – SOAP
  12. Import Set API – REST
  13. Scripted Web Services – SOAP
  14. Scripted Web Services – REST
  15. SOAP Message – Outbound
  16. REST Message – Outbound
  17. ServiceNow to ServiceNow Incident Integration
  18. OAuth 2.0 Authentication
  19. ServiceNow – OAuth application connect
  20. Access Token VS Refresh Token

REST Message – Outbound

Another method for outbound is REST Message. Create a REST message and trigger it from the ServiceNow system.

For example, we can take any third-party application. Example:- https://documenter.getpostman.com/

Code to use in BR or UI Action:

try { 
 var r = new sn_ws.RESTMessageV2('TestAPI', 'SendData');
 r.setStringParameterNoEscape('short_description', 'test');
 r.setStringParameterNoEscape('number', 'inc001');
 var response = r.execute();
 var responseBody = response.getBody();
 var httpStatus = response.getStatusCode();
}
catch(ex) {
 var message = ex.message;
}

No responses yet

Leave a Reply

Your email address will not be published. Required fields are marked *