Phillip Godwin
ServiceNow Employee
ServiceNow Employee
 

This fourth article in our series of Service Bridge best practices will walk through the installation of the Service Bridge consumer application – Service Bridge for Consumers.

 

For an introduction to Service Bridge and instruction on installing and configuring Service Bridge on a provider instance, see Installing and Configuring Service Bridge for Providers.

 

 

Installing Service Bridge for Consumers

 

The Service Bridge for Consumers application enables service consumers to connect and track service requests with their providers and partners who use ServiceNow, and should be installed on the consumer’s instance.

The first step in installing Service Bridge for Consumers is to verify that you have a valid entitlement to the application.  See Get entitlement for a ServiceNow product or application for help with this task.

The procedure for installing Service Bridge for Consumers is as follows:

 

  1. Navigate to All > System Applications > All Available Applications > All
  2. Find the Service Bridge for Consumers application (sn_sb_con) by using the filter criteria and search bar.
  3. Search for the application by its name or ID. If the application is not found, request it from the ServiceNow Store.
  4. Visit the ServiceNow Store website to view all the available apps and for information about submitting requests to the store.
  5. In the application installation dialog, review the application dependencies. If any prerequisite plugins or applications are not yet installed, they must be installed before Service Bridge for Consumers is installed.
  6. Select Load demo data if so desired.  Demo data contains the sample records that describe the application features for common use cases.
  7. Click Install.

 

Depending on  your ServiceNow Platform version and Service Bridge application version, Service Bridge may require platform updates to function.   A global script include is necessary in order to receive those updates and use Service Bridge for Consumers (see KB1225292).  If you are running the Xanadu Patch 4 or higher ServiceNow platform release and are on Service Bridge application version 2.0.55 or higher this step is not required.

Here are the steps to install the global script include:

  1. If you running Service Bridge v1.x.x download sb_v1.x.x.xml to your computer; if running Service Bridge v2.2.x download sb_v2.2.x.xml to your computer; and if you are running other versions of Service Bridge v2.x.x download sb_v2.x.x.xml to your computer.
  2. Log in to the instance as an admin.
  3. Navigate to System Definition > Scripts - Background.
  4. Run the following script to delete the old sb include.

var sbcUtil = new GlideRecord('sys_script_include');

if(sbcUtil.get('e1034c0cc3511110331b4b46dd40dd0a')) {

sbcUtil.sys_policy = '';

sbcUtil.update();

sbcUtil.deleteRecord();

}

 

  1. Navigate to System Definition > Script Includes.
  2. From any of the list header menus select Import XML.

    PhillipGodwin_1-1703167061515.png

 

  1. Select the file you downloaded and click Upload.

    PhillipGodwin_2-1703167101854.png

  2. Navigate to System Definition > Script Includes.
  3. Verify that sb is in the list.

 

You now have the script include and can proceed with using Service Bridge for Consumers.

 

Once the Service Bridge for Consumers application has been installed, a consumer can work with their provider to establish a Service Bridge connection.  See the previous community article Registering and Onboarding a New Service Bridge Consumer Connection for guidance.

 

Continue below to walk through setting up Service Bridge for Consumers on the consumer instance.

 

 

Add Service Bridge roles for consumers

 

Set up the users with the roles that will be required to configure and manage Service Bridge for Consumers.  Here are the common Service Bridge personas and the roles that enable their completion of common Service Bridge tasks:

Persona

Skills

Tasks

Roles

Administrator

           

·   Is a certified ServiceNow system administrator

  • Creates provider and connection records.
  • Installs the Service Bridge applications.
  • Creates and maintains transforms.
  • Activates published remote task definitions and remote record producers.
  • Troubleshoots Service Bridge transport payloads.

·   admin

·   sn_sb.admin

·   sn_transport.admin

Service Bridge Requestor

·   Is an IT administrator

  • Responsible for some form of IT service that is either completely or in part supported by one or more external vendors.
  • Requests and monitors the service requests that are placed with the external provider from their own instance.

·    itil

·    sn_sb.requestor

Consumer Requestor

·   End user

  • Makes requests from the Remote Catalog

·    sn_sb.requestor

 

