---
title: "Codeunit 5365 CDS Int. Option Couple, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/5365-cds-int-option-couple/points/
object: https://jonas-paprotka.de/ref/codeunit/5365-cds-int-option-couple/
app: "Base Application"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/5365-cds-int-option-couple/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 5365 CDS Int. Option Couple, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/5365-cds-int-option-couple/points/

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

## OnRun

[Line 14](https://jonas-paprotka.de/ref/codeunit/5365-cds-int-option-couple/source/#L14), trigger.

- [19](https://jonas-paprotka.de/ref/codeunit/5365-cds-int-option-couple/source/#L19) raises `OnBeforeRun`
- [23](https://jonas-paprotka.de/ref/codeunit/5365-cds-int-option-couple/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/5365-cds-int-option-couple/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/5365-cds-int-option-couple/source/#L26) calls `PerformScheduledCoupling`
- [28](https://jonas-paprotka.de/ref/codeunit/5365-cds-int-option-couple/source/#L28) calls [Codeunit 5340 CRM Integration Table Synch.](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/) `CloseConnection`

## PerformScheduledCoupling

[Line 49](https://jonas-paprotka.de/ref/codeunit/5365-cds-int-option-couple/source/#L49), internal.

- [55](https://jonas-paprotka.de/ref/codeunit/5365-cds-int-option-couple/source/#L55) calls [Codeunit 5335 Integration Table Synch.](https://jonas-paprotka.de/ref/codeunit/5335-integration-table-synch/) `BeginIntegrationCoupleJob`
- [60](https://jonas-paprotka.de/ref/codeunit/5365-cds-int-option-couple/source/#L60) calls [Table 5373 CRM Full Synch. Review Line](https://jonas-paprotka.de/ref/table/5373-crm-full-synch-review-line/) `FullSynchStarted`
- [62](https://jonas-paprotka.de/ref/codeunit/5365-cds-int-option-couple/source/#L62) calls `CoupleRecords`
- [63](https://jonas-paprotka.de/ref/codeunit/5365-cds-int-option-couple/source/#L63) calls [Codeunit 5335 Integration Table Synch.](https://jonas-paprotka.de/ref/codeunit/5335-integration-table-synch/) `EndIntegrationSynchJob`
- [65](https://jonas-paprotka.de/ref/codeunit/5365-cds-int-option-couple/source/#L65) calls [Table 5373 CRM Full Synch. Review Line](https://jonas-paprotka.de/ref/table/5373-crm-full-synch-review-line/) `FullSynchFinished`

## CoupleRecords

[Line 69](https://jonas-paprotka.de/ref/codeunit/5365-cds-int-option-couple/source/#L69), local.

- [105](https://jonas-paprotka.de/ref/codeunit/5365-cds-int-option-couple/source/#L105) writes [Table 5336 Integration Field Mapping](https://jonas-paprotka.de/ref/table/5336-integration-field-mapping/) Insert
- [110](https://jonas-paprotka.de/ref/codeunit/5365-cds-int-option-couple/source/#L110) calls `GetMappingNameWithParent`
- [111](https://jonas-paprotka.de/ref/codeunit/5365-cds-int-option-couple/source/#L111) calls [Codeunit 5335 Integration Table Synch.](https://jonas-paprotka.de/ref/codeunit/5335-integration-table-synch/) `LogMatchBasedCouplingError`
- [111](https://jonas-paprotka.de/ref/codeunit/5365-cds-int-option-couple/source/#L111) calls `GetMappingNameWithParent`
- [122](https://jonas-paprotka.de/ref/codeunit/5365-cds-int-option-couple/source/#L122) calls [Codeunit 5336 Integration Record Synch.](https://jonas-paprotka.de/ref/codeunit/5336-integration-record-synch/) `SplitLocalTableFilter`
- [138](https://jonas-paprotka.de/ref/codeunit/5365-cds-int-option-couple/source/#L138) calls [Codeunit 5340 CRM Integration Table Synch.](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/) `LoadCRMOption`
- [154](https://jonas-paprotka.de/ref/codeunit/5365-cds-int-option-couple/source/#L154) raises `OnBeforeSetMatchingFilter`
- [182](https://jonas-paprotka.de/ref/codeunit/5365-cds-int-option-couple/source/#L182) calls `GetNoMatchFoundTelemetryErrorMessage`
- [189](https://jonas-paprotka.de/ref/codeunit/5365-cds-int-option-couple/source/#L189) calls [Table 5334 CRM Option Mapping](https://jonas-paprotka.de/ref/table/5334-crm-option-mapping/) `IsCRMRecordRefMapped`
- [190](https://jonas-paprotka.de/ref/codeunit/5365-cds-int-option-couple/source/#L190) calls `GetSingleMatchAlreadyCoupledTelemetryErrorMessage`
- [194](https://jonas-paprotka.de/ref/codeunit/5365-cds-int-option-couple/source/#L194) calls [Codeunit 5335 Integration Table Synch.](https://jonas-paprotka.de/ref/codeunit/5335-integration-table-synch/) `CoupleOption`
- [198](https://jonas-paprotka.de/ref/codeunit/5365-cds-int-option-couple/source/#L198) calls [Table 5334 CRM Option Mapping](https://jonas-paprotka.de/ref/table/5334-crm-option-mapping/) `GetRecordRefOptionId`
- [202](https://jonas-paprotka.de/ref/codeunit/5365-cds-int-option-couple/source/#L202) calls `GetMultipleMatchesFoundTelemetryErrorMessage`
- [221](https://jonas-paprotka.de/ref/codeunit/5365-cds-int-option-couple/source/#L221) calls [Codeunit 5330 CRM Integration Management](https://jonas-paprotka.de/ref/codeunit/5330-crm-integration-management/) `CreateNewOptionsInCRM`
- [223](https://jonas-paprotka.de/ref/codeunit/5365-cds-int-option-couple/source/#L223) calls [Codeunit 5335 Integration Table Synch.](https://jonas-paprotka.de/ref/codeunit/5335-integration-table-synch/) `UpdateSynchJobCounters`
- [224](https://jonas-paprotka.de/ref/codeunit/5365-cds-int-option-couple/source/#L224) calls [Codeunit 5335 Integration Table Synch.](https://jonas-paprotka.de/ref/codeunit/5335-integration-table-synch/) `LogSynchError`
- [224](https://jonas-paprotka.de/ref/codeunit/5365-cds-int-option-couple/source/#L224) calls `GetNoMatchFoundErrorMessage`
- [229](https://jonas-paprotka.de/ref/codeunit/5365-cds-int-option-couple/source/#L229) calls `SynchronizeCoupledRecords`
- [231](https://jonas-paprotka.de/ref/codeunit/5365-cds-int-option-couple/source/#L231) calls `GetMappingNameWithParent`

## SynchronizeCoupledRecords

[Line 234](https://jonas-paprotka.de/ref/codeunit/5365-cds-int-option-couple/source/#L234), local.

- [239](https://jonas-paprotka.de/ref/codeunit/5365-cds-int-option-couple/source/#L239) calls `GetMappingNameWithParent`
- [243](https://jonas-paprotka.de/ref/codeunit/5365-cds-int-option-couple/source/#L243) calls `GetMappingNameWithParent`
- [246](https://jonas-paprotka.de/ref/codeunit/5365-cds-int-option-couple/source/#L246) calls [Codeunit 5330 CRM Integration Management](https://jonas-paprotka.de/ref/codeunit/5330-crm-integration-management/) `EnqueueOptionSyncJobFromIntegrationTable`
- [248](https://jonas-paprotka.de/ref/codeunit/5365-cds-int-option-couple/source/#L248) calls [Codeunit 5330 CRM Integration Management](https://jonas-paprotka.de/ref/codeunit/5330-crm-integration-management/) `EnqueueOptionSyncJobToIntegrationTable`

## GetNoMatchFoundErrorMessage

[Line 251](https://jonas-paprotka.de/ref/codeunit/5365-cds-int-option-couple/source/#L251), local.

- [253](https://jonas-paprotka.de/ref/codeunit/5365-cds-int-option-couple/source/#L253) calls `GetDataverseOrgURL`

## GetNoMatchFoundTelemetryErrorMessage

[Line 256](https://jonas-paprotka.de/ref/codeunit/5365-cds-int-option-couple/source/#L256), local.

- [260](https://jonas-paprotka.de/ref/codeunit/5365-cds-int-option-couple/source/#L260) calls `GetMatchingFieldNameList`
- [261](https://jonas-paprotka.de/ref/codeunit/5365-cds-int-option-couple/source/#L261) calls `GetDataverseOrgURL`

## GetMultipleMatchesFoundTelemetryErrorMessage

[Line 264](https://jonas-paprotka.de/ref/codeunit/5365-cds-int-option-couple/source/#L264), local.

- [268](https://jonas-paprotka.de/ref/codeunit/5365-cds-int-option-couple/source/#L268) calls `GetMatchingFieldNameList`
- [269](https://jonas-paprotka.de/ref/codeunit/5365-cds-int-option-couple/source/#L269) calls `GetDataverseOrgURL`

## GetSingleMatchAlreadyCoupledTelemetryErrorMessage

[Line 272](https://jonas-paprotka.de/ref/codeunit/5365-cds-int-option-couple/source/#L272), local.

- [276](https://jonas-paprotka.de/ref/codeunit/5365-cds-int-option-couple/source/#L276) calls `GetMatchingFieldNameList`
- [277](https://jonas-paprotka.de/ref/codeunit/5365-cds-int-option-couple/source/#L277) calls `GetDataverseOrgURL`

## GetDataverseOrgURL

[Line 298](https://jonas-paprotka.de/ref/codeunit/5365-cds-int-option-couple/source/#L298), local.

- [306](https://jonas-paprotka.de/ref/codeunit/5365-cds-int-option-couple/source/#L306) calls [Table 5330 CRM Connection Setup](https://jonas-paprotka.de/ref/table/5330-crm-connection-setup/) `IsEnabled`

## Source

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

JOP-AL, 2026-11-20.
