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

# SQL-011: Insert COMPANY_EMAIL for `clsCustomerEmailCollection`

This statement supports `clsCustomerEmailCollection` by executing a create operation against COMPANY_EMAIL.

## Classification

| Field | Value |
| --- | --- |
| SQL ID | SQL-011 |
| Operation type | Create |
| Execution method | Inline |
| Database | Oracle |
| Schema | `[unqualified]**` |
| Command type | Text |
| Business object | `clsCustomerEmailCollection` |
| Criteria property | InsertSQL |
| Lifecycle method | BeforeInsert |

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:CustomerID` | Input | Decimal | N/A | Customer primary key |
| `:EmailAddressID` | Input | Decimal | N/A | Email address primary key |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [COMPANY_EMAIL](../database-tables.md#company-email) | INSERT | COMPANY_SEQ_NUM, EMAIL_ADDRESS_SEQ_NUM |

## Sample SQL

```sql
Insert into COMPANY_Email ( COMPANY_SEQ_NUM, Email_Address_SEQ_NUM ) Values ( :CustomerID, :EmailAddressID)
```

## Operations and processes
- [Email info CRUD and linking](../operations/email-info-crud-and-linking.md)

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

## Sources
- `Business\SAIF.Business.CustomerContact\Customer\clsCustomerEmailCollection.vb`
