---
title: "SQL-026: Pk82033_ThirdParty.thrdparty_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-026: Pk82033_ThirdParty.thrdparty_insert

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

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-026 |
| **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 |
| --- | --- | --- | --- | --- |
| `:AttorneyFirmSeqNum` | Input | Number | N/A | Source value `DbType.Int16` |
| `:AttorneyFirmSeqNum` | Input | Number | N/A | Source value `AttorneyFirmSeqNum` |
| `:CarrierClaimNum` | Input | Number | 50 | Source value `DbType.String` |
| `:CarrierClaimNum` | Input | Number | 50 | Source value `CarrierClaimNum` |
| `:CarrierFirmSeqNum` | Input | Number | N/A | Source value `DbType.Int16` |
| `:CarrierFirmSeqNum` | Input | Number | N/A | Source value `CarrierFirmSeqNum` |
| `:CarrierPolicyNum` | Input | Number | 50 | Source value `DbType.String` |
| `:CarrierPolicyNum` | Input | Number | 50 | Source value `CarrierPolicyNum` |
| `:CreateUser` | Input | Number | 30 | Source value `MyCriteria.DataPortalInfo.UserID` |
| `:DistrictAttorneyNum` | Input | Number | 20 | Source value `DbType.String` |
| `:DistrictAttorneyNum` | Input | Number | 20 | Source value `DistrictAttorneyNum` |
| `:IdentifierText` | Input | Number | 50 | Source value `DbType.String` |
| `:IdentifierText` | Input | Number | 50 | Source value `IdentifierText` |
| `:PersonSeqNum` | Input | Number | N/A | Source value `DbType.Int16` |
| `:PersonSeqNum` | Input | Number | N/A | Source value `PersonSeqNum` |
| `:ThrdpartyCaseSeqNum` | Input | Number | N/A | Source value `ThrdpartyCaseSeqNum` |
| `:ThrdpartyFirmSeqNum` | Input | Number | N/A | Source value `DbType.Int16` |
| `:ThrdpartyFirmSeqNum` | Input | Number | N/A | Source value `ThrdpartyFirmSeqNum` |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [dual](../database-tables.md#dual) | CREATE | See sample SQL. |
| [v_person_seq](../database-tables.md#v_person_seq) | CREATE | See sample SQL. |
| [PERSON_ADDRESS](../database-tables.md#person_address) | CREATE | See sample SQL. |
| [v_phone_seq](../database-tables.md#v_phone_seq) | CREATE | See sample SQL. |
| [PHONE](../database-tables.md#phone) | CREATE | See sample SQL. |
| [person_phone](../database-tables.md#person_phone) | CREATE | See sample SQL. |
| [v_fax_seq](../database-tables.md#v_fax_seq) | CREATE | See sample SQL. |

## Sample SQL

```sql
BEGIN Pk82033_ThirdParty.thrdparty_insert(:AttorneyFirmSeqNum, :AttorneyFirmSeqNum, :CarrierClaimNum, :CarrierClaimNum, :CarrierFirmSeqNum, :CarrierFirmSeqNum, :CarrierPolicyNum, :CarrierPolicyNum, :CreateUser, :DistrictAttorneyNum, :DistrictAttorneyNum, :IdentifierText, :IdentifierText, :PersonSeqNum, :PersonSeqNum, :ThrdpartyCaseSeqNum, :ThrdpartyFirmSeqNum, :ThrdpartyFirmSeqNum); 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\clsThrdparty.vb`
