---
id: object/codeunit/5336
type: object
title: Codeunit 5336 "Integration Record Synch."
summary: Codeunit 5336 "Integration Record Synch." in Base Application (Microsoft.Integration.SyncEngine). 19 public procedures, 4 events. Present since at least BC23, still in BC30.
tier: official
language: en
tags:
  - codeunit
  - base application
versions:
  introduced: null
  last_changed: null
  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: 1671c568b867b3ef0d286ffa06b0945265e384607a6ec5058773cbceb33aa09d
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Integration/SynchEngine/IntegrationRecordSynch.Codeunit.al
    title: src/Layers/W1/BaseApp/Integration/SynchEngine/IntegrationRecordSynch.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: 5336
name: Integration Record 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: []
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 37
  events: 4
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 6
  calls: 2
  called_by: 13
  implements: 0
---

# Codeunit 5336 "Integration Record Synch."

> Codeunit 5336 "Integration Record Synch." in Base Application (Microsoft.Integration.SyncEngine). 19 public procedures, 4 events. Present since at least BC23, still in BC30.

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

## Events published

- `OnTransferFieldData(SourceFieldRef: FieldRef; DestinationFieldRef: FieldRef; var NewValue: Variant; var IsValueFound: Boolean; var NeedsConversion: Boolean)` (integration)
  - subscribers: [Codeunit 5341 "CRM Int. Table. Subscriber"](../codeunit/5341.md) OnTransferFieldData, [Codeunit 6276 "Sust. Int. Table Subscriber"](../codeunit/6276.md) OnTransferFieldData, [Codeunit 6610 "FS Int. Table Subscriber"](../codeunit/6610.md) OnTransferFieldData, [Codeunit 7205 "CDS Int. Table. Subscriber"](../codeunit/7205.md) OnTransferFieldData, [Codeunit 7237 "Master Data Mgt. Subscribers"](../codeunit/7237.md) OnTransferFieldData
- `OnGetBlobFieldEncoding(TableNo: Integer; FieldNo: Integer; var Encoding: TextEncoding; var Handled: Boolean)` (integration)
- `OnGetMaxNumberOfConditions(var Handled: Boolean; var Value: Integer)` (integration)
- `OnBeforeIsFieldModified(var SourceFieldRef: FieldRef; var DestinationFieldRef: FieldRef; var Result: Boolean; var IsHandled: Boolean)` (integration)
  - subscribers: [Codeunit 7237 "Master Data Mgt. Subscribers"](../codeunit/7237.md) OnBeforeIsFieldModified

## Procedures

- `SetFieldMapping(var TempIntegrationFieldMapping: Record "Temp Integration Field Mapping" temporary)`
- `SetParameters(var SourceRecordRef: RecordRef; var DestinationRecordRef: RecordRef; OnlyTransferModifiedFields: Boolean)`
- `GetWasModified(): Boolean`
- `GetWasBidirectionalFieldModified(): Boolean`
- `GetBidirectionalFieldModifiedContext(var TempIntegrationFieldMapping: Record "Temp Integration Field Mapping" temporary)`
- `GetIdFilterList(var IdDictionary: Dictionary of [Guid, Boolean]; var IdFilterList: List of [Text])`
- `GetMaxNumberOfConditions(): Integer` (internal)
- `GetIdFilterList(var IdList: List of [Guid]; var IdFilterList: List of [Text])`
- `FindModifiedLocalRecords(var RecRef: RecordRef; TableFilter: Text; IntegrationTableMapping: Record "Integration Table Mapping"): Boolean`
- `SplitLocalTableFilter(var IntegrationTableMapping: Record "Integration Table Mapping"; var TableFilterList: List of [Text]): Boolean` (internal)
- `SplitIntegrationTableFilter(var IntegrationTableMapping: Record "Integration Table Mapping"; var TableFilterList: List of [Text]): Boolean` (internal)
- `SplitTableFilter(TableId: Integer; FieldNo: Integer; TableFilter: Text; var TableFilterList: List of [Text]): Boolean`
- `GetTableViewForSystemIds(TableNo: Integer; SystemIds: List of [Guid]): Text` (internal)
- `GetTableViewForRecordID(RecordID: RecordID): Text`
- `GetTableViewForRecordIDAndFlowFilters(IntegrationTableMapping: Record "Integration Table Mapping"; RecordID: RecordID): Text` (internal)
- `GetTableViewForLocalRecords(var RecRef: RecordRef): Text` (internal)
- `JoinIDs(var IdList: List of [Guid]; Delimiter: Text[1]): Text`
- `GetTextValue(var FieldRef: FieldRef): Text` (internal)
- `SetTextValue(var FieldRef: FieldRef; FieldValue: Text)` (internal)

