---
title: "Before/after subscribe scripts for DataSync Express Subscribe"
canonical: "https://docs.perspectium.com/space/Lithium/2326969/Before%2Fafter%20subscribe%20scripts%20for%20DataSync%20Express%20Subscribe"
format: markdown
---
Before subscribe scripts A  Before subcsribe script  in Perspectium DataSync Express allows the current record that is being subscribed to be processed after it is loaded into a GlideRecord, but before it is saved into the target table in ServiceNow. Before subscribe 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 subscribed into the target table. After subscribe scripts An  After subscribe script  allows you to specify a script that will run after your subscribe has saved the record into the target table. This can be useful for when you want to do some additional processing after your subscribe has run.   NOTE :  Changing any values in a variable in the After subscribe script will not update and save the value (i.e. setting current.short_description = "test" will not actually update the short_description value in the target incident table) since the After subscribe script is used for reference or to do other actions. Prerequisites  First, you will need to  get started with DataSync Express . Procedure To create before/after subscribe scripts, follow these steps: