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

# SQL-019: Insert CUSTOMER_AGENT for `mdlCustomerContact`

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

## Classification

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

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:CustomerID` | Input | Decimal | N/A | Customer primary key |
| `:ContactID` | Input | Decimal | N/A | Contact primary key |
| `:AgentID` | Input | Decimal | N/A | Agent number |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [CUSTOMER_AGENT](../database-tables.md#customer-agent) | INSERT | AGENT_NUM, COMPANY_SEQ_NUM, PERSON_SEQ_NUM |

## Sample SQL

```sql
INSERT INTO CUSTOMER_AGENT (COMPANY_SEQ_NUM, PERSON_SEQ_NUM, AGENT_NUM) VALUES (:CustomerID, :ContactID, :AgentID)
```

## Operations and processes
- [Agency, agent, and provider customer resolution](../operations/agency-agent-provider-resolution.md)

## Business rules
- [BR-008: Generated agency, agent, and provider records can be forced inactive](../business-rules.md#br-008-generated-agency-agent-and-provider-records-can-be-forced-inactive)

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

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