---
title: "SQL-135: Update policy team function"
summary: "Update policy team function"
status: draft
owner: Technical Writer
last_reviewed: 2026-07-31
library: SAIF.Business.Policy.Core
reference_type: package
---

# SQL-135: Update policy team function

Update policy team function in the context of `clsPolicyTeamFunction`.

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-135 |
| **Operation type** | Update |
| **Execution method** | IDataRequest.SQLStatement (CommandType.Text) |
| **Database** | Oracle |
| **Schema** | [unqualified]** |
| **Command type** | Text |
| **Business object** | `clsPolicyTeamFunction` |
| **Criteria property** | `UpdateSQL` |
| **Lifecycle method** | `BeforeUpdate / AfterUpdate` |

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:Code` | Input | bound from `Code` | 5 | Bound in `clsPolicyTeamFunction.BeforeUpdate` (line 352) |
| `:Description` | Input | bound from `Description` | 65 | Bound in `clsPolicyTeamFunction.BeforeUpdate` (line 353) |
| `:PreferredSortOrder` | Input | bound from `PreferredSortOrder` | - | Bound in `clsPolicyTeamFunction.BeforeUpdate` (line 354) |
| `:PMSFunctionCode` | Input | bound from `m_PMSFunctionCode` | 5 | Bound in `clsPolicyTeamFunction.BeforeUpdate` (line 350) |
| `:LocationSeqNum` | Input | bound from `m_LocationSeqNum` | - | Bound in `clsPolicyTeamFunction.BeforeUpdate` (line 351) |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [TEAM_FUNCTION_CODE](../database-tables.md#team_function_code) | UPDATE | See sample SQL |

## Sample SQL

```sql
UPDATE
  TEAM_FUNCTION_CODE
SET
  CODE = :Code,
  CODE_DESCR = :Description,
  SCREEN_ORDER = :PreferredSortOrder,
  PMS_FUNCTION_CODE = :PMSFunctionCode,
  LOC_SEQ_NUM = :LocationSeqNum
WHERE
  TEAM_FUNCTION_CODE.CODE = :Code
```

## Business rules
- [BR-033: New sequence values for writable entities are obtained](../business-rules.md#br-033-new-sequence-values-for-writable-entities-are-obtained)

> **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.Policy.Core\clsPolicyTeamFunction.vb`
