Technical Blog-post: Mule 4 ServiceNow Connector Demo

 

A GitHub ReadMe blog-post by Anup Salokhe, Senior Integration Consultant at Devoteam

The ServiceNow connector facilitates connections between Mule and ServiceNow apps. You can use the ServiceNow operations with the custom ServiceNow tables, along with any operations available through the installed plugins.

Prerequisites

  • A ServiceNow account (Steps are mentioned below)
  • Anypoint Studio, Design Center, or a standalone application developed in XML

ServiceNow Instance details

  1. Click on developer.servicenow.com and Login
  2. First click on the Manage tab and then click on Instance
  3. The Instance tab will open and display the instance details which are already created for you
  4. Login to your instance for further details
  5. Click on the Incidents

incidentdetails

Configuring Anypoint studio

  1. Add the ServiceNow module in the projectaddModuleFromExchange
    selectModule
  2. OR (Alternative to the above step) You can add the dependency directly into the pom.xml file: com.mulesoft.connectors mule-servicenow-connector 6.2.2 mule-plugin
  3. Go to the Global Element Tab and create a ServiceNow Config ConnectorServicenow Configuration Details
    Servicenow Configuration Details
  4. For Insert Operation, where you can create an incident in ServiceNow.Servicenow Configuration Details
  5. For GetRecords Operation, to fetch the available records in ServiceNow.Servicenow Configuration Details
  6. Detailed implementation is now present in the Github repository

Note

Apart from the above mentioned two operations. Other operations supported by the ServiceNow connector are;

  • Aggregate
  • Delete Multiple
  • Delete Record
  • Get
  • Get Keys
  • Insert Multiple
  • Update
devoteam

Contact

Anup Salokhe

Senior Integration Consultant