---
title: "Before/after share scripts for DataSync Express"
canonical: "https://docs.perspectium.com/space/Lithium/2326939/Before%2Fafter%20share%20scripts%20for%20DataSync%20Express"
format: markdown
---
Before share script and Before bulk share script A  B efore 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 the   GlideRecord   object that is going to be shared. A  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  First, you will need  to  get started with DataSync Express . Procedure To create before/after share scripts, follow these steps: