---
title: "Before/after share scripts for DataSync Express Dynamic Shares"
canonical: "https://docs.perspectium.com/space/Lithium/2326883/Before%2Fafter%20share%20scripts%20for%20DataSync%20Express%20Dynamic%20Shares"
format: markdown
---
Before share scripts A  Before share script  in Perspectium DataSync Express allows the current record that is being 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.   NOTE :  Because 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. After share scripts An  After share script  allows you to specify a script that will run after your dynamic share has shared a record. This can be useful for when you want to do some additional processing after your dynamic share has run. Prerequisites  First, you will need to  get started with DataSync Express . Procedure To create before/after share scripts, follow these steps: