---
id: object/codeunit/5335
type: object
title: Codeunit 5335 "Integration Table Synch."
summary: Codeunit 5335 "Integration Table Synch." in Base Application (Microsoft.Integration.SyncEngine). 19 public procedures, 7 events. Present since at least BC23, still in BC30, changed in BC25.
tier: official
language: en
tags:
  - codeunit
  - base application
versions:
  introduced: null
  last_changed: "25"
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-10-11T00:31:51.816Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: 3cb6fb8d8cc2c9193756f53a6f896b5a2e956858c748268f09ff4ea030b47eb6
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Integration/SynchEngine/IntegrationTableSynch.Codeunit.al
    title: src/Layers/W1/BaseApp/Integration/SynchEngine/IntegrationTableSynch.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: codeunit
object_id: 5335
name: Integration Table Synch.
namespace: Microsoft.Integration.SyncEngine
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "25"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 37
  events: 7
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 4
  calls: 7
  called_by: 17
  implements: 0
---

# Codeunit 5335 "Integration Table Synch."

> Codeunit 5335 "Integration Table Synch." in Base Application (Microsoft.Integration.SyncEngine). 19 public procedures, 7 events. Present since at least BC23, still in BC30, changed in BC25.

Base Application · Microsoft.Integration.SyncEngine · BC23-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Integration/SynchEngine/IntegrationTableSynch.Codeunit.al) · facts from BC29

## Events published

- `OnBeforeSynchronize(var SourceRecordRef: RecordRef; var DestinationRecordRef: RecordRef; var ForceModify: Boolean; var IgnoreSynchOnlyCoupledRecords: Boolean; var IsHandled: Boolean)` (integration)
- `OnBeforeSynchronizeOption(var SourceRecordRef: RecordRef; var DestinationRecordRef: RecordRef; var ForceModify: Boolean; var IgnoreSynchOnlyCoupledRecords: Boolean; var IsHandled: Boolean)` (integration)
- `OnBeforeCheckTransferFields(var SourceRecordRef: RecordRef; var DestinationRecordRef: RecordRef; var FieldsModified: Boolean; var BidirectionalFieldsModified: Boolean)` (integration)
- `OnBeforeUncouple(var LocalRecordRef: RecordRef; var IntegrationRecordRef: RecordRef; var IsHandled: Boolean)` (integration)
- `OnBeforeCouple(var LocalRecordRef: RecordRef; var IntegrationRecordRef: RecordRef; var IsHandled: Boolean)` (integration)
- `OnAfterInitSynchJob(ConnectionType: TableConnectionType; IntegrationTableID: Integer)` (integration)
  - subscribers: [Codeunit 5341 "CRM Int. Table. Subscriber"](../codeunit/5341.md) LogTelemetryOnAfterInitSynchJob, [Codeunit 6610 "FS Int. Table Subscriber"](../codeunit/6610.md) LogTelemetryOnAfterInitSynchJob, [Codeunit 7205 "CDS Int. Table. Subscriber"](../codeunit/7205.md) LogTelemetryOnAfterInitSynchJob
- `OnDetermineSynchDirection(var CurrentIntegrationTableMapping: Record "Integration Table Mapping"; var TableID: Integer; var ErrorMessage: Text; var IsHandled: Boolean)` (integration)
  - subscribers: [Codeunit 7237 "Master Data Mgt. Subscribers"](../codeunit/7237.md) OnDetermineSynchDirection

## Procedures

