---
sourceDocument: Australia ServiceNow AI Platform Capabilities
sourceDocumentLink: https://www.servicenow.com/docs/r/servicenow-platform

 Release :

    - australia

ft:locale :

    - en-US

ft:publication_title :

    - Australia ServiceNow AI Platform Capabilities

ft:clusterId :

    - platcap

bundleId :

    - platcap

workflow :

    - Platform


---

# Add before and after scripts

# Add before and after scripts to an integration data source {#ariaid-title1}

* Release version: Australia
* 
* Updated March 12, 2026
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

Add custom before and after scripts for a data source of a CMDB integration application. Those scripts provide access to the input and output payloads of IRE. When a CMDB integration invokes Identification and Reconciliation
Engine (IRE), those scripts run before and after IRE processes the integration payload.

## Before you begin

Role required: cmdb_inst_admin

## Procedure

1. Navigate to AllConfigurationIntegrationHub ETL.  
   The landing page of the IntegrationHub ETL lists all integrations that exist
   in the system, including integrations that were downloaded from the
   ServiceNow Store.
2. Click the CMDB Application link for the integration that you want to add scripts for.
3. On the CMDB Integration Studio Application form, in the CMDB Integration Studio Application Data Sources related list, open the data source record for the CMDB integration.
4. On the CMDB Integration Studio Application Data Source form, check Execute Before Script or Execute After Script. Review the Before Script and After Script comments and enter your custom scripts at the bottom of the script field.  
   The comments in the script fields provide details for the before and after scripts. Use those guidelines, explanations such as what operations are supported, and examples when creating your custom script.
5. Click Update.
**Related concepts**   

* [Identification and Reconciliation Engine (IRE)](https://www.servicenow.com/docs/7cYVySk8Za0O29HjENzRlw "IRE is an underlying key component in Identification and Reconciliation, providing a centralized framework to perform identification and reconciliation processes across different data sources. IRE uses identification rules, reconciliation rules, and IRE data source rules when processing incoming data before inserting that data to the CMDB.")

*[\>]: and then


