---
title: "Codeunit 5340 CRM Integration Table Synch."
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/
type: codeunit
id: 5340
name: "CRM Integration Table Synch."
app: "Base Application"
namespace: Microsoft.Integration.Dataverse
versions: "17-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/source/29/"
checked: 2026-09-20
subject: "Microsoft Dynamics 365 Business Central"
license: "Content © 2026 Jonas Paprotka. Quote freely with attribution and a link."
---

# Codeunit 5340 CRM Integration Table Synch.

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/5340-crm-integration-table-synch/

| | |
| --- | --- |
| App | Base Application |
| Namespace | Microsoft.Integration.Dataverse |
| Versions | 17-28 |
| Source file | Integration/Dataverse/CRMIntegrationTableSynch.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| InitConnection | () | Text | internal | 17-28 | - | - |
| TestConnection | () | - | internal | 17-28 | - | - |
| CloseConnection | (Text) | - | internal | 17-28 | - | - |
| GetOutOfMapFilter | () | Boolean | public | 17-28 | - | - |
| SynchOption | (Record Integration Table Mapping) | - | public | 17-19 | - | - |
| SynchRecord | (Record Integration Table Mapping, Variant, Boolean, Boolean) | Guid | public | 17-28 | - | - |
| SynchRecordsToIntegrationTable | (RecordRef, Boolean, Boolean) | Guid | public | 17-21 | - | - |
| SyncNAVRecordToCRM | (var RecordRef, Record Integration Table Mapping, var Codeunit Integration Table Synch., var Record CRM Integration Record, var DateTime) | - | public | 17-28 | - | - |
| SetOriginalCRMJobQueueEntryOnHold | (Record Integration Table Mapping, var Record Job Queue Entry) | - | internal | 17-18 | - | - |
| CreateCRMIntegrationRecordClone | (Integer, var Record CRM Integration Record) | - | internal | 17-28 | - | - |
| GetMaxNumberOfConditions | () | Integer | public | 18-28 | - | - |
| SplitLocalTableFilter | (var Record Integration Table Mapping, var List) | Boolean | internal | 19-21 | - | - |
| SplitIntegrationTableFilter | (var Record Integration Table Mapping, var List) | Boolean | internal | 19-21 | - | - |
| SplitTableFilter | (Integer, Integer, Text, var List) | Boolean | internal | 19-21 | - | - |
| GetIdFilterList | (var List, var List) | - | internal | 19-21 | - | - |
| SynchOption | (var Record Integration Table Mapping) | - | public | 20-28 | - | - |
| LoadCRMOption | (var RecordRef, Record Integration Table Mapping) | - | public | 20-28 | - | - |
| SynchRecordsFromIntegrationTable | (RecordRef, Integer, Boolean, Boolean) | Guid | public | 21 | - | - |
| SynchRecordsToIntegrationTable | (var RecordRef, Boolean, Boolean) | Guid | public | 22-28 | - | - |
| SynchRecordsFromIntegrationTable | (var RecordRef, Integer, Boolean, Boolean) | Guid | public | 22-28 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnQueryPostFilterIgnoreRecord | (RecordRef, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeRun | (Record Integration Table Mapping, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeUpdateTableMappingModifiedOn | (var Record Integration Table Mapping, DateTime, var Boolean) | 17-28 | - | - |
| Integration event | OnSynchNAVTableToCRMOnBeforeCheckLatestModifiedOn | (var RecordRef, Record Integration Table Mapping) | 17-28 | - | - |
| Integration event | OnGetMaxNumberOfConditions | (var Boolean, var Integer) | 19-28 | - | - |
| Integration event | OnLoadCRMOption | (var RecordRef, Record Integration Table Mapping) | 20-28 | - | - |
| Integration event | OnIsModifiedByFilterNeeded | (var Record Integration Table Mapping, var Boolean, var Boolean) | 21-28 | - | - |
| Integration event | OnBeforeSynchRecordsFromIntegrationTable | (var RecordRef, Integer, Boolean, Boolean, var Boolean) | 22-28 | - | - |
| Integration event | OnBeforeSynchRecordsToIntegrationTable | (var RecordRef, Boolean, Boolean, var Boolean) | 22-28 | - | - |

## Source

Symbols: Microsoft.BaseApplication.symbols.437dbf0e-84ff-417a-965d-ed2bb9650972, https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json, highest build per major on 2026-09-20.
AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at a66254c3b8b5bb1cea290dc8f9d097aec4381153.

Jonas Paprotka, 2026-09-20.
