ServiceNow Web Service : REST API and Javascript

Creating a RESTful web service in ServiceNow platform by using Javascript

Iqbal Mohd
Servicenow Tutorial
2 min readMay 26, 2018

--

Tools Used in this Tutorial

1. ServiceNow Instance
2. Javascript

Step 1: Creating a Business Rule

This tutorial assumes that you already have an accessible instance of ServiceNow that you can connect to. For more information on getting started with ServiceNow, visit their online tutorial.

Business Rule : MediumRESTAPI

Step 2: Creating a Script Include

In Script Include, we create to separate script include. The first one to communicate with the business rule and the second one to generate JSON.

Script Include : MediumRestAPIInterface

Script Include : MediumJSONConverter

Step 3: Creating a REST Message

Navigate to System Web Services>Rest Message

--

--

Iqbal Mohd
Servicenow Tutorial

Programmer - A person who fixed a problem that you don`t know you have , in a way you don`t understand. 3 years experience in programming with HSBC and SINGTEL.