ServiceNow transform maps allow you to map data from an import set table (inbound data for ServiceNow) to fields in the appropriate ServiceNow tables. To ensure that data being shared out of Salesforce and into your ServiceNow instance is mapped to the proper fields, you will need to make some changes to the existing PSP Common Incident to Incident transform map in your ServiceNow instance that will be used as the hub for your multi-app ServiceBond integration.
Procedure
To modify the PSP Common Incident to Incident transform map in ServiceNow for your multi-app ServiceBond integration, follow these steps:
Access and rename the PSP Common Incident to Incident transform map
Log into your ServiceNow instance and navigate to Perspectium Common Documents > PSP Common Transform Maps. Click into the PSP Common Incident to Incident transform map and click Copy in the upper right-hand corner of the form to copy the transform map. Then, click into the copied table map and rename it to PSP Common Incident to Incident (Salesforce) and click Update to save your changes.
Access field maps
Make sure that the Run business rules box is checked. Then, scroll down to the Field Maps tab.
Add a source script to the sys_id field map
Within the list of field maps, locate and then click into the field map with a target field of sys_id. Then, add the following Source script:
answer = (function transformEntry(source) { |
Finally, click Update in the bottom left-hand corner of the form to save your changes.
Update transform scripts
Scroll down and click the Transform Scripts tab. Edit two transform scripts by clicking into them and using the updated scripts as follows (Be sure to click Update to save your changes to each transform script):
Script begins with | Updated script |
//comments | //comments - Prevent looping when comments are posted |
//deferred | //deferred - Reprocess messages that has not been e-bonded |
Add transform scripts
Create three new transform scripts by clicking New and adding the following specifications for each (Be sure to click Submit to save each new transform script):
When | Active checked? | Order | Script |
---|---|---|---|
onBefore | Yes | 90 | // Ignore apps other than Salesforce |
onAfter | Yes | 90 | // Update correlation IDs in the Correlation table |
onBefore | Yes | 105 | // Prevent duplication of comments |
Save the PSP Common Incident to Incident (Salesforce) transform map
Click Update in the top right-hand corner of the transform map form to save your changes to the PSP Common Incident to Incident (Salesforce) transform map.
Next steps
Modify the Common Incident to Incident for Jira transform map in ServiceNow (multi-app integration)
Similar topics
There is no content with the specified labels