---
title: "Codeunit 5337 CDS Int. Table Uncouple, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/5337-cds-int-table-uncouple/points/
object: https://jonas-paprotka.de/ref/codeunit/5337-cds-int-table-uncouple/
app: "Base Application"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/5337-cds-int-table-uncouple/source/
checked: 2026-11-20
changed: 2026-10-05
subject: "Microsoft Dynamics 365 Business Central"
license: "Metadata from Microsoft's symbol packages. AL source MIT, Copyright (c) Microsoft Corporation. Selection and wording © 2026 JOP-AL. https://jonas-paprotka.de/licenses/"
---

# Codeunit 5337 CDS Int. Table Uncouple, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/5337-cds-int-table-uncouple/points/

7 procedures and triggers with a step in src/Layers/W1/BaseApp/Integration/Dataverse/CDSIntTableUncouple.Codeunit.al, in source order, read from the text, not from a run.

## OnRun

[Line 14](https://jonas-paprotka.de/ref/codeunit/5337-cds-int-table-uncouple/source/#L14), trigger.

- [19](https://jonas-paprotka.de/ref/codeunit/5337-cds-int-table-uncouple/source/#L19) raises `OnBeforeRun`
- [23](https://jonas-paprotka.de/ref/codeunit/5337-cds-int-table-uncouple/source/#L23) calls [Codeunit 5340 CRM Integration Table Synch.](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/) `InitConnection`
- [24](https://jonas-paprotka.de/ref/codeunit/5337-cds-int-table-uncouple/source/#L24) calls [Codeunit 5340 CRM Integration Table Synch.](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/) `TestConnection`
- [26](https://jonas-paprotka.de/ref/codeunit/5337-cds-int-table-uncouple/source/#L26) calls `PerformScheduledUncoupling`
- [28](https://jonas-paprotka.de/ref/codeunit/5337-cds-int-table-uncouple/source/#L28) calls [Codeunit 5340 CRM Integration Table Synch.](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/) `CloseConnection`

## PerformScheduledUncoupling

[Line 35](https://jonas-paprotka.de/ref/codeunit/5337-cds-int-table-uncouple/source/#L35), local.

- [40](https://jonas-paprotka.de/ref/codeunit/5337-cds-int-table-uncouple/source/#L40) calls [Codeunit 5335 Integration Table Synch.](https://jonas-paprotka.de/ref/codeunit/5335-integration-table-synch/) `BeginIntegrationUncoupleJob`
- [42](https://jonas-paprotka.de/ref/codeunit/5337-cds-int-table-uncouple/source/#L42) calls `UncoupleRecords`
- [43](https://jonas-paprotka.de/ref/codeunit/5337-cds-int-table-uncouple/source/#L43) calls [Codeunit 5335 Integration Table Synch.](https://jonas-paprotka.de/ref/codeunit/5335-integration-table-synch/) `EndIntegrationSynchJob`

## UncoupleRecords

[Line 47](https://jonas-paprotka.de/ref/codeunit/5337-cds-int-table-uncouple/source/#L47), local.

- [54](https://jonas-paprotka.de/ref/codeunit/5337-cds-int-table-uncouple/source/#L54) calls [Codeunit 5340 CRM Integration Table Synch.](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/) `CreateCRMIntegrationRecordClone`
- [57](https://jonas-paprotka.de/ref/codeunit/5337-cds-int-table-uncouple/source/#L57) calls [Table 5335 Integration Table Mapping](https://jonas-paprotka.de/ref/table/5335-integration-table-mapping/) `GetTableFilter`
- [58](https://jonas-paprotka.de/ref/codeunit/5337-cds-int-table-uncouple/source/#L58) calls [Table 5335 Integration Table Mapping](https://jonas-paprotka.de/ref/table/5335-integration-table-mapping/) `GetIntegrationTableFilter`
- [62](https://jonas-paprotka.de/ref/codeunit/5337-cds-int-table-uncouple/source/#L62) calls `UncoupleAllCoupledRecords`
- [63](https://jonas-paprotka.de/ref/codeunit/5337-cds-int-table-uncouple/source/#L63) calls `ResetStuckCompanyId`
- [71](https://jonas-paprotka.de/ref/codeunit/5337-cds-int-table-uncouple/source/#L71) calls `UncoupleFilteredLocalRecords`
- [73](https://jonas-paprotka.de/ref/codeunit/5337-cds-int-table-uncouple/source/#L73) calls `UncoupleFilteredIntegrationRecords`

## UncoupleFilteredLocalRecords

[Line 76](https://jonas-paprotka.de/ref/codeunit/5337-cds-int-table-uncouple/source/#L76), local.

- [82](https://jonas-paprotka.de/ref/codeunit/5337-cds-int-table-uncouple/source/#L82) calls [Table 5335 Integration Table Mapping](https://jonas-paprotka.de/ref/table/5335-integration-table-mapping/) `SetRecordRefFilter`
- [85](https://jonas-paprotka.de/ref/codeunit/5337-cds-int-table-uncouple/source/#L85) calls [Table 5331 CRM Integration Record](https://jonas-paprotka.de/ref/table/5331-crm-integration-record/) `IsIntegrationIdCoupled`
- [87](https://jonas-paprotka.de/ref/codeunit/5337-cds-int-table-uncouple/source/#L87) calls [Codeunit 5335 Integration Table Synch.](https://jonas-paprotka.de/ref/codeunit/5335-integration-table-synch/) `Uncouple`

## UncoupleFilteredIntegrationRecords

[Line 92](https://jonas-paprotka.de/ref/codeunit/5337-cds-int-table-uncouple/source/#L92), local.

- [98](https://jonas-paprotka.de/ref/codeunit/5337-cds-int-table-uncouple/source/#L98) calls [Table 5335 Integration Table Mapping](https://jonas-paprotka.de/ref/table/5335-integration-table-mapping/) `SetIntRecordRefFilter`
- [101](https://jonas-paprotka.de/ref/codeunit/5337-cds-int-table-uncouple/source/#L101) calls [Table 5331 CRM Integration Record](https://jonas-paprotka.de/ref/table/5331-crm-integration-record/) `IsCRMRecordRefCoupled`
- [102](https://jonas-paprotka.de/ref/codeunit/5337-cds-int-table-uncouple/source/#L102) writes [Table 5331 CRM Integration Record](https://jonas-paprotka.de/ref/table/5331-crm-integration-record/) Delete
- [104](https://jonas-paprotka.de/ref/codeunit/5337-cds-int-table-uncouple/source/#L104) calls [Codeunit 5335 Integration Table Synch.](https://jonas-paprotka.de/ref/codeunit/5335-integration-table-synch/) `Uncouple`

## UncoupleAllCoupledRecords

[Line 109](https://jonas-paprotka.de/ref/codeunit/5337-cds-int-table-uncouple/source/#L109), local.

- [128](https://jonas-paprotka.de/ref/codeunit/5337-cds-int-table-uncouple/source/#L128) calls [Table 5335 Integration Table Mapping](https://jonas-paprotka.de/ref/table/5335-integration-table-mapping/) `GetRecordRef`
- [131](https://jonas-paprotka.de/ref/codeunit/5337-cds-int-table-uncouple/source/#L131) calls [Codeunit 5335 Integration Table Synch.](https://jonas-paprotka.de/ref/codeunit/5335-integration-table-synch/) `Uncouple`
- [134](https://jonas-paprotka.de/ref/codeunit/5337-cds-int-table-uncouple/source/#L134) writes [Table 5331 CRM Integration Record](https://jonas-paprotka.de/ref/table/5331-crm-integration-record/) Delete

## ResetStuckCompanyId

[Line 139](https://jonas-paprotka.de/ref/codeunit/5337-cds-int-table-uncouple/source/#L139), local.

- [151](https://jonas-paprotka.de/ref/codeunit/5337-cds-int-table-uncouple/source/#L151) calls [Codeunit 7201 CDS Integration Impl.](https://jonas-paprotka.de/ref/codeunit/7201-cds-integration-impl/) `HasCompanyIdField`
- [163](https://jonas-paprotka.de/ref/codeunit/5337-cds-int-table-uncouple/source/#L163) calls [Codeunit 7201 CDS Integration Impl.](https://jonas-paprotka.de/ref/codeunit/7201-cds-integration-impl/) `FindCompanyIdField`
- [166](https://jonas-paprotka.de/ref/codeunit/5337-cds-int-table-uncouple/source/#L166) calls [Codeunit 7201 CDS Integration Impl.](https://jonas-paprotka.de/ref/codeunit/7201-cds-integration-impl/) `TryGetCDSCompany`
- [169](https://jonas-paprotka.de/ref/codeunit/5337-cds-int-table-uncouple/source/#L169) calls [Codeunit 5336 Integration Record Synch.](https://jonas-paprotka.de/ref/codeunit/5336-integration-record-synch/) `SplitIntegrationTableFilter`
- [175](https://jonas-paprotka.de/ref/codeunit/5337-cds-int-table-uncouple/source/#L175) calls [Codeunit 7201 CDS Integration Impl.](https://jonas-paprotka.de/ref/codeunit/7201-cds-integration-impl/) `ResetCompanyId`
- [178](https://jonas-paprotka.de/ref/codeunit/5337-cds-int-table-uncouple/source/#L178) calls [Codeunit 5335 Integration Table Synch.](https://jonas-paprotka.de/ref/codeunit/5335-integration-table-synch/) `LogSynchError`
- [180](https://jonas-paprotka.de/ref/codeunit/5337-cds-int-table-uncouple/source/#L180) calls [Codeunit 5335 Integration Table Synch.](https://jonas-paprotka.de/ref/codeunit/5335-integration-table-synch/) `IncrementSynchJobCounters`

## Source

AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at 4303e5e584d3aa5d9e98cbc615525a5396ad6ed7.

JOP-AL, 2026-11-20.