In the Service Bridge for Consumers application, best practice is to assign roles by group rather than by the individual user so that work is minimized when a user’s job changes.  Groups are collections of users who need the same permissions and are a shortcut way of assigning roles to users.

 

Role required to assign roles: admin

 

  1. Navigate to All > User Administration > Groups.
  2. Click the group that you want to assign the role to.
  3. In the Roles related list, click Edit.
  4. Add the desired roles to the group.
  5. Click Save.

 

 

Register with a provider

 

See the previous community article Registering and Onboarding a New Service Bridge Consumer Connection for guidance on registration and onboarding.

 

 

Activate entitlements

 

Using consumer criteria associated with record producers and remote tasks, Service Bridge automatically generates entitlement records that are replicated to eligible consumer instances.  When a consumer registers with a provider, they will see the services that have been entitled to them as a related list under the provider connection.

To see the consumer entitlements after Service Bridge registration navigate to All > Service Bridge Consumer > Provider Connections and click on the connection Number in the list that corresponds to the new registration.

 

PhillipGodwin_3-1703167552211.png


Those entitlements preceded by a ⚠️ symbol must be reviewed and activated before they can be used.

Note that the catalog personas are automatically entitled based on the remote record producer entitlements with which they are associated.  They do not require activation.  Remote catalog items/record producers and remote task definitions do, however, need to be activated.

 

Activating remote record producers

 

To activate a remote record producer:

 

  1. Click on the Entity Reference of the record producer in the Entitlements related list to open the record. 

    PhillipGodwin_4-1703167594691.png

     



  2. Review the record producer details to ensure it meets expectations
  3. The Variables, Catalog UI Policies, Available For and Not Available For related lists are configured by Service Bridge and should not be changed.
  4. The Categories and Catalog related lists can be updated as required
  • Categories defines what Service Portal category the record producer will appear in.  By default, the Category is set to the name of the Service Bridge provider.
  • Catalog defines what Service Portal catalog the record producer will appear in.  By default, the Catalog is set to “Service Catalog”.
  1. Once the review is complete click on Activate and the record producer will be published to the consumer catalog

Activating remote task definitions

 

To activate a remote task definition:

 

  1. If viewing the provider connection, click on the Entity Reference of the remote task definition in the Entitlements related list to open the record. Otherwise navigate to All > Service Bridge Consumer > Remote Tasks and click the remote task definition that you want to activate.

    PhillipGodwin_6-1703167823444.png

  2. On the remote task definition form, review the Simple Trigger section on the form.
    When a simple trigger is set that matches a task record update, a remote task is automatically created for the task record.

    PhillipGodwin_7-1703167884714.png

  3. On the Inbound fields related tab, review the variables data.
    The provider defines these inbound fields. When a remote task is created, your provider receives the remote task data through these inbound fields. Field label, Sync when, and Target field fields may be modified on the consumer instance.
  4. On the Outbound fields related tab, review the variables data.
    The provider defines these outbound fields. When the provider responds to the remote task, remote task data is received through these outbound fields. The consumer can only modify the Source field on these records.
  5. On the Remote task variables related tab, review the variables data.
    The remote task variables are created from the inbound fields to be displayed on the remote tasks form.
  6. Click Activate.
  7. A pop-up window enables verification of the inbound and outbound mappings. Verify the mappings and click OK.

 

 

Add authorized users

 

By using the Authorized Users feature, specific users can be identified to manage the customer requests for the provider's services. Personas that have been defined by the provider can then be assigned to the authorized users so that access to remote catalog items can be controlled.

When the consumer registers with a Service Bridge provider, the active contacts on the customer's account in the provider's ServiceNow instance are automatically added to the Authorized Users table and synced with the customer's ServiceNow instance.  However, these pre-configured authorized users must be activated by the consumer.

 

Activating an authorized user

 

To activate an existing authorized user:

 

  1. Navigate to All > Service Bridge Consumer > Provider Connections.
  2. On the Provider Connections page, click the Number link to open a Provider Connection record.
  3. Click on the Authorized Users related list tab
  4. Click on the Active field for the user to open the authorized user record.

    PhillipGodwin_8-1703167955494.png

  5. Click on the lock icon beside Persona and choose the required persona(s) for the user.
  6. Click on Activate.

 

Creating a new authorized user

 

