---
title: "Bond Salesforce with another app (non-Legacy)"
canonical: "https://docs.perspectium.com/space/Krypton/721046/Bond%20Salesforce%20with%20another%20app%20(non-Legacy)"
format: markdown
---
Once you have successfully   set up Replicator for Salesforce , you'll likely want to bond it with ServiceNow or another ITSM application. Replicator for Salesforce uses   queues  and  shares  to transfer data between Salesforce and another app, such as ServiceNow. This page outlines the queues and shares that you need to configure in order to successfully bond Salesforce with ServiceNow and begin sharing data.  Please note, the following instructions are for integration with ServiceNow.   For integration with another app,   contact Perspectium Support This page offers instructions on the   non- Legacy   integration between Salesforce and ServiceNow.   Find legacy instructions,   here Prerequisites First, you need to   install 3 Perspectium update sets to your ServiceNow instance   in the following  order : Perspectium for ServiceNow update set Perspectium Common Endport update set Perspectium Common Document update sets (Common Incident, Common Change, Common Problem, Common Request) You can request download links for these update sets by contacting   Perspectium Support . Create a subscribed queue Go to  Perspectium > DataSync > Subscribed Queues   or simply type   Subscribed Queues   to access the subscribed queues form Click  New Populate the fields as follows: For  Queue type , select  Custom For  Queue name , type  psp.out.servicenow. <salesforce_org> . <your_company_here> , e.g., psp.out.servicenow.na59.Perspectium Checkmark the  Active  box to activate your queue Click  Submit  to save your newly created queue. ↑ Go to top of page Create a shared queue Go to  Perspectium > DataSync > Shared Queues   or simply type   Shared Queues   to access the shared queues form Click  New Populate the fields as follows: For  Queue type , select  SIAM For  Queue name , type  salesforce Checkmark the  Active  box to activate your queue. Continue to fill in the rest of the required fields Click  Submit  to save your newly created queue ↑ Go to top of page Create a dynamic share Go to  Perspectium > DataSync > Dynamic Share  or  simply type  Dynamic Share  to access the dynamic share form Click  New Select   Business Rule  or  Flow Designer  as your dynamic share type and  Submit . Find more information on the dynamic share types  here . In the Table dropdown, select  Incident Checkmark the  Active  box to activate your dynamic share In the  Trigger Conditions  tab, checkmark  Create  and/or  Update S elect the  Additional Settings   tab. In the  Table map  field, select  Incident to Common Incident . Then, as the  Target queue , select  psp.in.siam.client.salesforce Select the   Filter and Enrichment  t ab. In the  Before share script , type in the following: if (psp_action == 'update' && current.correlation_id == ''){
    psp_action = 'deferred';
} Click  Submit . ↑ Go to top of page Edit transform map Go to  Perspectium Common Documents > PSP Common Transform Maps  or simply type   PSP Common Transform Maps. Select  PSP Common Incident to Incident In the  Transform Scripts  tab, click  New . In the  When  dropdown, select  onAfter  and enter the following in the  Script  field:  //acknowledge
(function runTransformScript(source, map, log, target /*undefined onStart*/ ) {

if(source.u_action != "incident_created" && (source.u_number != "" || source.u_sys_id != "")){
return;
}

var qgr = new GlideRecord("u_psp_queues");
var queue = "";
qgr.addQuery("u_name", "psp.in.siam.client.salesforce");
qgr.query();
if (!qgr.next()){
return;
}

queue = qgr.sys_id;
var qc = new GlideRecord("psp_replicate_conf");
qc.addQuery("table_name", "incident");
qc.addQuery("u_target_queue", qgr.sys_id);
qc.query();
if (!qc.next()){
return;
}

var gr = new GlideRecord("incident");
gr.addQuery("sys_id", target.sys_id);
gr.query();
if (gr.next()){
var pspR = new PerspectiumReplicator();
pspR.shareRecord(gr, "incident", "update", qc.sys_id, "cipher=3,SIAM_provider=salesforce");
}
})(source, map, log, target);

 ↑ Go to top of page