Download - Mule integration with Servicenow
![Page 1: Mule integration with Servicenow](https://reader036.vdocument.in/reader036/viewer/2022062401/58ed7bdf1a28abc2698b463d/html5/thumbnails/1.jpg)
Integrate MULE ESB with Servicenow
By Ramakrishna Narkedamilli
![Page 2: Mule integration with Servicenow](https://reader036.vdocument.in/reader036/viewer/2022062401/58ed7bdf1a28abc2698b463d/html5/thumbnails/2.jpg)
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.
![Page 3: Mule integration with Servicenow](https://reader036.vdocument.in/reader036/viewer/2022062401/58ed7bdf1a28abc2698b463d/html5/thumbnails/3.jpg)
Prerequisites:
Servicenow developer account. Servicenow instance and access details Mule Anypoint Servicenow connector.
![Page 4: Mule integration with Servicenow](https://reader036.vdocument.in/reader036/viewer/2022062401/58ed7bdf1a28abc2698b463d/html5/thumbnails/4.jpg)
Servicenow Developer Account Setup:
For this sample purpose, we need developer Servicenow account. We can sign up for free at https://developer.servicenow.com
![Page 5: Mule integration with Servicenow](https://reader036.vdocument.in/reader036/viewer/2022062401/58ed7bdf1a28abc2698b463d/html5/thumbnails/5.jpg)
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.
![Page 6: Mule integration with Servicenow](https://reader036.vdocument.in/reader036/viewer/2022062401/58ed7bdf1a28abc2698b463d/html5/thumbnails/6.jpg)
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.
![Page 7: Mule integration with Servicenow](https://reader036.vdocument.in/reader036/viewer/2022062401/58ed7bdf1a28abc2698b463d/html5/thumbnails/7.jpg)
MULE ESB Flows for Servicenow Integration
The below Mule application is used to create request under Servicenow using Mule Anypoint Microsoft Servicenow connector.
![Page 8: Mule integration with Servicenow](https://reader036.vdocument.in/reader036/viewer/2022062401/58ed7bdf1a28abc2698b463d/html5/thumbnails/8.jpg)
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
![Page 9: Mule integration with Servicenow](https://reader036.vdocument.in/reader036/viewer/2022062401/58ed7bdf1a28abc2698b463d/html5/thumbnails/9.jpg)
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
![Page 10: Mule integration with Servicenow](https://reader036.vdocument.in/reader036/viewer/2022062401/58ed7bdf1a28abc2698b463d/html5/thumbnails/10.jpg)
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.
![Page 11: Mule integration with Servicenow](https://reader036.vdocument.in/reader036/viewer/2022062401/58ed7bdf1a28abc2698b463d/html5/thumbnails/11.jpg)
Mule XML code for the demo project:
![Page 12: Mule integration with Servicenow](https://reader036.vdocument.in/reader036/viewer/2022062401/58ed7bdf1a28abc2698b463d/html5/thumbnails/12.jpg)
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
![Page 13: Mule integration with Servicenow](https://reader036.vdocument.in/reader036/viewer/2022062401/58ed7bdf1a28abc2698b463d/html5/thumbnails/13.jpg)
Request creation under Servicenow instance:
![Page 14: Mule integration with Servicenow](https://reader036.vdocument.in/reader036/viewer/2022062401/58ed7bdf1a28abc2698b463d/html5/thumbnails/14.jpg)
THANKS YOU By Ramakrishna Narkedamilli