User Tools

Site Tools


before_share_script

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
before_share_script [2018/03/29 15:27]
robyn.lin
before_share_script [2018/05/02 16:45]
ryan.page [psp_key]
Line 44: Line 44:
 ===== previous ===== ===== previous =====
 <wrap info>​v3.31.0</​wrap>​\\ <wrap info>​v3.31.0</​wrap>​\\
-To access the previous record in a Dynamic Share (ie, a record before it has been modified), use the global variable ​previous” in the Before Share script. ​ For example, the following script will log the value of the previous record’s short description:​+To access the previous record in a Dynamic Share (ie, a record before it has been modified), use the global variable ​//previous// in the Before Share script. ​ For example, the following script will log the value of the previous record’s short description:​
  
 <code javascript>​ <code javascript>​
Line 63: Line 63:
 In addition, the information above only applies to Dynamic Shares; the data shared in a Bulk Share is historical and will not have been modified. In addition, the information above only applies to Dynamic Shares; the data shared in a Bulk Share is historical and will not have been modified.
 </​WRAP>​ </​WRAP>​
 +===== psp_key =====
 +<wrap info>​Carbon</​wrap>​\\
 +To access the key value of the outbound message, you can change the psp_key global dynamically.
 +
 +To enabled this functionality,​ turn off com.perspectium.validate_mismatch_key in your Perspectium properties.
 +
 +<code javascript>​
 +// run on before share
 +psp_key = "​custom_client";​
 +</​code>​
before_share_script.txt · Last modified: 2018/05/15 00:13 by paul