Blog - ServiceNow-to-ServiceNow Integration Using eBonding

Tarun Rekandar
Mega Guru

ServiceNow-to-ServiceNow Integration Using eBonding Basic Authentication

 

Introduction

Recently, I explored and practised ServiceNow-to-ServiceNow integration using eBonding (Electronic Bonding).

The main objective of this learning exercise was to understand how two different ServiceNow instances communicate and exchange information.

eBonding helps organizations connect separate ServiceNow instances and synchronize records such as Incidents between them.

Through this exploration, I gained an understanding of REST API communication, outbound and inbound integrations, authentication, and record synchronization.

In this blog, I will share my understanding of eBonding, its working process, the components involved, and the key concepts I explored during practice.

 

What is eBonding?

eBonding (Electronic Bonding) is an integration approach that connects two or more ServiceNow instances to exchange information and synchronize records.

 

For example, one organization may use its own ServiceNow instance to manage incidents, while its external support partner uses a separate instance. Instead of manually sharing incident details through emails, eBonding allows both instances to exchange information automatically.

It helps maintain communication and visibility between different organizations.

 

eBonding Architecture

eBonding involves communication between two independent ServiceNow instances.

TarunRekandar_0-1795020868524.png

 

Components Used in eBonding

 

 Component Purpose

REST Message

Sends HTTP requests to another instance.

REST API

Enables communication between instances.

Scripted REST API

Creates custom API endpoints to receive and process requests.

Business Rules

Triggers integration logic when records are inserted or updated.

Flow Designer

Automates integration workflows with low-code configuration.

Basic authentication

Provides secure authentication.

 

Example for ServiceNow-to-ServiceNow Integration Using eBonding Basic Authentication:


An organization wants to integrate its ServiceNow instance with another organization's ServiceNow instance to automatically synchronize incident records between the two systems. Whenever an incident is created in the first organization's instance, the same incident should automatically be created in the second organization's instance, including all relevant details. This integration eliminates the need to manually retrieve incident data from the other organization's instance.

 

process:

 

  1. Go to Filter Navigator and search for: REST Message (BUILDING CONNECTION BETWEEN INSTANCES)

    System Web Services >> Outbound >> REST Message

    Create a new record and add the Name, Description and the Target instance URL.
    TarunRekandar_1-1795022224948.png

  2. Select the Authentication type as Basic(CONFIGURING AUTHENTICATION FOR TARGET INSTANCE)

    Click on Basic auth profile lookup 🔍 and create a new record with Target instance authentication details.
    TarunRekandar_6-1795022544137.pngTarunRekandar_7-1795022558618.png

     

  3. Create a new Basic Authentication profile and enter the credentials of the Target ServiceNow instance.
    TarunRekandar_8-1795022730173.png

     

  4. Click on New in the related list to create a new HTTP Method.(CREATING HTTP METHOD FOR TARGET INSTANCE)

    Provide the Name, select the HTTP method and add the Endpoint of the Target instance.
    TarunRekandar_9-1795023091095.png

     

  5. Add the required Headers in the HTTP Request section.
    TarunRekandar_10-1795023191689.png

     

  6. Add HTTP Query Parameters in the HTTP Request section.
    TarunRekandar_11-1795023327941.png

     

  7. Create a After Business Rule that runs after when an incident is created.
(function executeRule(current, previous /*null when async*/ ) {

        var r = new sn_ws.RESTMessageV2('ServiceNow to ServiceNow integration', 'Create inc in Target incident');
        r.setStringParameterNoEscape('sub_cat', current.subcategory);
        r.setStringParameterNoEscape('short_desc', current.short_description);
        r.setStringParameterNoEscape('num', current.number);
        r.setStringParameterNoEscape('impact', current.impact);
        r.setStringParameterNoEscape('desc', current.description);
        r.setStringParameterNoEscape('caller', current.caller_id);
        r.setStringParameterNoEscape('cat', current.category);
        r.setStringParameterNoEscape('state', current.state);
        r.setStringParameterNoEscape('urgency', current.urgency);


        var response = r.execute();
        var responseBody = response.getBody();
        var httpStatus = response.getStatusCode();

})(current, previous);

 

Final Thoughts

eBonding is an important integration approach in ServiceNow that enables communication between separate instances. It helps organizations exchange and synchronize records, improving collaboration between different support teams.

Exploring this concept provided me with a better understanding of ServiceNow integrations, REST APIs, authentication, and record synchronization.

I look forward to exploring more integration capabilities within the ServiceNow platform.

 

Hope you found this article helpful!
Regards,
Tarun

 
0 REPLIES 0