Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


HTML
<style>
.release-box {
	height: 30px; 
	width: 100px; 
	padding-top: 8px;
	text-align: center; 
	border-radius: 5px; 
	font-weight: bold; 
	background-color: #8efeb3;  
	border-color: #FCE28A;
}

.release-box:hover {
  	cursor: hand;
    cursor: pointer;
    opacity: .9; 
}
</style>
<meta name="robots" content="noindex">

<div class="release-box">
<a href="https://docs.perspectium.com/display/krypton" style="text-decoration: none; color: #FFFFFF; display: block;">
Krypton
</a>
</div>



Before share scripts


A before share script in Perspectium DataSync Express allows the current record that is being bulk shared to be processed after it is loaded into a GlideRecord, but before it is encrypted and queued up to the Perspectium Integration Mesh. Before share scripts expect server side javascript and is preconfigured with a globally available variable called current that is the GlideRecord object that is going to be shared.

(info) NOTEBecause before share scripts are executed every time a record is shared, be aware of the processing delays introduced that will be multiplied when sharing multiple records at the same time. To cancel a bulk share in a before share script, see canceling a bulk share in a before share script.

After subscribe scripts


An After share script for bulk shares allows you to specify a script that will run after your bulk share has shared a record. This can be useful for when you run scripts in the before share script for your bulk share that you want to then cancel out after the bulk share has run.

Prerequisites


(warning) First First, you will need to  to get started with DataSync Express and create a bulk share.

Procedure

To create before/after share scripts, follow these steps:


UI Steps


UI Step
Access your bulk share

Create a new Bulk Share

Log into your sharing (source) ServiceNow instance and navigate to to Perspectium DataSync Express > DataSync Express > Shares > Bulk Share . Click into the bulk share that you want to create before/after share scripts for> Create New Bulk Share to create a new bulk share.


UI Step

Type your before/after share script

Click the Filter and Enrichment tab. Then, type your before share script or after share script in the associated scripting window.


UI Step

Click Update

Near the bottom left-hand corner of the form (just above Related Links), click Update to save the changes to your bulk share.