---
title: "Codeunit 5340 CRM Integration Table Synch., extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/points/
object: https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/
app: "Base Application"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/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 5340 CRM Integration Table Synch., extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/points/

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

## OnRun

[Line 20](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L20), trigger.

- [30](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L30) raises `OnBeforeRun`, IsHandled
- [34](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L34) calls `InitConnection`
- [35](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L35) calls `TestConnection`
- [38](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L38) calls `SynchOption`
- [42](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L42) calls `PerformScheduledSynchToIntegrationTable`
- [44](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L44) calls `PerformScheduledSynchFromIntegrationTable`
- [49](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L49) calls `LocalUpdateTableMappingModifiedOn`
- [54](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L54) calls `CloseConnection`

## InitConnection

[Line 79](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L79), internal.

- [85](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L85) calls [Codeunit 5330 CRM Integration Management](https://jonas-paprotka.de/ref/codeunit/5330-crm-integration-management/) `OnInitCDSConnection`
- [91](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L91) calls [Codeunit 5344 CRM Product Name](https://jonas-paprotka.de/ref/codeunit/5344-crm-product-name/) `FULL`
- [95](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L95) calls [Table 5330 CRM Connection Setup](https://jonas-paprotka.de/ref/table/5330-crm-connection-setup/) `RegisterConnectionWithName`
- [96](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L96) calls `ClearCache`

## GetIntegrationUserId

[Line 99](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L99), local.

- [106](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L106) calls [Codeunit 5330 CRM Integration Management](https://jonas-paprotka.de/ref/codeunit/5330-crm-integration-management/) `OnGetCDSIntegrationUserId`
- [110](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L110) calls [Table 5330 CRM Connection Setup](https://jonas-paprotka.de/ref/table/5330-crm-connection-setup/) `GetIntegrationUserID`

## TestConnection

[Line 113](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L113), internal.

- [119](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L119) calls [Codeunit 5330 CRM Integration Management](https://jonas-paprotka.de/ref/codeunit/5330-crm-integration-management/) `OnTestCDSConnection`
- [121](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L121) calls [Table 5330 CRM Connection Setup](https://jonas-paprotka.de/ref/table/5330-crm-connection-setup/) `TryReadSystemUsers`

## CloseConnection

[Line 125](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L125), internal.

- [131](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L131) calls `ClearCache`
- [133](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L133) calls [Codeunit 5330 CRM Integration Management](https://jonas-paprotka.de/ref/codeunit/5330-crm-integration-management/) `OnCloseCDSConnection`
- [137](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L137) calls [Table 5330 CRM Connection Setup](https://jonas-paprotka.de/ref/table/5330-crm-connection-setup/) `UnregisterConnectionWithName`

## ClearCache

[Line 140](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L140), local.

- [143](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L143) calls [Codeunit 5341 CRM Int. Table. Subscriber](https://jonas-paprotka.de/ref/codeunit/5341-crm-int-table-subscriber/) `ClearCache`

## IsModifiedByFilterNeeded

[Line 147](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L147), local.

- [152](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L152) raises `OnIsModifiedByFilterNeeded`, IsHandled
- [160](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L160) calls `HasUnidirectionalFieldMappingFromIntegrationTable`

## FindModifiedCRMRecords

[Line 164](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L164), local.

- [173](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L173) calls `IsModifiedByFilterNeeded`
- [174](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L174) calls [Codeunit 5336 Integration Record Synch.](https://jonas-paprotka.de/ref/codeunit/5336-integration-record-synch/) `SplitIntegrationTableFilter`
- [177](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L177) calls `SetIntRecordRefFilter`
- [182](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L182) calls `TryCopyRecordReference`

## TryCopyRecordReference

[Line 190](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L190), local.

- [192](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L192) calls `CopyRecordReference`

## CopyRecordReference

[Line 195](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L195), local.

- [213](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L213) calls `IsFieldMapped`
- [215](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L215) calls [Codeunit 4100 Temp Blob](https://jonas-paprotka.de/ref/codeunit/4100-temp-blob/) `FromFieldRef`
- [216](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L216) calls [Codeunit 4100 Temp Blob](https://jonas-paprotka.de/ref/codeunit/4100-temp-blob/) `ToFieldRef`

## SetIntRecordRefFilter

[Line 241](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L241), local.

- [256](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L256) calls `GetModifyByFieldNo`
- [260](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L260) calls `GetIntegrationUserId`

## FindFailedNotSkippedCRMRecords

[Line 264](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L264), local.

- [273](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L273) calls [Table 5335 Integration Table Mapping](https://jonas-paprotka.de/ref/table/5335-integration-table-mapping/) `GetIntegrationTableFilter`
- [289](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L289) calls [Codeunit 5336 Integration Record Synch.](https://jonas-paprotka.de/ref/codeunit/5336-integration-record-synch/) `GetIdFilterList`
- [290](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L290) calls `CacheFilteredCRMRecords`

## CacheFilteredCRMRecords

[Line 298](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L298), local.

- [310](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L310) calls `CopyRecordReference`

## CacheFilteredCRMTable

[Line 318](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L318), local.

- [323](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L323) calls `FindFailedNotSkippedCRMRecords`
- [324](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L324) calls `FindModifiedCRMRecords`

## GetSourceRecordRef

[Line 343](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L343), local.

- [348](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L348) calls `GetSourceType`
- [358](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L358) calls [Table 5335 Integration Table Mapping](https://jonas-paprotka.de/ref/table/5335-integration-table-mapping/) `FindFilteredRec`
- [365](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L365) calls [Table 5335 Integration Table Mapping](https://jonas-paprotka.de/ref/table/5335-integration-table-mapping/) `GetRecordRef`
- [366](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L366) calls [Table 5335 Integration Table Mapping](https://jonas-paprotka.de/ref/table/5335-integration-table-mapping/) `GetExtendedIntegrationTableCaption`
- [367](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L367) calls [Table 5335 Integration Table Mapping](https://jonas-paprotka.de/ref/table/5335-integration-table-mapping/) `FindFilteredRec`

## FindFailedNotSkippedLocalRecords

[Line 383](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L383), local.

- [391](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L391) calls [Table 5335 Integration Table Mapping](https://jonas-paprotka.de/ref/table/5335-integration-table-mapping/) `GetTableFilter`

## FindFailedNotSkippedLocalRecords

[Line 421](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L421), local.

- [430](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L430) calls [Table 5335 Integration Table Mapping](https://jonas-paprotka.de/ref/table/5335-integration-table-mapping/) `GetTableFilter`

## SynchOption

[Line 463](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L463).

- [467](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L467) calls [Codeunit 10 Type Helper](https://jonas-paprotka.de/ref/codeunit/10-type-helper/) `GetField`
- [471](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L471) calls `SynchOptions`

## SynchRecord

[Line 474](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L474).

- [480](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L480) calls `GetSourceRecordRef`
- [481](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L481) calls [Codeunit 5335 Integration Table Synch.](https://jonas-paprotka.de/ref/codeunit/5335-integration-table-synch/) `BeginIntegrationSynchJob`
- [483](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L483) calls [Codeunit 5335 Integration Table Synch.](https://jonas-paprotka.de/ref/codeunit/5335-integration-table-synch/) `Synchronize`
- [484](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L484) calls [Codeunit 5335 Integration Table Synch.](https://jonas-paprotka.de/ref/codeunit/5335-integration-table-synch/) `EndIntegrationSynchJob`

## SynchRecordsToIntegrationTable

[Line 489](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L489).

- [496](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L496) raises `OnBeforeSynchRecordsToIntegrationTable`, IsHandled
- [500](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L500) calls [Table 5335 Integration Table Mapping](https://jonas-paprotka.de/ref/table/5335-integration-table-mapping/) `FindMappingForTable`
- [508](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L508) calls [Codeunit 5335 Integration Table Synch.](https://jonas-paprotka.de/ref/codeunit/5335-integration-table-synch/) `BeginIntegrationSynchJob`
- [512](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L512) calls [Codeunit 5335 Integration Table Synch.](https://jonas-paprotka.de/ref/codeunit/5335-integration-table-synch/) `Synchronize`
- [514](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L514) calls [Codeunit 5335 Integration Table Synch.](https://jonas-paprotka.de/ref/codeunit/5335-integration-table-synch/) `EndIntegrationSynchJob`

## SynchRecordsFromIntegrationTable

[Line 518](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L518).

- [525](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L525) raises `OnBeforeSynchRecordsFromIntegrationTable`, IsHandled
- [529](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L529) calls [Table 5335 Integration Table Mapping](https://jonas-paprotka.de/ref/table/5335-integration-table-mapping/) `FindMapping`
- [537](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L537) calls [Codeunit 5335 Integration Table Synch.](https://jonas-paprotka.de/ref/codeunit/5335-integration-table-synch/) `BeginIntegrationSynchJob`
- [541](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L541) calls [Codeunit 5335 Integration Table Synch.](https://jonas-paprotka.de/ref/codeunit/5335-integration-table-synch/) `Synchronize`
- [543](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L543) calls [Codeunit 5335 Integration Table Synch.](https://jonas-paprotka.de/ref/codeunit/5335-integration-table-synch/) `EndIntegrationSynchJob`

## SynchNAVTableToCRM

[Line 547](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L547), local.

- [560](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L560) calls [Codeunit 5336 Integration Record Synch.](https://jonas-paprotka.de/ref/codeunit/5336-integration-record-synch/) `SplitLocalTableFilter`
- [561](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L561) calls `CreateCRMIntegrationRecordClone`
- [564](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L564) calls `FindFailedNotSkippedLocalRecords`
- [567](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L567) calls `SyncNAVRecordToCRM`
- [570](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L570) calls [Codeunit 5336 Integration Record Synch.](https://jonas-paprotka.de/ref/codeunit/5336-integration-record-synch/) `FindModifiedLocalRecords`
- [574](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L574) calls `SyncNAVRecordToCRM`
- [577](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L577) raises `OnSynchNAVTableToCRMOnBeforeCheckLatestModifiedOn`

## SyncNAVRecordToCRM

[Line 582](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L582).

- [592](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L592) raises `OnQueryPostFilterIgnoreRecord`
- [595](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L595) calls [Table 5331 CRM Integration Record](https://jonas-paprotka.de/ref/table/5331-crm-integration-record/) `IsIntegrationIdCoupled`
- [598](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L598) calls [Codeunit 5335 Integration Table Synch.](https://jonas-paprotka.de/ref/codeunit/5335-integration-table-synch/) `Synchronize`
- [601](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L601) calls [Codeunit 5335 Integration Table Synch.](https://jonas-paprotka.de/ref/codeunit/5335-integration-table-synch/) `GetRowLastModifiedOn`

## SynchCRMTableToNAV

[Line 606](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L606), local.

- [618](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L618) calls `CreateCRMIntegrationRecordClone`
- [619](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L619) calls `CacheFilteredCRMTable`
- [624](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L624) calls `CopyRecordReference`
- [626](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L626) raises `OnQueryPostFilterIgnoreRecord`
- [628](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L628) calls [Table 5331 CRM Integration Record](https://jonas-paprotka.de/ref/table/5331-crm-integration-record/) `IsCRMRecordRefCoupled`
- [629](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L629) writes [Table 5331 CRM Integration Record](https://jonas-paprotka.de/ref/table/5331-crm-integration-record/) Delete
- [633](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L633) calls [Codeunit 5335 Integration Table Synch.](https://jonas-paprotka.de/ref/codeunit/5335-integration-table-synch/) `Synchronize`
- [636](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L636) calls [Codeunit 5335 Integration Table Synch.](https://jonas-paprotka.de/ref/codeunit/5335-integration-table-synch/) `GetRowLastModifiedOn`

## PerformScheduledSynchToIntegrationTable

[Line 654](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L654), local.

- [663](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L663) calls [Codeunit 5335 Integration Table Synch.](https://jonas-paprotka.de/ref/codeunit/5335-integration-table-synch/) `BeginIntegrationSynchJob`
- [666](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L666) calls [Table 5373 CRM Full Synch. Review Line](https://jonas-paprotka.de/ref/table/5373-crm-full-synch-review-line/) `FullSynchStarted`
- [667](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L667) calls `SynchNAVTableToCRM`
- [668](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L668) calls [Codeunit 5335 Integration Table Synch.](https://jonas-paprotka.de/ref/codeunit/5335-integration-table-synch/) `EndIntegrationSynchJob`
- [669](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L669) calls [Table 5373 CRM Full Synch. Review Line](https://jonas-paprotka.de/ref/table/5373-crm-full-synch-review-line/) `FullSynchFinished`

## PerformScheduledSynchFromIntegrationTable

[Line 675](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L675), local.

- [685](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L685) calls [Codeunit 5335 Integration Table Synch.](https://jonas-paprotka.de/ref/codeunit/5335-integration-table-synch/) `BeginIntegrationSynchJob`
- [688](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L688) calls [Table 5373 CRM Full Synch. Review Line](https://jonas-paprotka.de/ref/table/5373-crm-full-synch-review-line/) `FullSynchStarted`
- [689](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L689) calls `SynchCRMTableToNAV`
- [690](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L690) calls [Codeunit 5335 Integration Table Synch.](https://jonas-paprotka.de/ref/codeunit/5335-integration-table-synch/) `EndIntegrationSynchJob`
- [691](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L691) calls [Table 5373 CRM Full Synch. Review Line](https://jonas-paprotka.de/ref/table/5373-crm-full-synch-review-line/) `FullSynchFinished`

## LocalUpdateTableMappingModifiedOn

[Line 697](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L697), local.

- [702](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L702) raises `OnBeforeUpdateTableMappingModifiedOn`, IsHandled
- [706](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L706) calls [Table 5335 Integration Table Mapping](https://jonas-paprotka.de/ref/table/5335-integration-table-mapping/) `UpdateTableMappingModifiedOn`

## CreateCRMIntegrationRecordClone

[Line 709](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L709), internal.

- [715](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L715) writes [Table 5331 CRM Integration Record](https://jonas-paprotka.de/ref/table/5331-crm-integration-record/) DeleteAll
- [717](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L717) calls [Codeunit 5330 CRM Integration Management](https://jonas-paprotka.de/ref/codeunit/5330-crm-integration-management/) `RepairBrokenCouplings`
- [724](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L724) writes [Table 5331 CRM Integration Record](https://jonas-paprotka.de/ref/table/5331-crm-integration-record/) Insert

## SynchOptions

[Line 728](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L728), local.

- [734](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L734) calls [Table 5335 Integration Table Mapping](https://jonas-paprotka.de/ref/table/5335-integration-table-mapping/) `SetOriginalJobQueueEntryOnHold`
- [738](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L738) calls `PerformScheduledOptionSynchToIntegrationTable`
- [740](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L740) calls `PerformScheduledOptionSynchFromIntegrationTable`
- [741](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L741) calls `LocalUpdateTableMappingModifiedOn`
- [742](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L742) calls [Table 5335 Integration Table Mapping](https://jonas-paprotka.de/ref/table/5335-integration-table-mapping/) `SetOriginalJobQueueEntryStatus`

## PerformScheduledOptionSynchFromIntegrationTable

[Line 745](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L745), local.

- [754](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L754) calls [Codeunit 5335 Integration Table Synch.](https://jonas-paprotka.de/ref/codeunit/5335-integration-table-synch/) `BeginIntegrationSynchJob`
- [757](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L757) calls [Table 5373 CRM Full Synch. Review Line](https://jonas-paprotka.de/ref/table/5373-crm-full-synch-review-line/) `FullSynchStarted`
- [758](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L758) calls `SynchCRMOptionToNAV`
- [759](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L759) calls [Codeunit 5335 Integration Table Synch.](https://jonas-paprotka.de/ref/codeunit/5335-integration-table-synch/) `EndIntegrationSynchJob`
- [760](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L760) calls [Table 5373 CRM Full Synch. Review Line](https://jonas-paprotka.de/ref/table/5373-crm-full-synch-review-line/) `FullSynchFinished`

## PerformScheduledOptionSynchToIntegrationTable

[Line 766](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L766), local.

- [775](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L775) calls [Codeunit 5335 Integration Table Synch.](https://jonas-paprotka.de/ref/codeunit/5335-integration-table-synch/) `BeginIntegrationSynchJob`
- [778](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L778) calls [Table 5373 CRM Full Synch. Review Line](https://jonas-paprotka.de/ref/table/5373-crm-full-synch-review-line/) `FullSynchStarted`
- [779](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L779) calls `SynchCRMOptionFromNAV`
- [780](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L780) calls [Codeunit 5335 Integration Table Synch.](https://jonas-paprotka.de/ref/codeunit/5335-integration-table-synch/) `EndIntegrationSynchJob`
- [781](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L781) calls [Table 5373 CRM Full Synch. Review Line](https://jonas-paprotka.de/ref/table/5373-crm-full-synch-review-line/) `FullSynchFinished`

## CacheFilteredCRMOptions

[Line 787](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L787), local.

- [798](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L798) calls `LoadCRMOption`
- [800](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L800) calls [Table 5335 Integration Table Mapping](https://jonas-paprotka.de/ref/table/5335-integration-table-mapping/) `GetIntegrationTableFilter`

## LoadCRMOption

[Line 820](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L820).

- [829](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L829) calls [Table 7203 CRM Payment Terms](https://jonas-paprotka.de/ref/table/7203-crm-payment-terms/) `Load`
- [834](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L834) calls [Table 7204 CRM Freight Terms](https://jonas-paprotka.de/ref/table/7204-crm-freight-terms/) `Load`
- [839](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L839) calls [Table 7205 CRM Shipping Method](https://jonas-paprotka.de/ref/table/7205-crm-shipping-method/) `Load`
- [843](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L843) raises `OnLoadCRMOption`

## SynchCRMOptionToNAV

[Line 846](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L846), local.

- [855](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L855) calls `CacheFilteredCRMOptions`
- [860](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L860) calls [Table 5334 CRM Option Mapping](https://jonas-paprotka.de/ref/table/5334-crm-option-mapping/) `IsCRMRecordRefMapped`
- [864](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L864) calls [Codeunit 5335 Integration Table Synch.](https://jonas-paprotka.de/ref/codeunit/5335-integration-table-synch/) `SynchronizeOption`

## SynchCRMOptionFromNAV

[Line 870](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L870), local.

- [881](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L881) calls [Codeunit 5336 Integration Record Synch.](https://jonas-paprotka.de/ref/codeunit/5336-integration-record-synch/) `SplitLocalTableFilter`
- [884](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L884) calls `FindFailedNotSkippedLocalRecords`
- [887](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L887) calls `SyncNAVOptionToCRM`
- [890](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L890) calls [Codeunit 5336 Integration Record Synch.](https://jonas-paprotka.de/ref/codeunit/5336-integration-record-synch/) `FindModifiedLocalRecords`
- [894](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L894) calls `SyncNAVOptionToCRM`

## SyncNAVOptionToCRM

[Line 900](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L900), local.

- [915](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L915) calls [Codeunit 5335 Integration Table Synch.](https://jonas-paprotka.de/ref/codeunit/5335-integration-table-synch/) `SynchronizeOption`
- [918](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L918) calls [Codeunit 5335 Integration Table Synch.](https://jonas-paprotka.de/ref/codeunit/5335-integration-table-synch/) `GetRowLastModifiedOn`

## GetMaxNumberOfConditions

[Line 924](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L924).

- [930](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L930) raises `OnGetMaxNumberOfConditions`
- [932](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L932) calls [Codeunit 5336 Integration Record Synch.](https://jonas-paprotka.de/ref/codeunit/5336-integration-record-synch/) `GetMaxNumberOfConditions`

## IgnoreCompanyContactOnQueryPostFilterIgnoreRecord

[Line 981](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L981), local.

- [990](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L990) calls [Codeunit 5342 CRM Synch. Helper](https://jonas-paprotka.de/ref/codeunit/5342-crm-synch-helper/) `IsContactTypeCheckIgnored`

## OnBeforeModifyJobQueueEntry

[Line 999](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L999), local.

- [1006](https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/#L1006) calls [Table 5373 CRM Full Synch. Review Line](https://jonas-paprotka.de/ref/table/5373-crm-full-synch-review-line/) `OnBeforeModifyJobQueueEntry`

## Source

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

JOP-AL, 2026-11-20.
