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

# SQL-012: Insert COMPANY_NOTE for `clsCustomerNote`

This statement supports `clsCustomerNote` by executing a create operation against COMPANY_NOTE.

## Classification

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

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:NoteText` | Input | String | 4000 | Free-form note text |
| `:CustomerID` | Input | Decimal | N/A | Customer primary key |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [COMPANY_NOTE](../database-tables.md#company-note) | INSERT | COMPANY_SEQ_NUM, NOTE_TEXT |

## Sample SQL

```sql
Insert into COMPANY_NOTE ( COMPANY_SEQ_NUM, NOTE_TEXT ) Values ( :CustomerID, :NoteText)
```

## Operations and processes
- [Long-note persistence](../operations/long-note-persistence.md)

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

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