---
id: object/codeunit/5057
type: object
title: Codeunit 5057 "VendCont-Update"
summary: Codeunit 5057 "VendCont-Update" in Base Application (Microsoft.CRM.BusinessRelation). 6 public procedures, 14 events. Present since at least BC23, still in BC30, changed in BC24, BC29.
tier: official
language: en
tags:
  - codeunit
  - base application
versions:
  introduced: null
  last_changed: "29"
  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: 4dbec05607bec4acb2c34b3f1459ffeca0d388db7ae57a2a5b0fa2a0bf81de4b
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/CRM/BusinessRelation/VendContUpdate.Codeunit.al
    title: src/Layers/W1/BaseApp/CRM/BusinessRelation/VendContUpdate.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes:
    - change/bcapps/10151
object_type: codeunit
object_id: 5057
name: VendCont-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:
  - "24"
  - "29"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 20
  events: 14
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 1
  calls: 1
  called_by: 6
  implements: 0
---

# Codeunit 5057 "VendCont-Update"

> Codeunit 5057 "VendCont-Update" in Base Application (Microsoft.CRM.BusinessRelation). 6 public procedures, 14 events. Present since at least BC23, still in BC30, changed in BC24, BC29.

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

## Properties

| Property | Value |
|---|---|
| Permissions | tabledata Contact = rimd, tabledata "Contact Business Relation" = r |

## Events published

- `OnAfterTransferFieldsFromVendToCont(var Contact: Record Contact; Vendor: Record Vendor)` (integration)
- `OnAfterOnModify(var Contact: Record Contact; var OldContact: Record Contact; var Vendor: Record Vendor)` (integration)
- `OnBeforeTransferFieldsFromVendToCont(var Contact: Record Contact; Vendor: Record Vendor; var SalespersonCode: Code[20])` (integration)
- `OnBeforeContactInsert(var Contact: Record Contact; Vendor: Record Vendor)` (integration)
- `OnBeforeInsertNewContact(var Vendor: Record Vendor; LocalCall: Boolean; var IsHandled: Boolean)` (integration)
- `OnBeforeOnDelete(Vendor: Record Vendor; var ContactBusinessRelation: Record "Contact Business Relation"; var IsHandled: Boolean)` (integration)
- `OnBeforeOnModify(Vend: Record Vendor; var ContactBusinessRelation: Record "Contact Business Relation"; var IsHandled: Boolean)` (integration)
- `OnBeforeOnInsert(var Vendor: Record Vendor; var IsHandled: Boolean)` (integration)
- `OnInsertNewContactPersonOnBeforeContactInsert(var Contact: Record Contact; Vendor: Record Vendor)` (integration)
- `OnInsertNewContactPersonOnBeforeContactModify(var Contact: Record Contact; Vendor: Record Vendor)` (integration)
- `OnInsertNewContactOnBeforeAssignNo(var Contact: Record Contact; var IsHandled: Boolean; Vendor: Record Vendor; MarketingSetup: Record "Marketing Setup"; LocalCall: Boolean)` (integration)
  - subscribers: [Codeunit 7237 "Master Data Mgt. Subscribers"](../codeunit/7237.md) OnInsertNewContactFromVendorOnBeforeAssignNo
- `OnInsertNewContactOnBeforeContBusRelInsert(var ContactBusinessRelation: Record "Contact Business Relation"; Contact: Record Contact; Vendor: Record Vendor)` (integration)
- `OnModifyOnBeforeAssignNo(var Contact: Record Contact; var IsHandled: Boolean)` (integration)
- `OnInsertNewContactOnAfterContactInsert(var Contact: Record "Contact"; var Vendor: Record "Vendor")` (integration)

## Procedures

- `OnInsert(var Vend: Record Vendor)`
- `OnModify(var Vend: Record Vendor)`
- `OnDelete(var Vend: Record Vendor)`
- `InsertNewContact(var Vend: Record Vendor; LocalCall: Boolean)`
- `InsertNewContactPerson(var Vend: Record Vendor; LocalCall: Boolean)`
- `ContactNameIsBlank(VendorNo: Code[20]): Boolean`

## Triggers

OnRun

## 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.

- [Page 456 "No. Series"](../page/456.md) (1 call: `InsertNewContact → (object)`)

## Called by

- [Table 23 "Vendor"](../table/23.md) (6 calls: `IsContactUpdateNeeded → ContactNameIsBlank`, `OnDelete → OnDelete`, `OnInsert → OnInsert`, …)
- [Codeunit 5342 "CRM Synch. Helper"](../codeunit/5342.md) (1 call: `UpdateContactOnModifyVendor → OnModify`)
- [Page 5136 "Vendor Link"](../page/5136.md) (1 call: `OnQueryClosePage → OnModify`)
- [Report 5194 "Create Conts. from Vendors"](../report/5194.md) (1 call: `InsertNewContactIfNeeded → InsertNewContactPerson`)
- [Table 249 "VAT Registration Log"](../table/249.md) (1 call: `OpenModifyDetails → OnModify`)
- [Table 5054 "Contact Business Relation"](../table/5054.md) (1 call: `FindOrRestoreContactBusinessRelation → OnInsert`)

## Recent changes

- 2026-08-13 [#10151 Fix vendor contact relation read permission](../../changes/bcapps/10151.md) (main, BC30, fix)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: BC24, BC29

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: "VendCont-Update")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
