---
id: object/codeunit/7204
type: object
title: Codeunit 7204 "CDS Setup Defaults"
summary: Codeunit 7204 "CDS Setup Defaults" in Base Application (Microsoft.Integration.Dataverse). 22 public procedures, 16 events, 3 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: 15b15e45d242cc912ab9cbcae1fbedd70e206b0f2d6aec2ea860772d244ac2f8
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Integration/Dataverse/CDSSetupDefaults.Codeunit.al
    title: src/Layers/W1/BaseApp/Integration/Dataverse/CDSSetupDefaults.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: 7204
name: CDS Setup Defaults
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:
  - "28"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 53
  events: 16
  subscribers: 3
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 1
  calls: 5
  called_by: 5
  implements: 0
---

# Codeunit 7204 "CDS Setup Defaults"

> Codeunit 7204 "CDS Setup Defaults" in Base Application (Microsoft.Integration.Dataverse). 22 public procedures, 16 events, 3 event subscribers. Present since at least BC23, still in BC30, changed in BC28.

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

## Events published

- `OnAfterResetConfiguration(CDSConnectionSetup: Record "CDS Connection Setup")` (integration)
  - subscribers: [Codeunit 5369 "Manual Int Mapping Events"](../codeunit/5369.md) HandleOnAfterResetConfiguration
- `OnAfterResetSalesPeopleSystemUserMapping(IntegrationTableMappingName: Code[20])` (integration)
- `OnAfterResetCustomerAccountMapping(IntegrationTableMappingName: Code[20])` (integration)
- `OnAfterResetVendorAccountMapping(IntegrationTableMappingName: Code[20])` (integration)
- `OnAfterResetContactContactMapping(IntegrationTableMappingName: Code[20])` (integration)
- `OnBeforeResetConfiguration(var CDSConnectionSetup: Record "CDS Connection Setup"; var IsHandled: Boolean)` (integration)
- `OnBeforeResetContactContactMapping(var IntegrationTableMappingName: Code[20]; var ShouldRecreateJobQueueEntry: Boolean; var IsHandled: Boolean)` (integration)
- `OnBeforeResetCurrencyTransactionCurrencyMapping(var IntegrationTableMappingName: Code[20]; var ShouldRecreateJobQueueEntry: Boolean; var IsHandled: Boolean)` (integration)
- `OnBeforeResetCustomerAccountMapping(var IntegrationTableMappingName: Code[20]; var ShouldRecreateJobQueueEntry: Boolean; var IsHandled: Boolean)` (integration)
- `OnBeforeResetPaymentTermsMapping(var IntegrationTableMappingName: Code[20]; var IsHandled: Boolean)` (integration)
- `OnBeforeResetShipmentMethodMapping(var IntegrationTableMappingName: Code[20]; var IsHandled: Boolean)` (integration)
- `OnBeforeResetShippingAgentMapping(var IntegrationTableMappingName: Code[20]; var IsHandled: Boolean)` (integration)
- `OnBeforeResetSalesPeopleSystemUserMapping(var IntegrationTableMappingName: Code[20]; var ShouldRecreateJobQueueEntry: Boolean; var IsHandled: Boolean)` (integration)
- `OnBeforeResetVendorAccountMapping(var IntegrationTableMappingName: Code[20]; var ShouldRecreateJobQueueEntry: Boolean; var IsHandled: Boolean)` (integration)
- `OnCreateJobQueueEntryOnBeforeJobQueueEnqueue(var JobQueueEntry: Record "Job Queue Entry"; var IntegrationTableMapping: Record "Integration Table Mapping"; JobCodeunitId: Integer; JobDescription: Text)` (integration)
- `OnAfterAddExtraIntegrationFieldMappings(var CRMIntegrationManagement: Codeunit "CRM Integration Management"; var IntegrationTableMapping: Record "Integration Table Mapping")` (integration)

## Event subscriptions

- ReturnProxyTableNoOnGetCDSTableNo subscribes to Codeunit "CRM Setup Defaults" OnGetCDSTableNo
- AddProxyTablesOnAddEntityTableMapping subscribes to Codeunit "CRM Setup Defaults" OnAddEntityTableMapping
- HandleOnEnableIntegration subscribes to Codeunit "CDS Integration Mgt." OnEnableIntegration

## Procedures

