Page History
Anchor | ||||
---|---|---|---|---|
|
ServiceNow table
maps are used to map and/or transform outbound ServiceNow field data for the record being dynamic shared or bulk shared. If the field names of the record being shared out from ServiceNow need to be modified, or if the value of one or more fields needs to be transformed, you can create an outbound table map to modify the fields for your integration.
Panel | ||||||
---|---|---|---|---|---|---|
| ||||||
|
Go to Perspectium > Control and Configuration > Table Maps to access.
Table maps are typically used in Perspectium Service Gateway integrations. For more information about how to use a ServiceNow table map to transform data being shared out of your ServiceNow instance, see Service Gateway.
Outbound table maps
Outbound table maps are used to map and/or transform the outbound ServiceNow field data for the replicated records. You should use Outbound table maps if the field names of the replicated record from ServiceNow need to be modified, or if the value of one or more fields needs to be transformed. Once the Outbound table map is configured, it can be assigned to a dynamic share or bulk share share by selecting it in the Table Map field on corresponding forms. See Add a table map to your ServiceNow dynamic share/bulk share.
Outbound table maps are utilized and packaged per integration. See ServiceBond for all the different Perspectium supported applications that uses Outbound table maps.
Inbound Table MapsInbound table maps
Inbound table maps direct messages to an Import Set Table where a ServiceNow Transform Map will an import set table where a ServiceNow transform map will do the processing. These configurations are used to map inbound replication messages to a ServiceNow table based on the Topic and Type specified in the message. For example, a record coming in with the “topictopic=siam” and siam and the “typetype=common_incident” will incident will be mapped to the “uu_psp_common_incident” Import Set Table. The corresponding Transform Map will incident import set table. The corresponding transform map will then process the message appropriately.
Explore these features:
.
Create a ServiceNow table map
- In your ServiceNow instance, go to Perspectium > Control and Configuration > Table Maps.
- Click New.
- Select the table map direction (Outbound or Inbound) from the Direction dropdown. The fields available will change depending on whether you choose Outbound or Inbound.
- Complete the required fields:
- Enter a Name
- (For Outbound table maps only) Select the table you want to create table map for from the Source table dropdown
- (For Outbound table maps only) Enter the name of the target table in the Target Table Name field (e.g. incident)
- (For Inbound table maps only) Select the target table from the Target Table dropdown
- Click Submit.
Add a table map to your ServiceNow dynamic share
/or bulk share
ServiceNow table maps are typically used in Perspectium Service Gateway integrations to handle the mapping of fields in certain ServiceNow tables as data is shared out of your instance. You can include a table map as part of your ServiceNow dynamic share or bulk share to help with field mappings and data transformation.
Info | ||
---|---|---|
| ||
|
Prerequisites:
First, you will need to commit create- Commit a Perspectium update set containing table maps to your ServiceNow instance.
Instructions:
- In your sharing ServiceNow instance, go to Perspectium
- > Perspectium Core > Shares
- > Dynamic Share
- or Perspectium
- > Perspectium Core > Shares
- > Bulk Share.
- Click View Dynamic Shares or View Bulk Shares.
- From the available shares, click on the one that you want to add a table map for.
- In the Data Enrichment tab, click the search icon next to Table map.
- From the resulting list, select the table map you want to add.
- Click Update (top right
- )
title | Customize your target database schema using table maps |
---|
style | background: white |
---|
- .
- An existing schema that the replicated data need to fit in
- A need to rename the field names or transform the field values using script at the source
- The resulting field types need to be modified to a specific type or field length
Customizing target database schema is done by using table maps in your dynamic share or bulk share.
Prerequisites:
Instructions:
In your sharing ServiceNow instance, go to Perspectium > Control and Configuration > Table MapsSelect the table map you want to use, review the information in the fields, and check the Generate schema box
For the purposes of these instructions, we'll use the table Incident to Common Incident.
NOTES:
To share the table map output, you need to crate a dynamic share or bulk share and select the table map from step #1 in the table map field. The generated payload can be subscribed by an agent and the scheme created dynamically.
In this example, the common incident table map will result in the following table schema, if consumed by a database agent for MySQL.
Next, explore some optional configurations for ServiceNow table maps.
Code Block | ||||
---|---|---|---|---|
| ||||
mysql> describe common_incident;
+---------------------+--------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+---------------------+--------------+------+-----+---------+-------+
| state | mediumtext | YES | | NULL | |
| short_description | varchar(160) | YES | | NULL | |
| description | mediumtext | YES | | NULL | |
| priority | mediumtext | YES | | NULL | |
| attachments | mediumtext | YES | | NULL | |
| category | mediumtext | YES | | NULL | |
| correlation_id | varchar(100) | YES | | NULL | |
| number | varchar(40) | YES | | NULL | |
| correlation_display | varchar(100) | YES | | NULL | |
| caller_id | mediumtext | YES | | NULL | |
| caller_email | varchar(100) | YES | | NULL | |
| caller_full_name | mediumtext | YES | | NULL | |
| comments | mediumtext | YES | | NULL | |
| sys_id | varchar(224) | NO | PRI | | |
| work_notes | mediumtext | YES | | NULL | |
+---------------------+--------------+------+-----+---------+-------+
15 rows in set (0.00 sec) |
NOTE: Even though we specified the number field as the required Sys ID (GUID) field in the table map, the number field does not become the GUID. Instead, the sys_id field is created as GUID (PRI key) and contains number values to be used for lookup during updates/deletes. This is consistent with replicating database views.
title | Create a ServiceNow table map |
---|
style | background: white |
---|
Here's how:
In your ServiceNow instance, go to Perspectium > Control and Configuration > Table MapsClick New.
Select the table map direction (Outbound or Inbound) from the Direction dropdown. The fields available will change depending on whether you choose Outbound or Inbound.
Refer to ServiceNow table maps for more information on the difference between Outbound and Inbound table maps.
Complete the required fields:
title | Copy a ServiceNow table map |
---|
style | background: white |
---|
Existing table maps, as well as transform maps and all other related mappings, can be duplicated or copied. If you plan to modify any of the Common Table Maps, e.g. Incident to Common Incident, we recommend that you modify a new copied table map.
Here's how:
In your ServiceNow instance, go to Perspectium > Control and Configuration > Table MapsSelect the table map that you want to copy
Under the Related Links section at the bottom, click Copy table map
title | Use scripts to serialize records |
---|
style | background: white |
---|
Table maps can be configured to use scripts to serialize the record yourself. Within the script, you can set the variable answer to be the value you want the record to be serialized and returned as.
This is an advance configuration. Contact Perspectium Support for more information.
The following variables are available to use:
Instructions:
In your ServiceNow instance, go to Perspectium > Control and Configuration > Table MapsSelect the table map that you want to add a script to or create a new table map
Under the Mapping Script section, check the Use Script box
Fill the Script field with the appropriate script. See below for an example script.
Click Update.
title | Click for example of a table map script |
---|
style | background: white |
---|
language | js |
---|