Procedure

To configure ServiceNow table maps for JSD, follow these steps:


Set up ServiceNow table maps for JSD

To view table maps navigate to Perspectium > Control and Configuration > Table Maps. 

In most cases you can use the default table maps for your respective process(es). For example, for incident the inbound table map would be Common Incident to PSP Common Incident, and the outbound table map would be Incident to Common Incident.

(info) NOTE: If these table maps are missing then you need to install the respective Perspectium Common Document update set.

(Optional) Configure mappings for your outbound table map

Configure any custom outbound mappings you need for your outbound table map.

You can selectively remove fields from JSD meshlet mappings (which will remove the field from the mapping body before being sent to JSD) by setting a flag value in your ServiceNow outbound table map. This is done by setting a value to JIRA_IGNORE_FLAG via a script if you want that field to be removed from the mapping body before being sent to JSD. This is useful if you want to conditionally include a value in your JSD meshlet mapping, since you can only have one meshlet mapping for each action.

For example, if you want to include the field state only if active is true, you could use a script on your mapping for state as such:

if (current.active === true) {
	answer = current.state;
} else {
	answer = "JIRA_IGNORE_FLAG";
}

(info) NOTE: In the JSD meshlet, if JIRA_IGNORE_FLAG is detected in a field value in a request being sent to JSD, that field is removed.