Mule integration with Servicenow

14
Integrate MULE ESB with Servicenow By Ramakrishna Narkedamilli

Transcript of Mule integration with Servicenow

Page 1: Mule integration with Servicenow

Integrate MULE ESB with Servicenow

By Ramakrishna Narkedamilli

Page 2: Mule integration with Servicenow

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

Prerequisites:

Servicenow developer account. Servicenow instance and access details Mule Anypoint Servicenow connector.

Page 4: Mule integration with Servicenow

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

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

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

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

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

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

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

Mule XML code for the demo project:

Page 12: Mule integration with Servicenow

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

Request creation under Servicenow instance:

Page 14: Mule integration with Servicenow

THANKS YOU By Ramakrishna Narkedamilli