Mule ESB Integration with ServiceNow

Overview:

MuleSoft is a popular ESB technology to integrate various on-premise and cloud applications for data exchange. ServiceNow is a platform-as-a-service (PaaS) provider of enterprise Service Management (SM) software. Provides wide variety of options to control all the support activities i.e. Incident, request, tracking, status, follow-ups and etc. The Mule ServiceNow connector enables developers to interact with ServiceNow API to create issues and incidents and fetch data from any where, any time and any amount volume.

Prerequisites:

  • ServiceNow developer account.
  • ServiceNow instance and access details.
  • Mule Anypoint ServiceNow connector.

ServiceNow Developer Account Setup:

For this sample purpose, we need developer ServiceNow account. We can sign up for free at https://developer.servicenow.com

SN_Overview

ServiceNow instance and access details:

  • Once the account has been setup, need to make request for instance using tabs MANAGE –> Instance –> Request for Instance
  • Instance will be created and gives the details (Instance URL, Instance login username and Instance login password)
  • Here Instance means, dedicated dashboard where you can control all your requests and incidents.
  • Login to the ServiceNow Instance with the provided details.

SN_Instance

Mule Anypoint ServiceNow Connector:

ServiceNow is a platform-as-a-service (PaaS) provider of enterprise Service Management. Mule ServiceNow connector provides more than 30 operations to interact with ServiceNow API to perform

  • Incidents management
  • Request management
  • User management.

MULE ESB Flows for ServiceNow Integration

The below Mule application is used to create request under ServiceNow using Mule Anypoint ServiceNow connector.

Mule_flow

Steps to be followed for integrating ‘ServiceNow’ with MuleSoft Applications:

Connector_download

  • Create a new Anypoint Studio Project and Flow to create request.
  • Configure the ServiceNow global element in global elements section by providing the instance URL, instance username and instance password.

Global_element

  • In the flow first add HTTP inbound endpoint to trigger the service.
  • Add Servicenow endpoint in the flow to create request by refering to Servicenow global connector.
  • Now at this position we are integrated with Servicenow to perform actions.

Running and Testing the Application:

  • Right-click on the application –> Run –> Mule Application.
  • Open the browser and hit the URL http://localhost:8081/createRequest
  • Service will create the request in ServiceNow instance and gets the created request id back in the response in case of no errors
  • Below screen shot shows response after successful creation of request and you can notice request number REQ0010012

SN_response

Request creation under ServiceNow instance:

SN_Request_creation

Mule ESB Integration with ServiceNow

One thought on “Mule ESB Integration with ServiceNow

  1. Hello, Here ServiceNow account setup, access details,ServiceNow connection and Integration are well explained with screen shots and it very useful for new users as well

    Like

Leave a comment