2. Overview:
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.
4. Servicenow Developer Account Setup:
For this sample purpose, we need developer Servicenow account. We can
sign up for free at https://developer.servicenow.com
5. 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.
6. 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.
7. MULE ESB Flows for Servicenow Integration
The below Mule application is used to create request under Servicenow
using Mule Anypoint Microsoft Servicenow connector.
8. 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
9. 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
10. 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.
12. 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