- `BeginIntegrationSynchJob(ConnectionType: TableConnectionType; var IntegrationTableMapping: Record "Integration Table Mapping"; SourceTableID: Integer): Guid`
- `BeginIntegrationUncoupleJob(ConnectionType: TableConnectionType; var IntegrationTableMapping: Record "Integration Table Mapping"; SourceTableID: Integer): Guid`
- `BeginIntegrationCoupleJob(ConnectionType: TableConnectionType; var IntegrationTableMapping: Record "Integration Table Mapping"; SourceTableID: Integer): Guid`
- `BeginIntegrationSynchJobLoging(ConnectionType: TableConnectionType; CodeunitID: Integer; JobLogEntryNo: Integer; TableID: Integer): Guid`
- `CheckTransferFields(var IntegrationTableMapping: Record "Integration Table Mapping"; var SourceRecordRef: RecordRef; var DestinationRecordRef: RecordRef; var FieldsModified: Boolean; var BidirectionalFieldsModified: Boolean)`
- `Synchronize(var SourceRecordRef: RecordRef; var DestinationRecordRef: RecordRef; ForceModify: Boolean; IgnoreSynchOnlyCoupledRecords: Boolean): Boolean`
- `Uncouple(var LocalRecordRef: RecordRef; var IntegrationRecordRef: RecordRef): Boolean`
- `Couple(var LocalRecordRef: RecordRef; var IntegrationRecordRef: RecordRef): Boolean`
- `CoupleOption(var LocalRecordRef: RecordRef; var IntegrationRecordRef: RecordRef): Boolean`
- `LogMatchBasedCouplingError(var LocalRecordRef: RecordRef; ErrorMessage: Text)`
- `Delete(RecRef: RecordRef): Boolean`
- `EndIntegrationSynchJob(): Guid`
- `EndIntegrationSynchJobWithMsg(FinalMessage: Text): Guid`
- `GetRowLastModifiedOn(IntegrationTableMapping: Record "Integration Table Mapping"; FromRecordRef: RecordRef): DateTime`
- `LogSynchError(var SourceRecordRef: RecordRef; var DestinationRecordRef: RecordRef; ErrorMessage: Text): Guid`
- `LogSynchError(var SourceRecordRef: RecordRef; var DestinationRecordRef: RecordRef; ErrorMessage: Text; UpdateCounter: Boolean): Guid`
- `IncrementSynchJobCounters(SynchAction: Option)`
- `UpdateSynchJobCounters(SynchAction: Option; Counter: Integer)`
- `SynchronizeOption(var SourceRecordRef: RecordRef; var DestinationRecordRef: RecordRef; ForceModify: Boolean; IgnoreSynchOnlyCoupledRecords: Boolean): Boolean`

Plus 11 local procedures.

## Triggers

OnRun

## Calls

From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an `Object::"Name"` argument. Interface dispatch and calls through events are not counted, so the list is not complete.

- [Codeunit 5345 "Integration Rec. Synch. Invoke"](../codeunit/5345.md) (6 calls: `CheckTransferFields → CheckTransferFields`, `CheckTransferFields → SetContext`, `Synchronize → (object)`, …)
- [Codeunit 5336 "Integration Record Synch."](../codeunit/5336.md) (4 calls: `CheckTransferFields → SetFieldMapping`, `Couple → SetFieldMapping`, `Synchronize → SetFieldMapping`, …)
- [Codeunit 5364 "Int. Option Synch. Invoke"](../codeunit/5364.md) (4 calls: `SynchronizeOption → (object)`, `SynchronizeOption → GetContext`, `SynchronizeOption → MarkOptionMappingAsFailed`, …)
- [Codeunit 5347 "Integration Rec. Delete Invoke"](../codeunit/5347.md) (3 calls: `Delete → (object)`, `Delete → GetContext`, `Delete → SetContext`)
- [Codeunit 5357 "Int. Rec. Uncouple Invoke"](../codeunit/5357.md) (3 calls: `Uncouple → (object)`, `Uncouple → GetContext`, `Uncouple → SetContext`)
- [Codeunit 5361 "Int. Rec. Couple Invoke"](../codeunit/5361.md) (3 calls: `Couple → (object)`, `Couple → GetContext`, `Couple → SetContext`)
- [Codeunit 5338 "Integration Record Management"](../codeunit/5338.md) (1 call: `IsRecordSkipped → IsIntegrationRecordSkipped`)

## Called by