To create a new authorized user:

 

  1. Navigate to All > Service Bridge Consumer > Provider Connections.
  2. On the Provider Connections page, click the Number link to open a Provider Connection record.
  3. Select the Catalog Personas related list tab and verify the entitled personas from the provider.
  4. On the Authorized Users related list tab, click New.

    PhillipGodwin_9-1703168018515.png

     



  5. Fill in the forms on the field as required.

    Field

    Description

    Consumer user

    Name of the user. You can select the name from the user's list.

    Provider connection

    Name of the service provider. This field is auto filled.

    Persona

    Persona(s) that you want to add to the user.

  6. Click Submit

 

After submission the new authorized user is synched to the provider’s instance for approval.  Once approved the user will be visible in the Authorized Users list.

 

 

Create transforms

 

In most cases providers and their consumers will have different business processes and will track and manage those processes in different ways.  The Service Bridge transform framework provides a method for providers and consumers to transform data as required by their own process as it is passed back and forth over Service Bridge.

While using Service Bridge providers and consumers exchange remote task data through tables, forms, and fields. The transform framework capability allows data fields that have different value choices on the provider and customer’s instances to be translated/transformed as data is passed. PhillipGodwin_10-1703168329593.png Both the provider and the consumer can create transforms.

 

There are four types of transforms that are possible with the Service Bridge transform framework:

 

  • Simple transforms are used when the field to be transformed has a known and stable choice list on each instance. A simple transform example:  Customer State = “In Progress” in the provider instance and it is equivalent to Customer State = “Open” in the consumer instance.  A simple transform in Service Bridge will translate “In Progress” from the provider instance to “Open” on the consumer instance and vice versa.

  • Advanced script-based transforms are used then the transformation between the instances is more complex.  Here is an example of an advanced transform script that transforms the passing of CI data:

output.value=input.value;

output.label=input.label;

 

var ci=new GlideRecord('cmdb_ci');

 

if(direction=='inbound'){

   if(ci.get('correlation_id',input.value)){

      output.value=ci.sys_id+";

      output.label=ci.getDisplayValue();

      }

}

if (direction=='outbound'){

  if(ci.get(input.value)){

     if(ci.correlation_id){

        output.value=ci.correlation_id+";

        output.label=input.label;

       }

    }

}

 

  • Inbound transforms:  In the case where a field does not exist to receive data from the other instance, a virtual inbound field is used, and a script is required to create the inbound field and transform the incoming data as required.  Inbound transforms are run after a remote task is synced to the target instance to transform the data that is received. 

    PhillipGodwin_11-1703168461004.png

  • Outbound transforms:  In the case where a field does not exist to send data to the other instance, a virtual outbound field is used, and a script is required to create the outbound field and transform the outgoing data as required. Outbound transforms are run on creation or updating of a remote task on the source instance to transform the data that is being sent.

    PhillipGodwin_12-1703168477929.png

     



Role required to create a transform:  admin

 

