Your existing ServiceNow dynamic shares that are pointing to Salesforce will need to be modified slightly to handle the transfer of data among multiple apps. The Business Rule When, interactive only, filter conditions, and before/after share scripts will all need to be updated to enable a multi-app ServiceBond for ServiceNow integration.


Procedure

To modify your ServiceNow dynamic shares for Salesforce to enable a multi-app ServiceBond integration, follow these steps:


Access your ServiceNow dynamic shares for Salesforce

Log into your ServiceNow instance and navigate to PerspectiumReplicatorDynamic Shares. Then, click into the dynamic shares that you want to modify to enable your multi-app ServiceBond integration.

Configure business rule timing

Scroll down to the Trigger Conditions tab. Ensure that the Interactive only box is checked. Then, from the Business Rule When dropdown, choose after.

Create a filter condition

Click the Filter and Enrichment tab. In the Condition section, set a filter condition for Assignment groupisSalesforce.

Add before/after share scripts

Within the Filter and Enrichment tab, scroll down to the Before share script and After share script windows. Update the scripts as follows:

Before share script
var pspC = new PerspectiumCorrelation();
var targetValue = pspC.querySysId('u_value', current.sys_id, 'salesforce', current.getTableName());

var cgr =  pspC.getCorrelationId(current, 'salesforce');
if (cgr.u_correlation_id == '') {
if (targetValue == "")
psp_action = "insert";
else
psp_action = 'deferred';
}

Save your ServiceNow dynamic share for Salesforce

At the bottom left-hand corner of the dynamic share form, click Update to save your changes to each ServiceNow dynamic share for Salesforce that will be part of your multi-app ServiceBond integration.

Next steps


Modify your ServiceNow dynamic share for Jira