- [Codeunit 5340 "CRM Integration Table Synch."](../codeunit/5340.md) (24 calls: `PerformScheduledOptionSynchFromIntegrationTable → BeginIntegrationSynchJob`, `PerformScheduledOptionSynchFromIntegrationTable → EndIntegrationSynchJob`, `PerformScheduledOptionSynchToIntegrationTable → BeginIntegrationSynchJob`, …)
- [Codeunit 7231 "Integration Master Data Synch."](../codeunit/7231.md) (10 calls: `PerformScheduledSynchFromIntegrationTable → BeginIntegrationSynchJob`, `PerformScheduledSynchFromIntegrationTable → EndIntegrationSynchJob`, `PerformScheduledSynchToIntegrationTable → BeginIntegrationSynchJob`, …)
- [Codeunit 5337 "CDS Int. Table Uncouple"](../codeunit/5337.md) (7 calls: `PerformScheduledUncoupling → BeginIntegrationUncoupleJob`, `PerformScheduledUncoupling → EndIntegrationSynchJob`, `ResetStuckCompanyId → IncrementSynchJobCounters`, …)
- [Codeunit 5350 "CRM Statistics Job"](../codeunit/5350.md) (7 calls: `UpdateAccountStatistics → BeginIntegrationSynchJobLoging`, `UpdateAccountStatistics → EndIntegrationSynchJobWithMsg`, `UpdateAccountStatistics → IncrementSynchJobCounters`, …)
- [Codeunit 5360 "CDS Int. Table Couple"](../codeunit/5360.md) (6 calls: `CoupleRecords → Couple`, `CoupleRecords → LogMatchBasedCouplingError`, `CoupleRecords → LogSynchError`, …)
- [Codeunit 5365 "CDS Int. Option Couple"](../codeunit/5365.md) (6 calls: `CoupleRecords → CoupleOption`, `CoupleRecords → LogMatchBasedCouplingError`, `CoupleRecords → LogSynchError`, …)
- [Codeunit 7235 "Master Data Mgt. Table Couple"](../codeunit/7235.md) (6 calls: `CoupleRecords → Couple`, `CoupleRecords → LogMatchBasedCouplingError`, `CoupleRecords → LogSynchError`, …)
- [Codeunit 7236 "Master Data Mgt. Tbl. Uncouple"](../codeunit/7236.md) (5 calls: `PerformScheduledUncoupling → BeginIntegrationUncoupleJob`, `PerformScheduledUncoupling → EndIntegrationSynchJob`, `UncoupleAllCoupledRecords → Uncouple`, …)
- [Codeunit 5352 "CRM Order Status Update Job"](../codeunit/5352.md) (4 calls: `UpdateSalesOrders → BeginIntegrationSynchJob`, `UpdateSalesOrders → BeginIntegrationSynchJobLoging`, `UpdateSalesOrders → EndIntegrationSynchJobWithMsg`, …)
- [Codeunit 5355 "CRM Notes Synch Job"](../codeunit/5355.md) (4 calls: `UpdateSalesOrderNotes → BeginIntegrationSynchJob`, `UpdateSalesOrderNotes → BeginIntegrationSynchJobLoging`, `UpdateSalesOrderNotes → EndIntegrationSynchJobWithMsg`, …)
- [Codeunit 5366 "CRM Archived Sales Orders Job"](../codeunit/5366.md) (3 calls: `UpdateArchivedOrders → BeginIntegrationSynchJobLoging`, `UpdateArchivedOrders → EndIntegrationSynchJobWithMsg`, `UpdateArchivedOrders → UpdateSynchJobCounters`)
- [Codeunit 6610 "FS Int. Table Subscriber"](../codeunit/6610.md) (3 calls: `SynchRecordsToIntegrationTable → BeginIntegrationSynchJob`, `SynchRecordsToIntegrationTable → EndIntegrationSynchJob`, `SynchRecordsToIntegrationTable → Synchronize`)
- [Codeunit 6618 "FS Archived Service Orders Job"](../codeunit/6618.md) (3 calls: `UpdateArchivedOrders → BeginIntegrationSynchJobLoging`, `UpdateArchivedOrders → EndIntegrationSynchJobWithMsg`, `UpdateArchivedOrders → UpdateSynchJobCounters`)
- [Codeunit 7233 "Master Data Management"](../codeunit/7233.md) (2 calls: `GetSelectedSingleSyncDirection → CheckTransferFields`, `HandleOnUpdateIntegrationRecordTimestamp → GetRowLastModifiedOn`)
- [Codeunit 5330 "CRM Integration Management"](../codeunit/5330.md) (1 call: `GetSelectedSingleSyncDirection → CheckTransferFields`)
- [Codeunit 5349 "Auto Create Sales Orders"](../codeunit/5349.md) (1 call: `CreateNAVSalesOrdersFromSubmittedCRMSalesorders → OnAfterInitSynchJob`)
- [Codeunit 5354 "Auto Process Sales Quotes"](../codeunit/5354.md) (1 call: `CreateNAVSalesQuotesFromSubmittedCRMSalesquotes → OnAfterInitSynchJob`)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: BC25

Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).

## Ask your agent

Procedure bodies are not stored here (D10). The call sections above are our own, per object, from the BC29 call graph. For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: `bcatlas_resolve_node(object_type: "codeunit", object_name: "Integration Table Synch.")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