The following steps describe the process for creating a transform for providers:

 

  1. Navigate to All > Service Bridge Consumer > Administration > Transforms.
  2. Click New
  3. Fill in the fields on the form as required.

    PhillipGodwin_13-1703168505854.png

    Here are the fields and related descriptions:

    Field

    Description

    Number

    Auto-generated number for the transform record.

    Company

    Consumer name that this transform will apply to

    All companies

    The All companies field eliminates the need to define a specific transformation for each customer account when they have similar requirements. When this field is selected, the definition is used to transform specific fields across all companies simultaneously.
    The global “All companies” transform is applied only to companies that match the configuration and that do not have a specific transform already defined.

    Type

    • Simple: Used when the field has a known and stable choice list on each instance. A related list of transform lines is created to match the inbound and outbound values.
    • Advanced: Used for complex criteria that requires a script to determine the new value.
    • Virtual Inbound: Used to transform a virtual inbound field. Requires a script to determine the new value.
    • Virtual Outbound: Used to transform a virtual outbound field. Requires a script to determine the new value.

    Inbound

    This option enables an inbound transformation for this transform

    Outbound

    This option enables an outbound transformation for this transform

    Provider table

    The provider's task table that contains the field to be transformed. For example, Case.

    Provider field

    The provider's field that is to be transformed. For example, State.

    Consumer table

    The provider's task table that contains the field to be transformed. For example, Incident.

    Consumer field

    The provider's field that is to be transformed. For example, State.

    Inbound field

    When Type field is set to Virtual Inbound, this field is available to reference the virtual field this transform should populate.

    Outbound field

    When Type field is set to Virtual Outbound, this field is available to reference the virtual field this transform should populate.

 

  1. Click Save
  2. Once saved the details of the transform must be entered.  Here is what is required for each of the 4 types of transformations:

    1. Simple:  When the transform type is Simple, a related list will be displayed after the Save.

      PhillipGodwin_14-1703168683183.png

      Choose New in the transform lines related list and fill in the fields on the form

      PhillipGodwin_15-1703168704987.png

      Here are the fields and related descriptions:

      Field

      Description

      Provider label

      The label of the provider’s field to be transformed.  For example, Open.

      Provider value

      The value of the provider’s field to be transformed. 

      Customer label

      The label of the consumer’s field to be transformed.  For example, Progress.

      Customer value

      The value of the consumers field to be transformed. 

    2. Advanced:  When the transform type is Advanced you will be prompted after the save to enter a script to define the outbound and inbound labels and values.  Here is an example

      PhillipGodwin_16-1703168988843.png

       

    3. Virtual Inbound:  When the transform type is Virtual Inbound you will be prompted after the save to enter a script to determine the inbound label and value.  Here is an example:

      PhillipGodwin_17-1703169007244.png

       



    4. Virtual Outbound:  When the transform type is Virtual Outbound you will be prompted after the save to enter a script to determine the inbound label and value.  Here is an example:

      PhillipGodwin_18-1703169037474.png

       

  3. Click Submit

  4. On the transform form, click Activate

    PhillipGodwin_19-1703169067455.png

     



 

Configure settings

 

As a consumer, you can configure and define default settings on your instance.

Role required to update consumer settings: admin

To review and update consumer settings:

  1. Navigate to All > Service Bridge Consumer > Provider Connections.
  2. On the Provider Connections page, click the Number link to open a Provider Connection record
  3. Click the Settings tab in the related links.
  4. Click the row value under Auto activate remote record producer to open the settings page
  5. In the Settings page, click the Remote Record Producers related link tab.
    • To automatically activate remote record producer entitlements when they are sent from the provider click the Auto activate remote record producer check box.
  6. Click the Remote Task Definitions related link tab.
    • To automatically activate remote task definition entitlements when they are sent from the provider click the Auto activate remote task definition check box.
  7. Click Update to save the new settings.

 

 PhillipGodwin_20-1703169125805.png You can view the settings defined in the Authorized User tab but cannot modify them on the consumer instance.

 

 

After completing Service Bridge for Consumers installation and configuration you are ready to begin using Service Bridge!

 

In the next article in the Service Bridge series, we will walk through how to use Service to accomplish your business objectives.  Stay tuned.

 

6 Comments
MikeWilsonNYC
Tera Contributor

Very helpful. Is installation of IDR no longer a prerequisite for service bridge consumers?

Phillip Godwin
ServiceNow Employee
ServiceNow Employee

Hi Mike -  With the new version of Service Bridge released in November, the Service Bridge transport was changed from IDR to Integration Hub Remote Process Sync (RPS).  With the RPS transport the registration/onboarding process is much quicker, and on premise instances can now connect via Service Bridge.

MikeWilsonNYC
Tera Contributor

Thank you @Phillip Godwin for the response and the helpful articles you've posted about this change.

kiran kumar m1
Tera Contributor

Hi @Phillip Godwin  I need some help regarding the new update in service bridge in the Washington release ,In the new release service bridge has provided two types of authentication types 

1.Service Bridge(AES)

2.KMF(AES)

 

when I am trying to establish a connection using  Service Bridge(AES) its not even generating the link , then I tried the second method .I was able to establish a connection but my remote task definition is not getting synced with the connection. I have created two inbound and outbound fields and set up consumer criteria in that I have mentioned account and used sold products table and published it still its not getting synced may i know why its happening like that .

Ryan Palamara
ServiceNow Employee
ServiceNow Employee

Hi @kiran kumar m1 Could you post your question in the Forum section?  It has a better format for questions and will be easier to track there. 

kiran kumar m1
Tera Contributor

ok sure