Add before and after scripts to an integration data source
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
-
Navigate to All > Configuration > IntegrationHub 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.
-
Click the CMDB Application link for the integration that you want to add scripts for.
-
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.
-
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.
-
Click Update.
Related topics
---
title: Add before and after scripts to an integration data source
description: 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.
locale: en-US
canonical_url: https://www.servicenow.com/docs/r/servicenow-platform/integration-hub-etl/add-scripts-integration-datasource.html
release: brazil
product: Integration Hub ETL
classification: integration-hub-etl
topic_type: task
last_updated: "2026-09-10"
reading_time_minutes: 1
breadcrumb: [IntegrationHub ETL, Integrating third-party data into CMDB, Configuration Management, Extend ServiceNow AI Platform capabilities]
---
# Add before and after scripts to an integration data source
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 **All** > **Configuration** > **IntegrationHub 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 topics**
[Identification and Reconciliation Engine \(IRE\)](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/servicenow-platform/configuration-management-database-cmdb/ire.md)
| title | Add before and after scripts to an integration data source |
| description | 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. |
| locale | en-US |
| canonical_url | https://www.servicenow.com/docs/r/servicenow-platform/integration-hub-etl/add-scripts-integration-datasource.html |
| release | brazil |
| product | Integration Hub ETL |
| classification | integration-hub-etl |
| topic_type | task |
| last_updated | 2026-09-10 |
| reading_time_minutes | 1 |
| breadcrumb | IntegrationHub ETLIntegrating third-party data into CMDBConfiguration ManagementExtend ServiceNow AI Platform capabilities |