User Tools

Site Tools


servicenow_salesforce_casecomment

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
servicenow_salesforce_casecomment [2019/12/04 14:32]
vinhn [Transform Maps]
servicenow_salesforce_casecomment [2019/12/04 14:43] (current)
vinhn [Dynamic Share]
Line 128: Line 128:
 Be sure to include the "​before share script"​ provided below. This will defer comments that do not have a correlation id and will put it on stand by. Be sure to include the "​before share script"​ provided below. This will defer comments that do not have a correlation id and will put it on stand by.
 <​code>​ <​code>​
-if ((psp_action == '​update'​ || psp_action == '​insert'​) && ​current.correlation_id == ''​){+var gr = new GlideRecord("​incident"​);​ 
 +gr.addQuery("​sys_id",​ current.element_id);​ 
 +gr.query();​ 
 +gr.next();​ 
 + 
 +if ((psp_action == '​update'​ || psp_action == '​insert'​) && ​gr.correlation_id == ''​){
  psp_action = '​deferred';​  psp_action = '​deferred';​
 } }
 </​code>​ </​code>​
  
servicenow_salesforce_casecomment.txt · Last modified: 2019/12/04 14:43 by vinhn