ServiceNow Integration
There are several ways Avantra is able to integrate with ServiceNow IT Service Management. Synchronizations include:
-
You can forward Notifications to a ServiceNow instance in order to create incidents in there, as described in Define a ServiceNow Incident Output Channel.
-
You can push/insert records directly to the event [em_event] table in ServiceNow, as described in Define a ServiceNow Event API Output Channel.
-
You can synchronize servers from the ServiceNow IT Service Management into Avantra, as described in Synchronization of Servers.
-
You can synchronize information discovered by Avantra into ServiceNow, as described in Outbound synchronization.
All scenarios require authorization of Avantra with ServiceNow which is described in Authorizing Avantra with ServiceNow.
But first, you need to install the Avantra Integration from the ServiceNow Store:
Installing the Avantra Integration from the ServiceNow Store
You only need the Avantra Integration if you want to create incidents in ServiceNow. It is not required in order to synchronize Servers from ServiceNow or use the outbound synchronization. |
-
Open your preferred browser and proceed to the ServiceNow Store.
-
Search for Avantra and push the Get button.
-
Press Continue to confirm the notice.
-
You can choose to install the app on all instances or only on the selected instance. Set the flag next to I accept … and push Get.
-
In your ServiceNow instance, choose
and switch to the Downloads tab. Choose Avantra from the list and push the Install button. You probably must be a ServiceNow administrator to accomplish this task.
Authorizing Avantra with ServiceNow
We recommend using a dedicated (API-) User in your ServiceNow instance for the integration with Avantra, i.e. to create a new user with the flag Web service access only set. You probably must be a ServiceNow administrator to accomplish this task.
Perform the following steps in your ServiceNow instance:
-
Choose
and push the New button. -
Fill in at least a User ID, e.g.
avantra-api-user
, a Password, and set the flag Web service access only, if desired. Push Submit. -
Open the newly created user record and push the Edit … button on the Role tab at the bottom of the page.
-
Depending on what you plan to do, add the following roles:
-
To create incidents in ServiceNow, select the role
x_308038_syslink_x.imp_incident_user
i.e. typex_
into the Collection search box, choose the mentioned role, and push . We also recommend adding theitil
role to make the purpose of the user clear! -
To send events to ServiceNow, use the role
evt_mgmt_integration
. -
To synchronize servers from ServiceNow to Avantra, add the role
inventory_user
. -
To use the outbound synchronization add the role
itil
.
-
-
Push the Save button.
Perform the following steps in Avantra WebUI:
-
Open
and choose . -
Fill in a Name and select a Customer. Push the Create button.
-
Select the newly created entry and push Open.
-
Fill in your ServiceNow Instance Name, and for ServiceNow User and Passwords the values you created above.
-
Push the Save button.
Synchronization of Servers
In order to synchronize server from ServiceNow to Avantra, proceed as follows:
-
Open
. -
Choose
from the menu, chooseServiceNow
for External Service, fill in a Name, and push Create. -
Open the newly created record.
-
You may fill in a Description.
-
If you want to run the synchronization in the background periodically, you can set the flag Activate background synchronization and fill in an appropriate value for the time period.
Do not set this flag right from the beginning. Walk through this procedure, and after the initial synchronization was successful, set this flag. -
Select the ServiceNow Authentication you created in Authorizing Avantra with ServiceNow.
-
In Table Name fill in the ServiceNow table that contains your server records. This will most likely be
cmdb_ci_server
or one of its sub-tables. It corresponds to thetableName
shown in the ServiceNow REST API Explorer, see also the next step. -
Fill in a Query to restrict the selection of servers from ServiceNow. You may use the ServiceNow REST API Explorer to build your query, just click on the link ServiceNow REST API Explorer. Push Apply and use the Test Query button to verify your selection.
-
For System Type select
Server
. This is the only available selection currently. -
Choose a Default Customer and a Default System Role assigned to newly synchronized objects. These values will be used unless you create an attribute mapping overriding the values. See below.
-
In Additional Attribute Mapping, you may define how ServiceNow attributes are mapped to the Avantra fields
Customer
,System Role
,Description
,Notes
, andIP address
. -
You can also select if monitoring shall start immediately after synchronization with field Start Monitoring. Most likely, you will choose
No
here. -
Set the flag Create New Objects if you want to create a new object in Avantra if a new object is found in ServiceNow.
-
Set the flag Update Modified Objects if you want to modify an object in Avantra if the corresponding object was modified in ServiceNow.
-
Set the flag Delete Objects if you want to delete an object from Avantra that is no longer selected from ServiceNow. These can be objects that are deleted in ServiceNow, or that are no longer selected due to a modified Table Name or Query.
Use this option carefully! -
Push Apply and use the Sync button to start the synchronization.
Outbound synchronization
The outbound synchronization can enhance your ServiceNow CMDB with information discovered by Avantra. In addition to our existing CMDB integration, we now also offer integration with ServiceNow Service Graph Connector starting with Avantra 20.11.6 (see both procedures below). This synchronization will allow you to automatically sync detailed SAP configuration and change data with ServiceNow CMDB.
Procedure: Set up Service Graph Connector Synchronization (preferred option)
-
This outbound synchronization is based on CI of the cmdb_ci_sap_sid class, so make sure this class is installed in ServiceNow.
-
Install the Service Graph Connector from the ServiceNow Store by searching for Service Graph Connector for Avantra and clicking the Request App button (you will be prompted to log in with your ServiceNow ID).
-
Open the Service Graph Connector Guided Setup in ServiceNow and follow its instructions:
-
Create a user in ServiceNow with the
import_admin
role -
Create Cloud Authentication in Avantra (also described in Authorizing Avantra with ServiceNow)
-
After the Service Graph Connector is ready, you can configure the synchronization in Avantra.
-
Open
. -
Choose
from the menu, chooseServiceNow Service Graph
for External Service, fill in Name, and push Create. -
Open the newly created record.
-
You may fill in the Description field.
-
If you want to periodically run the synchronization in the background, you can set the flag Activate background synchronization and fill in an appropriate value for the time period.
-
Select the ServiceNow Authentication you created in Authorizing Avantra with ServiceNow.
-
Under Systems, select which SAP systems you want to synchronize. For example, you can choose systems of only one customer for the given synchronization, and then create another synchronization for another customer and sync it with a different ServiceNow instance. For this purpose, you can either select an existing system selection using Select a Pre-Defined System Selector or create a new one by choosing Define specific 'Ad-Hoc' Custom Selection and pushing the Create button. See Defining a System Selector for details.
-
Push the Sync button to start the synchronization.
First of all, you need to make your ServiceNow instance ready:
-
Setup the ServiceNow Discovery.
-
Run ServiceNow discovery, e.g. go to
and click on Quick Discovery. -
Make sure the discovery was successful.
-
Go to
and look for your discovery. -
The outbound synchronization is based on CI of the class cmdb_ci_sap_sid, so make sure this class is existing and all SAP systems are found by the ServiceNow Discovery.
-
-
Avantra will use its own CI classes in addition to the SAP-related CI classes already present in ServiceNow. You have to create these classes with the help of update sets provides by Avantra. The CI classes are:
-
ABAP Software Component (x_308038_syslink_x_u_cmdb_ci_sap_abap_software_component)
-
SAP Client (x_308038_syslink_x_u_cmdb_ci_sap_client)
-
SAP License (x_308038_syslink_x_u_cmdb_ci_sap_license)
-
SAP Namespace (x_308038_syslink_x_u_cmdb_ci_sap_namespace)
-
-
Download the ServiceNow update sets from: Avantra downloads
-
Import the update sets. Help can be found in the ServiceNow documentation.
After ServiceNow is ready, you can configure the synchronization in Avantra.
-
Open
. -
Choose
from the menu, chooseServiceNow
for External Service, fill in Name, and push Create. -
Open the newly created record.
-
You may fill in the Description field.
-
If you want to periodically run the synchronization in the background, you can set the flag Activate background synchronization and fill in an appropriate value for the time period.
Do not set this flag right from the beginning. Walk through this procedure, and after the initial synchronization was successful, set this flag. -
Select the ServiceNow Authentication you created in Authorizing Avantra with ServiceNow.
-
Push Apply and use the Sync button to start the synchronization.
After synchronizing with ServiceNow, you will find ABAP software components, SAP clients, SAP licenses, and SAP namespaces in your ServiceNow instance related to the SAP system discovered by ServiceNow.