---
id: object/codeunit/1636
type: object
title: Codeunit 1636 "Office Contact Handler"
summary: Codeunit 1636 "Office Contact Handler" in Base Application (Microsoft.CRM.Outlook). 2 public procedures, 1 event subscribers. Present since at least BC23, still in BC30, changed in BC28.
tier: official
language: en
tags:
  - codeunit
  - base application
versions:
  introduced: null
  last_changed: "28"
  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: d3dad2838140f8eea91571a45d1578d4db06b2e8e2f32bd7094e5a5f541c3481
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/CRM/Outlook/OfficeContactHandler.Codeunit.al
    title: src/Layers/W1/BaseApp/CRM/Outlook/OfficeContactHandler.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: 1636
name: Office Contact Handler
namespace: Microsoft.CRM.Outlook
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "28"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 13
  events: 0
  subscribers: 1
relations:
  out: 1
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 10
  called_by: 0
  implements: 0
---

# Codeunit 1636 "Office Contact Handler"

> Codeunit 1636 "Office Contact Handler" in Base Application (Microsoft.CRM.Outlook). 2 public procedures, 1 event subscribers. Present since at least BC23, still in BC30, changed in BC28.

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

## Properties

| Property | Value |
|---|---|
| TableNo | Office Add-in Context |

## Event subscriptions

- OnContactSelected subscribes to Page "Contact List" OnClosePageEvent

## Procedures

- `ShowContactSelection(OfficeAddinContext: Record "Office Add-in Context")`
- `ShowCustomerVendor(TempOfficeAddinContext: Record "Office Add-in Context" temporary; Contact: Record Contact; AssociatedTable: Option; LinkNo: Code[20])`

Plus 10 local procedures.

## Triggers

OnRun

## Relations

- runs on [Table 1600 "Office Add-in Context"](../table/1600.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 1630 "Office Management"](../codeunit/1630.md) (5 calls: `ChangeCompanyAndShowContact → ChangeCompanyWithPrompt`, `OnContactSelected → AddRecipient`, `OnContactSelected → GetContext`, …)
- [Codeunit 1637 "Office Document Handler"](../codeunit/1637.md) (2 calls: `RedirectCustomer → HandleSalesCommand`, `RedirectVendor → HandlePurchaseCommand`)
- [Page 1604 "Office New Contact Dlg"](../page/1604.md) (2 calls: `ChangeCompanyAndShowContact → (object)`, `FindAndRedirectContact → (object)`)
- [Codeunit 1800 "Assisted Company Setup"](../codeunit/1800.md) (1 call: `FindAndRedirectContact → GetAllowedCompaniesForCurrentUser`)
- [Page 1625 "Office Contact Associations"](../page/1625.md) (1 call: `FindAndRedirectContact → (object)`)
- [Page 1627 "Office No Customer Dlg"](../page/1627.md) (1 call: `ShowCustomerVendor → (object)`)
- [Page 1628 "Office No Vendor Dlg"](../page/1628.md) (1 call: `ShowCustomerVendor → (object)`)
- [Page 21 "Customer Card"](../page/21.md) (1 call: `RedirectCustomer → (object)`)
- [Page 26 "Vendor Card"](../page/26.md) (1 call: `RedirectVendor → (object)`)
- [Page 5050 "Contact Card"](../page/5050.md) (1 call: `ShowCustomerVendor → (object)`)

## Across versions

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

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