Table maps handle how data being shared out of ServiceNow is processed. Your outbound table map for Cherwell is the Incident to Common Incident table map, which will require some field changes to ensure that data is mapped correctly when sent from ServiceNow to Cherwell.
Prerequisites
First, you will need to create a ServiceNow dynamic share for Cherwell.
You will also need to create a ServiceNow subscribed queue for Cherwell.
Procedure
To edit the outbound table map fields for Cherwell, follow these steps:
Access the Incident to Common Incident outbound table map
Log into your ServiceNow instance and navigate to Perspectium > Control and Configuration > Table Maps or simply type and then select Table Maps in the Filter Navigator on the upper left-hand side of the screen. Then, search for and then click into the Incident to Common Incident table map. You can easily search for this table map by typing Incident to Common Incident in the search window under the Name field.
Add scripts for additional table map fields
Using Step #3 as a guide, click into and then add Source Scripts for the table map fields per the information in the table shown below.
Table Map Target Field | Script to add |
---|---|
contact_type | switch(String(current.contact_type)) { |
customer_id | //This should be the Business Object Id of the user in Cherwell |
comments | if(current.comments.changes()) { |
category | // This field must be a valid field that exist in Cherwell. |
state | switch (Number(current.state)) { |
impact | switch(String(current.impact)) { |
urgency | switch(String(current.urgency)) { |
Next steps