---
id: object/codeunit/5055
type: object
title: Codeunit 5055 "CustVendBank-Update"
summary: Codeunit 5055 "CustVendBank-Update" in Base Application (Microsoft.CRM.BusinessRelation). 4 public procedures, 18 events, 4 event subscribers. Present since at least BC23, still in BC30, changed in BC26.
tier: official
language: en
tags:
  - codeunit
  - base application
versions:
  introduced: null
  last_changed: "26"
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-10-11T00:31:51.816Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: d1798aabfce5450e877a383095e3a8b14cc1fb5f90587eafbee5bfaa234d8834
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/CRM/BusinessRelation/CustVendBankUpdate.Codeunit.al
    title: src/Layers/W1/BaseApp/CRM/BusinessRelation/CustVendBankUpdate.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: codeunit
object_id: 5055
name: CustVendBank-Update
namespace: Microsoft.CRM.BusinessRelation
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "26"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 29
  events: 18
  subscribers: 4
relations:
  out: 1
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 1
  called_by: 6
  implements: 0
---

# Codeunit 5055 "CustVendBank-Update"

> Codeunit 5055 "CustVendBank-Update" in Base Application (Microsoft.CRM.BusinessRelation). 4 public procedures, 18 events, 4 event subscribers. Present since at least BC23, still in BC30, changed in BC26.

Base Application · Microsoft.CRM.BusinessRelation · BC23-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/CRM/BusinessRelation/CustVendBankUpdate.Codeunit.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| TableNo | Contact |
| Permissions | TableData "Bank Account" = rm, TableData Customer = rm, TableData Employee = rm, TableData Vendor = rm, tabledata "Contact Business Relation" = r |

## Events published

- `OnAfterUpdateCustomer(var Customer: Record Customer; Contact: Record Contact; var ContBusRel: Record "Contact Business Relation")` (integration)
- `OnAfterUpdateCustomerProcedure(var Customer: Record Customer; var Contact: Record Contact; var ContBusRel: Record "Contact Business Relation")` (integration)
- `OnAfterUpdateVendor(var Vendor: Record Vendor; Contact: Record Contact; var ContBusRel: Record "Contact Business Relation")` (integration)
- `OnAfterUpdateVendorProcedure(var Vendor: Record Vendor; var Contact: Record Contact; var ContBusRel: Record "Contact Business Relation")` (integration)
- `OnAfterUpdateBankAccount(var BankAccount: Record "Bank Account"; Contact: Record Contact; var ContBusRel: Record "Contact Business Relation")` (integration)
- `OnAfterUpdateBankAccountProcedure(var BankAccount: Record "Bank Account"; var Contact: Record Contact; var ContBusRel: Record "Contact Business Relation")` (integration)
- `OnBeforeBankAccountCopyFieldsFromCont(var BankAccount: Record "Bank Account"; var Contact: Record Contact; var IsHandled: Boolean)` (integration)
- `OnBeforeCustCopyFieldsFromCont(var Customer: Record Customer; var Contact: Record Contact; var IsHandled: Boolean)` (integration)
- `OnBeforeOnRun(var Contact: Record Contact; var IsHandled: Boolean)` (integration)
- `OnBeforeUpdateCustomer(var Customer: Record Customer; var Contact: Record Contact; var ContactBusinessRelation: Record "Contact Business Relation"; var IsHandled: Boolean)` (integration)
- `OnBeforeUpdateVendor(var Vendor: Record Vendor; var Contact: Record Contact; var ContactBusinessRelation: Record "Contact Business Relation"; var IsHandled: Boolean)` (integration)
- `OnBeforeUpdateBankAccount(var BankAccount: Record "Bank Account"; var Contact: Record Contact; var ContactBusinessRelation: Record "Contact Business Relation"; var IsHandled: Boolean)` (integration)
- `OnBeforeVendCopyFieldsFromCont(var Vendor: Record Vendor; var Contact: Record Contact; var IsHandled: Boolean)` (integration)
- `OnRunCustVendBankUpdateCaseElse(var Contact: Record Contact; var ContactBusinessRelation: Record "Contact Business Relation")` (integration)
- `OnAfterUpdateEmployee(var Employee: Record Employee; Contact: Record Contact)` (integration)
- `OnUpdateCustomerOnAfterGetCust(var Customer: Record Customer; var Contact: Record Contact; var ContBusRel: Record "Contact Business Relation")` (integration)
- `OnUpdateVendorOnAfterGetVend(var Vendor: Record Vendor; var Contact: Record Contact; var ContBusRel: Record "Contact Business Relation")` (integration)
- `OnBeforeUpdateEmployee(var Employee: Record Employee; var Contact: Record Contact; var ContactBusinessRelation: Record "Contact Business Relation"; var IsHandled: Boolean)` (integration)

## Event subscriptions

- OnAfterInsertContBusRelation subscribes to Table "Contact Business Relation" OnAfterInsertEvent
- OnAfterDeleteContBusRelation subscribes to Table "Contact Business Relation" OnAfterDeleteEvent
- OnAfterModifyContBusRelation subscribes to Table "Contact Business Relation" OnAfterModifyEvent
- OnAfterRenameContBusRelation subscribes to Table "Contact Business Relation" OnAfterRenameEvent

## Procedures

- `UpdateCustomer(var Cont: Record Contact; var ContBusRel: Record "Contact Business Relation")`
- `UpdateVendor(var Cont: Record Contact; var ContBusRel: Record "Contact Business Relation")`
- `UpdateBankAccount(var Cont: Record Contact; var ContBusRel: Record "Contact Business Relation")`
- `UpdateEmployee(Contact: Record Contact; ContBusRel: Record "Contact Business Relation")`

Plus 3 local procedures.

## Triggers

OnRun

## Relations

- runs on [Table 5050 "Contact"](../table/5050.md)

## Calls

From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an `Object::"Name"` argument. Interface dispatch and calls through events are not counted, so the list is not complete.

- [Codeunit 249 "VAT Registration Log Mgt."](../codeunit/249.md) (2 calls: `UpdateCustomer → LogCustomer`, `UpdateVendor → LogVendor`)

## Called by

- [Table 5050 "Contact"](../table/5050.md) (5 calls: `CreateBankAccount → UpdateBankAccount`, `CreateCustomerFromTemplate → UpdateCustomer`, `CreateEmployee → UpdateEmployee`, …)
- [Page 1348 "Employee Link"](../page/1348.md) (1 call: `OnQueryClosePage → UpdateEmployee`)
- [Page 5135 "Customer Link"](../page/5135.md) (1 call: `OnQueryClosePage → UpdateCustomer`)
- [Page 5136 "Vendor Link"](../page/5136.md) (1 call: `OnQueryClosePage → UpdateVendor`)
- [Page 5137 "Bank Account Link"](../page/5137.md) (1 call: `OnQueryClosePage → UpdateBankAccount`)
- [Table 249 "VAT Registration Log"](../table/249.md) (1 call: `OpenModifyDetails → (object)`)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: BC26

Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).

## Ask your agent

Procedure bodies are not stored here (D10). The call sections above are our own, per object, from the BC29 call graph. For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: `bcatlas_resolve_node(object_type: "codeunit", object_name: "CustVendBank-Update")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
