---
id: object/codeunit/7231
type: object
title: Codeunit 7231 "Integration Master Data Synch."
summary: Codeunit 7231 "Integration Master Data Synch." in MasterDataManagement (Microsoft.Integration.MDM). 6 public procedures, 8 events, 2 event subscribers. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - codeunit
  - masterdatamanagement
versions:
  introduced: "29"
  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: 7955753c4e2999e30aa59f0326c20e3ec1b55a73a821e9456ffcb8910b6d002e
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/MasterDataManagement/app/src/codeunits/IntegrationMasterDataSynch.Codeunit.al
    title: src/Apps/W1/MasterDataManagement/app/src/codeunits/IntegrationMasterDataSynch.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes:
    - change/bcapps/10753
    - change/bcapps/11160
object_type: codeunit
object_id: 7231
name: Integration Master Data Synch.
namespace: Microsoft.Integration.MDM
app: MasterDataManagement
extends: null
first_version: "29"
last_version: "30"
present_in:
  - "29"
  - "30"
changed_in: []
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 35
  events: 8
  subscribers: 2
relations:
  out: 1
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 2
  calls: 6
  called_by: 3
  implements: 0
---

# Codeunit 7231 "Integration Master Data Synch."

> Codeunit 7231 "Integration Master Data Synch." in MasterDataManagement (Microsoft.Integration.MDM). 6 public procedures, 8 events, 2 event subscribers. Introduced in BC29, still in BC30.

MasterDataManagement · Microsoft.Integration.MDM · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/MasterDataManagement/app/src/codeunits/IntegrationMasterDataSynch.Codeunit.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| TableNo | Integration Table Mapping |
| Permissions | tabledata "Master Data Mgt. Coupling" = ri, tabledata "Master Data Management Setup" = r |

## Events published

- `OnGetCrossEnvMaxPagesPerRun(var MaxPages: Integer)` (internal)
- `OnQueryPostFilterIgnoreRecord(SourceRecordRef: RecordRef; var IgnoreRecord: Boolean)` (integration)
- `OnBeforeRun(IntegrationTableMapping: Record "Integration Table Mapping"; var IsHandled: Boolean)` (integration)
  - subscribers: [Codeunit 7234 "MDM Contact Relation Cache"](../codeunit/7234.md) MarkSyncRunStart
- `OnAfterRun(IntegrationTableMapping: Record "Integration Table Mapping")` (integration)
  - subscribers: [Codeunit 7234 "MDM Contact Relation Cache"](../codeunit/7234.md) MarkSyncRunEnd
- `OnSyncLocalTableToIntegrationTableOnBeforeCheckLatestModifiedOn(var SourceRecordRef: RecordRef; IntegrationTableMapping: Record "Integration Table Mapping")` (integration)
- `OnFindModifiedIntegrationRecords(var TempIntegrationRecordRef: RecordRef; IntegrationTableMapping: Record "Integration Table Mapping"; var FailedNotSkippedIdDictionary: Dictionary of [Guid, Boolean]; var IsHandled: Boolean)` (internal)
- `OnFindFailedNotSkippedIntegrationRecords(var TempIntegrationRecordRef: RecordRef; IntegrationTableMapping: Record "Integration Table Mapping"; var TempMasterDataMgtCoupling: Record "Master Data Mgt. Coupling" temporary; var IntegrationSystemIDDictionary: Dictionary of [Guid, Boolean]; var Found: Boolean; var IsHandled: Boolean)` (internal)
- `OnCacheFilteredIntegrationRecords(var IntegrationSystemIDFilterList: List of [Text]; IntegrationTableMapping: Record "Integration Table Mapping"; var TempIntegrationRecordRef: RecordRef; var Cached: Boolean; var IsHandled: Boolean)` (internal)

## Event subscriptions

- OnBeforeModifyJobQueueEntry subscribes to Table "Job Queue Entry" OnBeforeModifyEvent
- OnSynchJobEntryCanBeRemoved subscribes to Table "Integration Synch. Job" OnCanBeRemoved

## Procedures

- `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)
- `GetOutOfMapFilter(): Boolean` (internal)
- `SynchRecord(IntegrationTableMapping: Record "Integration Table Mapping"; SourceID: Variant; ForceModify: Boolean; IgnoreSynchOnlyCoupledRecords: Boolean): Guid` (internal)
- `SyncLocalRecordToIntegrationTable(var SourceRecordRef: RecordRef; IntegrationTableMapping: Record "Integration Table Mapping"; var IntegrationTableSynch: Codeunit "Integration Table Synch."; var TempMasterDataMgtCoupling: Record "Master Data Mgt. Coupling" temporary; var LatestLocalModifiedOn: DateTime)` (internal)
- `CreateMasterDataMgtCouplingClone(ForTable: Integer; var TempMasterDataMgtCoupling: Record "Master Data Mgt. Coupling" temporary)` (internal)

Plus 19 local procedures.

## Triggers

OnRun

## Relations

- runs on [Table 5335 "Integration Table Mapping"](../table/5335.md)

## 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 5335 "Integration Table Synch."](../codeunit/5335.md) (10 calls: `PerformScheduledSynchFromIntegrationTable → BeginIntegrationSynchJob`, `PerformScheduledSynchFromIntegrationTable → EndIntegrationSynchJob`, `PerformScheduledSynchToIntegrationTable → BeginIntegrationSynchJob`, …)
- [Codeunit 7233 "Master Data Management"](../codeunit/7233.md) (5 calls: `FindFailedNotSkippedIntegrationRecords → OnSetSourceCompanyName`, `FindModifiedCrossEnvironmentRecords → GetTelemetryCategory`, `FindModifiedIntegrationRecords → GetTelemetryCategory`, …)
- [Codeunit 5336 "Integration Record Synch."](../codeunit/5336.md) (4 calls: `FindFailedNotSkippedIntegrationRecords → GetIdFilterList`, `SplitIntegrationTableFilter → SplitTableFilter`, `SplitLocalTableFilter → SplitTableFilter`, …)
- [Codeunit 4100 "Temp Blob"](../codeunit/4100.md) (2 calls: `CopyRecordReference → FromFieldRef`, `CopyRecordReference → ToFieldRef`)
- [Codeunit 7237 "Master Data Mgt. Subscribers"](../codeunit/7237.md) (1 call: `SynchIntegrationTableToLocalTable → GetRowLastModifiedOn`)
- [Codeunit 7249 "MDM Cross-Env Data Source"](../codeunit/7249.md) (1 call: `FindModifiedCrossEnvironmentRecords → GetModifiedBatch`)

## Called by

- [Codeunit 7237 "Master Data Mgt. Subscribers"](../codeunit/7237.md) (2 calls: `SynchRecordIfMappingExists → GetOutOfMapFilter`, `SynchRecordIfMappingExists → SynchRecord`)
- [Codeunit 7235 "Master Data Mgt. Table Couple"](../codeunit/7235.md) (1 call: `CoupleRecords → SplitIntegrationTableFilter`)
- [Codeunit 7236 "Master Data Mgt. Tbl. Uncouple"](../codeunit/7236.md) (1 call: `UncoupleRecords → CreateMasterDataMgtCouplingClone`)

## Recent changes

- 2026-09-10 [#10753 Cross-environment Master Data synchronization (same tenant)](../../changes/bcapps/10753.md) (main, BC30, feature)
- 2026-09-09 [#11160 Ruleset hardening: promote three mechanical rules to Error](../../changes/bcapps/11160.md) (main, BC30, refactor)

## Across versions

- Present in: BC29-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 Master Data Synch.")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
