---
title: "Codeunit 5345 Integration Rec. Synch. Invoke"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/5345-integration-rec-synch-invoke/
type: codeunit
id: 5345
name: "Integration Rec. Synch. Invoke"
app: "Base Application"
namespace: Microsoft.Integration.SyncEngine
versions: "17-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/codeunit/5345-integration-rec-synch-invoke/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 5345 Integration Rec. Synch. Invoke

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/5345-integration-rec-synch-invoke/

| | |
| --- | --- |
| App | Base Application |
| Namespace | Microsoft.Integration.SyncEngine |
| Versions | 17-28 |
| Source file | Integration/SynchEngine/IntegrationRecSynchInvoke.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| SetContext | (Record Integration Table Mapping, RecordRef, RecordRef, Codeunit Integration Record Synch., Option, Boolean, Guid, TableConnectionType) | - | public | 17-28 | - | - |
| GetContext | (var Record Integration Table Mapping, var RecordRef, var RecordRef, var Codeunit Integration Record Synch., var Option) | - | public | 17-28 | - | - |
| WasModifiedAfterLastSynch | (Record Integration Table Mapping, RecordRef) | Boolean | public | 17-28 | - | - |
| GetRowLastModifiedOn | (Record Integration Table Mapping, RecordRef) | DateTime | public | 17-28 | - | - |
| FindRecord | (var Record Integration Table Mapping, var RecordRef, var RecordRef, var Boolean, TableConnectionType) | Integer | internal | 17-28 | - | - |
| CheckTransferFields | (var Codeunit Integration Record Synch., var RecordRef, var RecordRef, var Boolean, var Boolean) | - | public | 17-24 | - | - |
| MarkIntegrationRecordAsFailed | (Record Integration Table Mapping, RecordRef, Guid, TableConnectionType) | - | public | 17-28 | - | - |
| MarkIntegrationRecordAsFailed | (Record Integration Table Mapping, RecordRef, Guid, TableConnectionType, Boolean) | - | public | 17-28 | - | - |
| MarkIntegrationRecordAsFailed | (Record Integration Table Mapping, RecordRef, Guid, TableConnectionType, var Option) | - | public | 17-28 | - | - |
| FindCoupledRecord | (var Record Integration Table Mapping, var RecordRef, var RecordRef, var Boolean, TableConnectionType) | Integer | internal | 22-28 | - | - |
| PrepareNewDestination | (var Record Integration Table Mapping, var RecordRef, var RecordRef) | - | public | 24-28 | - | - |
| CheckTransferFields | (var Codeunit Integration Record Synch., Record Integration Table Mapping, var RecordRef, var RecordRef, var Boolean, var Boolean) | - | public | 25-28 | - | - |
| FindTableConfigTemplate | (Record Integration Table Mapping, RecordRef) | Code[10] | internal | 25-28 | - | - |
| FindIntTableConfigTemplate | (Record Integration Table Mapping, RecordRef) | Code[10] | internal | 25-28 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnUpdateConflictDetected | (var Record Integration Table Mapping, var RecordRef, var RecordRef, var Boolean, var Boolean) | 17-28 | - | - |
| Integration event | OnDeletionConflictDetected | (var Record Integration Table Mapping, var RecordRef, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeTransferRecordFields | (RecordRef, var RecordRef) | 17-28 | - | - |
| Integration event | OnAfterTransferRecordFields | (var RecordRef, var RecordRef, var Boolean, Boolean) | 17-28 | - | - |
| Integration event | OnBeforeModifyRecord | (Record Integration Table Mapping, RecordRef, var RecordRef) | 17-28 | - | - |
| Integration event | OnAfterModifyRecord | (Record Integration Table Mapping, var RecordRef, var RecordRef) | 17-28 | - | - |
| Integration event | OnErrorWhenModifyingRecord | (Record Integration Table Mapping, var RecordRef, var RecordRef) | 17-28 | - | - |
| Integration event | OnBeforeInsertRecord | (Record Integration Table Mapping, RecordRef, var RecordRef) | 17-26 | - | - |
| Integration event | OnAfterInsertRecord | (Record Integration Table Mapping, var RecordRef, var RecordRef) | 17-28 | - | - |
| Integration event | OnAfterUnchangedRecordHandled | (Record Integration Table Mapping, RecordRef, RecordRef) | 17-28 | - | - |
| Integration event | OnBeforeApplyRecordTemplate | (Record Integration Table Mapping, RecordRef, var RecordRef, var Code[10]) | 17-28 | - | - |
| Integration event | OnAfterApplyRecordTemplate | (Record Integration Table Mapping, RecordRef, var RecordRef) | 17-28 | - | - |
| Integration event | OnFindUncoupledDestinationRecord | (Record Integration Table Mapping, RecordRef, var RecordRef, var Boolean, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeDetermineConfigTemplateCode | (Record Integration Table Mapping, var Code[10], var Boolean) | 22-28 | - | - |
| Integration event | OnUpdateIntegrationRecordCoupling | (Record Integration Table Mapping, var RecordRef, var RecordRef, var Boolean, TableConnectionType) | 22-28 | - | - |
| Integration event | OnWasModifiedAfterLastSynch | (TableConnectionType, Record Integration Table Mapping, var RecordRef, var Boolean, var Boolean) | 22-28 | - | - |
| Integration event | OnUpdateIntegrationRecordTimestamp | (Record Integration Table Mapping, var RecordRef, var RecordRef, TableConnectionType, Guid, Boolean, var Boolean) | 22-28 | - | - |
| Integration event | OnBeforeIgnoreUnchangedRecordHandled | (Record Integration Table Mapping, RecordRef, RecordRef) | 22-28 | - | - |
| Integration event | OnInsertRecordOnAfterApplyConfigTemplate | (Record Integration Table Mapping, var RecordRef, var RecordRef) | 23-28 | - | - |
| Integration event | OnDeletionConflictSetSynchAction | (var Record Integration Table Mapping, var RecordRef, var Option, var Boolean) | 24-28 | - | - |
| Integration event | OnDeletionConflictDetectedSetRecordStateAndSynchAction | (var Record Integration Table Mapping, var RecordRef, var RecordRef, var Option, var Option, var Boolean) | 24-28 | - | - |
| Integration event | OnBeforeInsertRecord | (Record Integration Table Mapping, RecordRef, var RecordRef, var Boolean) | 27-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.
