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

# Codeunit 5332 "Lookup CRM Tables"

> Codeunit 5332 "Lookup CRM Tables" in Base Application (Microsoft.Integration.Dataverse). 4 public procedures, 2 events. Present since at least BC23, still in BC30.

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

## Events published

- `OnLookupCRMTables(CRMTableID: Integer; NAVTableId: Integer; SavedCRMId: Guid; var CRMId: Guid; IntTableFilter: Text; var Handled: Boolean)` (integration)
  - subscribers: [Codeunit 6275 "Sust. Lookup CRM Tables"](../codeunit/6275.md) HandleOnLookupCRMTables, [Codeunit 6612 "FS Lookup FS Tables"](../codeunit/6612.md) HandleOnLookupCRMTables
- `OnLookupCRMOption(CRMTableID: Integer; NAVTableId: Integer; SavedCRMOptionId: Integer; var CRMOptionId: Integer; var CRMOptionCode: Text[250]; IntTableFilter: Text; var Handled: Boolean)` (integration)

## Procedures

- `Lookup(CRMTableID: Integer; NAVTableId: Integer; SavedCRMId: Guid; var CRMId: Guid): Boolean`
- `LookupOptions(CRMTableID: Integer; NAVTableId: Integer; SavedCRMOptionId: Integer; var CRMOptionId: Integer; var CRMOptionCode: Text[250]): Boolean`
- `GetIntegrationTableFilter(CRMTableId: Integer; NAVTableId: Integer): Text`
- `GetIntegrationTableMappingView(TableId: Integer): Text`

Plus 14 local procedures.

## Triggers

OnRun

## Called by

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 7208 "CDS Full Synch. Review"](../page/7208.md) (3 calls: `OpenCRMAccountListPage → GetIntegrationTableMappingView`, `OpenCRMContactListPage → GetIntegrationTableMappingView`, `OpenCRMTransactionCurrenciesListPage → GetIntegrationTableMappingView`)
- [Table 5332 "Coupling Record Buffer"](../table/5332.md) (2 calls: `LookUpCRMName → Lookup`, `LookUpCRMName → LookupOptions`)
- [Table 5373 "CRM Full Synch. Review Line"](../table/5373.md) (2 calls: `GetCurrencyInitialSynchRecommendation → GetIntegrationTableMappingView`, `GetInitialSynchRecommendation → GetIntegrationTableMappingView`)
- [Codeunit 7204 "CDS Setup Defaults"](../codeunit/7204.md) (1 call: `RunCoupleSalespeoplePage → GetIntegrationTableFilter`)
- [Page 5341 "CRM Account List"](../page/5341.md) (1 call: `OnOpenPage → GetIntegrationTableMappingView`)
- [Page 5342 "CRM Contact List"](../page/5342.md) (1 call: `OnOpenPage → GetIntegrationTableMappingView`)
- [Page 5343 "CRM Opportunity List"](../page/5343.md) (1 call: `OnOpenPage → GetIntegrationTableMappingView`)
- [Page 5345 "CRM TransactionCurrency List"](../page/5345.md) (1 call: `OnOpenPage → GetIntegrationTableMappingView`)
- [Page 5348 "CRM Product List"](../page/5348.md) (1 call: `OnOpenPage → GetIntegrationTableMappingView`)
- [Page 5353 "CRM Sales Order List"](../page/5353.md) (1 call: `OnOpenPage → GetIntegrationTableMappingView`)
- [Page 5362 "CRM UnitGroup List"](../page/5362.md) (1 call: `OnOpenPage → GetIntegrationTableMappingView`)
- [Page 5364 "CRM Unit List"](../page/5364.md) (1 call: `OnOpenPage → GetIntegrationTableMappingView`)
- [Page 6290 "Sust. Assessment List"](../page/6290.md) (1 call: `OnOpenPage → GetIntegrationTableMappingView`)
- [Page 6291 "Sust. Assessment Req. List"](../page/6291.md) (1 call: `OnOpenPage → GetIntegrationTableMappingView`)
- [Page 6292 "Sust. ESG Fact List"](../page/6292.md) (1 call: `OnOpenPage → GetIntegrationTableMappingView`)
- [Page 6293 "Sust. ESG Unit List"](../page/6293.md) (1 call: `OnOpenPage → GetIntegrationTableMappingView`)
- [Page 6294 "Sust. Standard List"](../page/6294.md) (1 call: `OnOpenPage → GetIntegrationTableMappingView`)
- [Page 6340 "Sust. Range Period List"](../page/6340.md) (1 call: `OnOpenPage → GetIntegrationTableMappingView`)
- [Page 6341 "Sust. Std. Requirement List"](../page/6341.md) (1 call: `OnOpenPage → GetIntegrationTableMappingView`)
- [Page 6342 "Sust. Concept List"](../page/6342.md) (1 call: `OnOpenPage → GetIntegrationTableMappingView`)
- [Page 6343 "Sust. Requirement Concept List"](../page/6343.md) (1 call: `OnOpenPage → GetIntegrationTableMappingView`)
- [Page 6610 "FS Bookable Resource List"](../page/6610.md) (1 call: `OnOpenPage → GetIntegrationTableMappingView`)
- [Page 6611 "FS Customer Asset List"](../page/6611.md) (1 call: `OnOpenPage → GetIntegrationTableMappingView`)
- [Page 6615 "FS Work Order Types"](../page/6615.md) (1 call: `OnOpenPage → GetIntegrationTableMappingView`)
- [Page 6616 "FS Work Orders"](../page/6616.md) (1 call: `OnOpenPage → GetIntegrationTableMappingView`)

## Across versions

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

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