Mule ESB Servicenow connector
Automate IT services and create
connectivity between ServiceNow and
other CRM, HCM, ERP applications and
services, on-premises and in the cloud.
MuleSoft is a popular ESB technology to integrate Different 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 is a cloud IT service management
solution that transforms enterprise IT by
automating and managing IT service relationships
to create a single system of record. The Anypoint
ServiceNow connector allows businesses to sync
ServiceNow data and extend IT service
management (ITSM) capabilities to SaaS and on-
premises applications like Salesforce, SAP,
Workday, and Dynamics, helping with data
migration and replication, application integration,
and consolidation.
Servicenow Developer Account Setup:
For this sample purpose, we need developer Servicenow account. We can
sign up for free at https://developer.servicenow.com
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.
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 Microsoft Servicenow connector.
Steps to be followed for integrating ‘Servicenow’ with MuleSoft Applications:
 Install the Servicenow Connector in Anypoint Studio (3.5 and above)
http://repository.mulesoft.org/connectors/releases/3.5
 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
 In the flow first add HTTP inbound endpoint to trigger the service.
 Add Servicenow endpoint in the flow to create request by referring to
Servicenow global connector.
 Now at this position we are integrated with Servicenow to perform
actions.
Mule XML code for the demo project:
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
Request creation under Servicenow instance:

Servicenow connector

  • 1.
    Mule ESB Servicenowconnector Automate IT services and create connectivity between ServiceNow and other CRM, HCM, ERP applications and services, on-premises and in the cloud.
  • 2.
    MuleSoft is apopular ESB technology to integrate Different 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.
  • 3.
    Prerequisites:  Servicenow developeraccount.  Servicenow instance and access details  Mule Anypoint Servicenow connector.
  • 4.
    • ServiceNow isa cloud IT service management solution that transforms enterprise IT by automating and managing IT service relationships to create a single system of record. The Anypoint ServiceNow connector allows businesses to sync ServiceNow data and extend IT service management (ITSM) capabilities to SaaS and on- premises applications like Salesforce, SAP, Workday, and Dynamics, helping with data migration and replication, application integration, and consolidation.
  • 5.
    Servicenow Developer AccountSetup: For this sample purpose, we need developer Servicenow account. We can sign up for free at https://developer.servicenow.com
  • 6.
    Servicenow instance andaccess 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.
  • 7.
    Mule Anypoint ServicenowConnector: 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.
  • 8.
    MULE ESB Flowsfor Servicenow Integration The below Mule application is used to create request under Servicenow using Mule Anypoint Microsoft Servicenow connector.
  • 9.
    Steps to befollowed for integrating ‘Servicenow’ with MuleSoft Applications:  Install the Servicenow Connector in Anypoint Studio (3.5 and above) http://repository.mulesoft.org/connectors/releases/3.5
  • 10.
     Create anew 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
  • 11.
     In theflow first add HTTP inbound endpoint to trigger the service.  Add Servicenow endpoint in the flow to create request by referring to Servicenow global connector.  Now at this position we are integrated with Servicenow to perform actions.
  • 12.
    Mule XML codefor the demo project:
  • 13.
    Running and Testingthe 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
  • 14.
    Request creation underServicenow instance: