---
id: object/codeunit/5056
type: object
title: Codeunit 5056 "CustCont-Update"
summary: Codeunit 5056 "CustCont-Update" in Base Application (Microsoft.CRM.BusinessRelation). 7 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: b684d8b5613b24ae42d6d031f0fe9b28d7eccea0d973ba6208410830b4491667
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/CRM/BusinessRelation/CustContUpdate.Codeunit.al
    title: src/Layers/W1/BaseApp/CRM/BusinessRelation/CustContUpdate.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: 5056
name: CustCont-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: 21
  events: 14
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 1
  calls: 1
  called_by: 7
  implements: 0
---

# Codeunit 5056 "CustCont-Update"

> Codeunit 5056 "CustCont-Update" in Base Application (Microsoft.CRM.BusinessRelation). 7 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/CustContUpdate.Codeunit.al) · facts from BC29

## Properties

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

## Events published

- `OnAfterOnModify(var Contact: Record Contact; var OldContact: Record Contact; var Customer: Record Customer)` (integration)
- `OnAfterTransferFieldsFromCustToCont(var Contact: Record Contact; Customer: Record Customer)` (integration)
- `OnBeforeContactInsert(var Contact: Record Contact; Customer: Record Customer)` (integration)
- `OnBeforeInsertNewContact(var Customer: Record Customer; LocalCall: Boolean; var IsHandled: Boolean)` (integration)
- `OnBeforeOnDelete(Customer: Record Customer; var ContactBusinessRelation: Record "Contact Business Relation"; var IsHandled: Boolean)` (integration)
- `OnBeforeOnInsert(var Customer: Record Customer; var IsHandled: Boolean)` (integration)
- `OnBeforeOnModify(Customer: Record Customer; var ContactBusinessRelation: Record "Contact Business Relation"; var IsHandled: Boolean)` (integration)
- `OnInsertNewContactOnAfterContInsert(var Contact: Record Contact; var Customer: Record Customer)` (integration)
- `OnInsertNewContactPersonOnAfterContactModify(var Contact: Record Contact; var Customer: Record Customer)` (integration)
- `OnInsertNewContactPersonOnBeforeValidateType(var Contact: Record Contact; Customer: Record Customer; ContComp: Record Contact)` (integration)
- `OnInsertNewContactPersonOnBeforeContactModify(var Contact: Record Contact; Customer: Record Customer)` (integration)
- `OnInsertNewContactOnBeforeContBusRelInsert(var ContactBusinessRelation: Record "Contact Business Relation"; Contact: Record Contact; Customer: Record Customer)` (integration)
- `OnInsertNewContactOnBeforeAssignNo(var Contact: Record Contact; var IsHandled: Boolean; Customer: Record Customer)` (integration)
  - subscribers: [Codeunit 7237 "Master Data Mgt. Subscribers"](../codeunit/7237.md) OnInsertNewContactFromCustomerOnBeforeAssignNo
- `OnModifyOnBeforeTransferFieldsFromCustToContact(var Contact: Record Contact; var Customer: Record Customer)` (integration)

## Procedures

- `OnInsert(var Cust: Record Customer)`
- `OnModify(var Cust: Record Customer)`
- `OnDelete(var Cust: Record Customer)`
- `InsertNewContact(var Cust: Record Customer; LocalCall: Boolean)`
- `InsertNewContactPerson(var Cust: Record Customer; LocalCall: Boolean)`
- `DeleteCustomerContacts(var Customer: Record Customer)`
- `ContactNameIsBlank(CustomerNo: 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 18 "Customer"](../table/18.md) (6 calls: `IsContactUpdateNeeded → ContactNameIsBlank`, `OnDelete → OnDelete`, `OnInsert → OnInsert`, …)
- [Codeunit 5342 "CRM Synch. Helper"](../codeunit/5342.md) (1 call: `UpdateContactOnModifyCustomer → OnModify`)
- [Codeunit 5900 "ServOrderManagement"](../codeunit/5900.md) (1 call: `CreateCustFromTemplate → InsertNewContactPerson`)
- [Page 5135 "Customer Link"](../page/5135.md) (1 call: `OnQueryClosePage → OnModify`)
- [Report 5195 "Create Conts. from Customers"](../report/5195.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: "CustCont-Update")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