- `ResetConfiguration(var CDSConnectionSetup: Record "CDS Connection Setup")`
- `ResetSalesPeopleSystemUserMapping(IntegrationTableMappingName: Code[20]; IsTeamOwnershipModel: Boolean; ShouldRecreateJobQueueEntry: Boolean)`
- `ResetCustomerAccountMapping(IntegrationTableMappingName: Code[20]; IsTeamOwnershipModel: Boolean; ShouldRecreateJobQueueEntry: Boolean)`
- `ResetVendorAccountMapping(IntegrationTableMappingName: Code[20]; IsTeamOwnershipModel: Boolean; ShouldRecreateJobQueueEntry: Boolean)`
- `ResetContactContactMapping(IntegrationTableMappingName: Code[20]; IsTeamOwnershipModel: Boolean; EnqueueJobQueEntry: Boolean)`
- `ResetCurrencyTransactionCurrencyMapping(IntegrationTableMappingName: Code[20]; EnqueueJobQueEntry: Boolean)`
- `ResetPaymentTermsMapping(IntegrationTableMappingName: Code[20])`
- `ResetShipmentMethodMapping(IntegrationTableMappingName: Code[20])`
- `ResetShippingAgentMapping(IntegrationTableMappingName: Code[20])`
- `CreateUncoupleJobQueueEntry(var IntegrationTableMapping: Record "Integration Table Mapping"): Boolean`
- `CreateCoupleJobQueueEntry(var IntegrationTableMapping: Record "Integration Table Mapping"): Boolean`
- `CreateJobQueueEntry(IntegrationTableMapping: Record "Integration Table Mapping"): Boolean`
- `CreateJobQueueEntry(IntegrationTableMapping: Record "Integration Table Mapping"; ServiceName: Text): Boolean` (internal)
- `RecreateJobQueueEntryFromIntTableMapping(IntegrationTableMapping: Record "Integration Table Mapping"; IntervalInMinutes: Integer; ShouldRecreateJobQueueEntry: Boolean; InactivityTimeoutPeriod: Integer; ServiceName: Text; IsOption: Boolean)` (internal)
- `GetDefaultDirection(NAVTableID: Integer): Integer`
- `GetPrioritizedMappingList(var NameValueBuffer: Record "Name/Value Buffer")`
- `RunCoupleSalespeoplePage()`
- `GetCustomerTableMappingName(): Text`
- `GetVendorTableMappingName(): Text`
- `ResetOptionMappingConfiguration()`
- `SetCustomIntegrationsTableMappings(CDSConnectionSetup: Record "CDS Connection Setup")`
- `AddExtraIntegrationFieldMappings()` (internal)

Plus 12 local procedures.

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

- [Codeunit 7200 "CDS Integration Mgt."](../codeunit/7200.md) (7 calls: `InsertIntegrationTableMapping → HasCompanyIdField`, `ResetConfiguration → ActivateConnection`, `ResetConfiguration → IsTeamOwnershipModelSelected`, …)
- [Codeunit 5344 "CRM Product Name"](../codeunit/5344.md) (3 calls: `CreateJobQueueEntry → CDSServiceName`, `RecreateJobQueueEntryFromIntTableMapping → CDSServiceName`, `RecreateOptionJobQueueEntryFromIntTableMapping → CDSServiceName`)
- [Codeunit 5330 "CRM Integration Management"](../codeunit/5330.md) (1 call: `AddExtraIntegrationFieldMappings → AddExtraFieldMappings`)
- [Codeunit 5332 "Lookup CRM Tables"](../codeunit/5332.md) (1 call: `RunCoupleSalespeoplePage → GetIntegrationTableFilter`)
- [Codeunit 5334 "CRM Setup Defaults"](../codeunit/5334.md) (1 call: `AddProxyTablesOnAddEntityTableMapping → AddEntityTableMapping`)

## Called by

- [Codeunit 5330 "CRM Integration Management"](../codeunit/5330.md) (11 calls: `EnqueueCouplingJob → CreateCoupleJobQueueEntry`, `EnqueueUncoupleJob → CreateUncoupleJobQueueEntry`, `ResetIntTableMappingDefaultConfiguration → ResetContactContactMapping`, …)
- [Codeunit 5334 "CRM Setup Defaults"](../codeunit/5334.md) (3 calls: `CreateJobQueueEntry → CreateJobQueueEntry`, `RecreateJobQueueEntryFromIntTableMapping → RecreateJobQueueEntryFromIntTableMapping`, `ResetConfiguration → AddExtraIntegrationFieldMappings`)
- [Codeunit 104000 "Upgrade - BaseApp"](../codeunit/104000.md) (2 calls: `UpgradeAddExtraIntegrationFieldMappings → AddExtraIntegrationFieldMappings`, `UpgradeOptionMapping → ResetOptionMappingConfiguration`)
- [Table 7200 "CDS Connection Setup"](../table/7200.md) (2 calls: `EnableIntegrationTables → ResetConfiguration`, `SynchronizeNow → GetPrioritizedMappingList`)
- [Page 5384 "CDS New Man. Int. Table Wizard"](../page/5384.md) (1 call: `StoreRecordVar → CreateJobQueueEntry`)

## 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: "CDS Setup Defaults")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
