---
title: "SQL-025: Insert CUSTOMER_SOURCE for `mdlCustomerContact`"
summary: Insert statement for `mdlCustomerContact` against CUSTOMER_SOURCE.
status: draft
owner: SAIF
last_reviewed: 2026-07-24
library: SAIF.Business.CustomerContact
reference_type: package
---

# SQL-025: Insert CUSTOMER_SOURCE for `mdlCustomerContact`

This statement supports `mdlCustomerContact` by executing a create operation against CUSTOMER_SOURCE.

## Classification

| Field | Value |
| --- | --- |
| SQL ID | SQL-025 |
| Operation type | Create |
| Execution method | Inline via SqlHelper.DataQuery |
| Database | Oracle |
| Schema | `[unqualified]**` |
| Command type | Text |
| Business object | `mdlCustomerContact` |
| Criteria property | GetCustomerIDForRTW |
| Lifecycle method | GetCustomerIDForRTW |

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:CustomerID` | Input | Decimal | N/A | Customer primary key |
| `:RTWLoadCode` | Input | String | 5 | RTW load code |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [CUSTOMER_SOURCE](../database-tables.md#customer-source) | INSERT | COMPANY_CODE, COMPANY_SEQ_NUM, SOURCE_SYSTEM_ID |

## Sample SQL

```sql
INSERT INTO CUSTOMER_SOURCE (COMPANY_SEQ_NUM, COMPANY_CODE, SOURCE_SYSTEM_ID) VALUES (:CustomerID, 'RTW', :RTWLoadCode)
```

## Operations and processes
- [External identifier resolution](../operations/external-identifier-resolution.md)

> **Note:** Statements marked with `**` could not be confirmed; treat as unknown until verified.

## Sources
- `Business\SAIF.Business.CustomerContact\mdlCustomerContact.vb`