Plus 14 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 4100 "Temp Blob"](../codeunit/4100.md) (5 calls: `GetTextValue → CreateInStream`, `GetTextValue → FromFieldRef`, `GetTextValue → HasValue`, …)
- [Codeunit 5302 "Outlook Synch. Type Conv"](../codeunit/5302.md) (2 calls: `EvaluateTextToFieldRef → EvaluateTextToFieldRef`, `TextToOptionValue → TextToOptionValue`)

## Called by

- [Codeunit 5345 "Integration Rec. Synch. Invoke"](../codeunit/5345.md) (10 calls: `CheckTransferFields → (object)`, `CheckTransferFields → GetWasBidirectionalFieldModified`, `CheckTransferFields → GetWasModified`, …)
- [Codeunit 5340 "CRM Integration Table Synch."](../codeunit/5340.md) (7 calls: `FindFailedNotSkippedCRMRecords → GetIdFilterList`, `FindModifiedCRMRecords → SplitIntegrationTableFilter`, `GetMaxNumberOfConditions → GetMaxNumberOfConditions`, …)
- [Codeunit 5330 "CRM Integration Management"](../codeunit/5330.md) (5 calls: `EnqueueOptionSyncJob → GetTableViewForRecordID`, `EnqueueOptionSyncJobToIntegrationTable → GetTableViewForSystemIds`, `EnqueueSyncJob → GetTableViewForRecordIDAndFlowFilters`, …)
- [Codeunit 5335 "Integration Table Synch."](../codeunit/5335.md) (4 calls: `CheckTransferFields → SetFieldMapping`, `Couple → SetFieldMapping`, `Synchronize → SetFieldMapping`, …)
- [Codeunit 7231 "Integration Master Data Synch."](../codeunit/7231.md) (4 calls: `FindFailedNotSkippedIntegrationRecords → GetIdFilterList`, `SplitIntegrationTableFilter → SplitTableFilter`, `SplitLocalTableFilter → SplitTableFilter`, …)
- [Codeunit 7233 "Master Data Management"](../codeunit/7233.md) (3 calls: `GetTableViewForIntegrationSystemIds → JoinIDs`, `GetTableViewForSystemIds → JoinIDs`, `UpdateIntRecords → GetIdFilterList`)
- [Codeunit 5343 "CRM Sales Order to Sales Order"](../codeunit/5343.md) (2 calls: `CreateSalesOrderHeader → GetTextValue`, `CreateSalesOrderHeader → SetTextValue`)
- [Codeunit 5348 "CRM Quote to Sales Quote"](../codeunit/5348.md) (2 calls: `CreateOrUpdateSalesQuoteHeader → GetTextValue`, `CreateOrUpdateSalesQuoteHeader → SetTextValue`)
- [Table 5374 "CRM Synch. Conflict Buffer"](../table/5374.md) (2 calls: `DeleteCouplingsForCRMRecords → GetIdFilterList`, `DeleteCouplingsForLocalRecords → GetIdFilterList`)
- [Codeunit 5337 "CDS Int. Table Uncouple"](../codeunit/5337.md) (1 call: `ResetStuckCompanyId → SplitIntegrationTableFilter`)
- [Codeunit 5360 "CDS Int. Table Couple"](../codeunit/5360.md) (1 call: `CoupleRecords → SplitLocalTableFilter`)
- [Codeunit 5365 "CDS Int. Option Couple"](../codeunit/5365.md) (1 call: `CoupleRecords → SplitLocalTableFilter`)
- [Page 5328 "CRM Coupling Fields"](../page/5328.md) (1 call: `GetFieldValue → GetTextValue`)

## Across versions

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

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 Record Synch.")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
