---
title: "SQL-028: Pk82033_ThirdParty.thrdparty_note_insert"
summary: Create operation used by `Criteria`.
status: draft
owner: SAIF
last_reviewed: 2026-07-28
library: SAIF.Business.Claim.ThirdParty
reference_type: package
---

# SQL-028: Pk82033_ThirdParty.thrdparty_note_insert

This SQL artifact supports ``Criteria`` by executing a create operation through StoredProc.

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-028 |
| **Operation type** | Create |
| **Execution method** | StoredProc |
| **Database** | Oracle |
| **Schema** | [unqualified]** |
| **Command type** | StoredProcedure |
| **Business object** | ``Criteria`` |
| **Criteria property** | ``insertsql`` |
| **Lifecycle method** | ``Criteria create`` |

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:NoteSeqNum` | Input | Number | N/A | Source value `NoteSeqNum` |
| `:CaseSeqNum` | Input | Number | N/A | Source value `CaseSeqNum` |
| `:NoteText` | Input | String | 4000 | Source value `NoteText` |
| `:NoteCode` | Input | String | 5 | Source value `NoteCode` |
| `:CreateUser` | Input | Number | 30 | Source value `MyCriteria.DataPortalInfo.UserID` |
| `:CreateDate` | Input | Date | N/A | Source value `CreateDate` |
| `:RowsAffected` | ReturnValue | Return value | N/A | Source value `RowsAffected` |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [THRDPARTY_EXPENSE](../database-tables.md#thrdparty_expense) | CREATE | See sample SQL. |
| [THRDPARTY_CASE](../database-tables.md#thrdparty_case) | CREATE | See sample SQL. |
| [thrdparty_note](../database-tables.md#thrdparty_note) | CREATE | See sample SQL. |

## Sample SQL

```sql
BEGIN Pk82033_ThirdParty.thrdparty_note_insert(:NoteSeqNum, :CaseSeqNum, :NoteText, :NoteCode, :CreateUser, :CreateDate, :RowsAffected); END;
-- Stored procedure body retrieved from Oracle package WCIS_DBA.Pk82033_ThirdParty.
```

> **Note:** Statements marked with * were inferred from code structure, naming conventions, or
> contextual evidence where direct confirmation was not available in source artifacts. Statements
> marked with ** could not be confirmed; treat as unknown until verified.

## Sources
- `Business\SAIF.Business.Claim.ThirdParty\clsThirdpartyNote.vb`
