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#828995;  
	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/kryptonLithium" style="text-decoration: none; color: #FFFFFF; display: block;">
KryptonLithium
</a>
</div>



Before share script and Before bulk share script


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. The Before share script is preconfigured with a globally available variable called current that is theGlideRecordobject that is going to be shared.

Before bulk share script is a script executed at the beginning of the bulk share, before it starts sharing any records.

After subscribe script


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, you will need to get started with DataSync Express.

Procedure

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


UI Steps


UI Step

Create a new Bulk Share

Log into your sharing ServiceNow instance and navigate to Perspectium DataSync Express > DataSync Express > Shares > Bulk Share > Create New Bulk Share to create a new bulk share.


UI Step

Type your before/after share script

If you are only using a Before share script, you can access it in the Basic Configurations section in the Simple view of the dynamic share form.

For the Before share script, Before bulk share script and After share script options, go to the Standard view (available under Related Links) of the bulk share configuration form if not already. Click the Scripting tab. 

Then, type your script in the associated scripting window. All scripting expect server side javascript.


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.