---
title: "Codeunit 7202 Synthetic Relations, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/7202-synthetic-relations/points/
object: https://jonas-paprotka.de/ref/codeunit/7202-synthetic-relations/
app: "Base Application"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/7202-synthetic-relations/source/
checked: 2026-11-20
changed: 2026-10-05
subject: "Microsoft Dynamics 365 Business Central"
license: "Metadata from Microsoft's symbol packages. AL source MIT, Copyright (c) Microsoft Corporation. Selection and wording © 2026 JOP-AL. https://jonas-paprotka.de/licenses/"
---

# Codeunit 7202 Synthetic Relations, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/7202-synthetic-relations/points/

18 procedures and triggers with a step in src/Layers/W1/BaseApp/Integration/Dataverse/SyntheticRelations.Codeunit.al, in source order, read from the text, not from a run.

## CreateSyntheticRelation

[Line 25](https://jonas-paprotka.de/ref/codeunit/7202-synthetic-relations/source/#L25), internal.

- [38](https://jonas-paprotka.de/ref/codeunit/7202-synthetic-relations/source/#L38) calls [Codeunit 8703 Feature Telemetry](https://jonas-paprotka.de/ref/codeunit/8703-feature-telemetry/) `LogUptake`
- [38](https://jonas-paprotka.de/ref/codeunit/7202-synthetic-relations/source/#L38) calls `GetFeatureTelemetryName`
- [39](https://jonas-paprotka.de/ref/codeunit/7202-synthetic-relations/source/#L39) calls [Codeunit 8703 Feature Telemetry](https://jonas-paprotka.de/ref/codeunit/8703-feature-telemetry/) `LogUptake`
- [39](https://jonas-paprotka.de/ref/codeunit/7202-synthetic-relations/source/#L39) calls `GetFeatureTelemetryName`
- [40](https://jonas-paprotka.de/ref/codeunit/7202-synthetic-relations/source/#L40) calls [Codeunit 7201 CDS Integration Impl.](https://jonas-paprotka.de/ref/codeunit/7201-cds-integration-impl/) `RegisterConfiguredConnection`
- [50](https://jonas-paprotka.de/ref/codeunit/7202-synthetic-relations/source/#L50) calls `VerifyKeyForTableAndColumnsExist`
- [53](https://jonas-paprotka.de/ref/codeunit/7202-synthetic-relations/source/#L53) calls `GetRelationName`
- [61](https://jonas-paprotka.de/ref/codeunit/7202-synthetic-relations/source/#L61) calls `InsertSyntheticRelationWithRetry`
- [67](https://jonas-paprotka.de/ref/codeunit/7202-synthetic-relations/source/#L67) calls [Codeunit 8703 Feature Telemetry](https://jonas-paprotka.de/ref/codeunit/8703-feature-telemetry/) `LogUsage`
- [67](https://jonas-paprotka.de/ref/codeunit/7202-synthetic-relations/source/#L67) calls `GetFeatureTelemetryName`

## LoadExistingBCTableRelations

[Line 70](https://jonas-paprotka.de/ref/codeunit/7202-synthetic-relations/source/#L70), internal.

- [77](https://jonas-paprotka.de/ref/codeunit/7202-synthetic-relations/source/#L77) calls [Codeunit 7201 CDS Integration Impl.](https://jonas-paprotka.de/ref/codeunit/7201-cds-integration-impl/) `RegisterConfiguredConnection`
- [79](https://jonas-paprotka.de/ref/codeunit/7202-synthetic-relations/source/#L79) writes [Table 5378 Synth. Relation Mapping Buffer](https://jonas-paprotka.de/ref/table/5378-synth-relation-mapping-buffer/) DeleteAll
- [93](https://jonas-paprotka.de/ref/codeunit/7202-synthetic-relations/source/#L93) writes [Table 5378 Synth. Relation Mapping Buffer](https://jonas-paprotka.de/ref/table/5378-synth-relation-mapping-buffer/) Insert

## GetVirtualTableFields

[Line 103](https://jonas-paprotka.de/ref/codeunit/7202-synthetic-relations/source/#L103), internal.

- [113](https://jonas-paprotka.de/ref/codeunit/7202-synthetic-relations/source/#L113) writes [Table 5378 Synth. Relation Mapping Buffer](https://jonas-paprotka.de/ref/table/5378-synth-relation-mapping-buffer/) Insert

## LoadVisibleVirtualTables

[Line 117](https://jonas-paprotka.de/ref/codeunit/7202-synthetic-relations/source/#L117), internal.

- [122](https://jonas-paprotka.de/ref/codeunit/7202-synthetic-relations/source/#L122) calls [Codeunit 7201 CDS Integration Impl.](https://jonas-paprotka.de/ref/codeunit/7201-cds-integration-impl/) `LoadAvailableVirtualTables`
- [129](https://jonas-paprotka.de/ref/codeunit/7202-synthetic-relations/source/#L129) writes [Table 5378 Synth. Relation Mapping Buffer](https://jonas-paprotka.de/ref/table/5378-synth-relation-mapping-buffer/) Insert

## GetAllAPIPages

[Line 133](https://jonas-paprotka.de/ref/codeunit/7202-synthetic-relations/source/#L133), internal.

- [144](https://jonas-paprotka.de/ref/codeunit/7202-synthetic-relations/source/#L144) writes [Table 5378 Synth. Relation Mapping Buffer](https://jonas-paprotka.de/ref/table/5378-synth-relation-mapping-buffer/) Insert

## GetSynchedIntegrationTables

[Line 159](https://jonas-paprotka.de/ref/codeunit/7202-synthetic-relations/source/#L159), internal.

- [175](https://jonas-paprotka.de/ref/codeunit/7202-synthetic-relations/source/#L175) writes [Table 5378 Synth. Relation Mapping Buffer](https://jonas-paprotka.de/ref/table/5378-synth-relation-mapping-buffer/) Insert

## GetSynchedIntegrationFields

[Line 181](https://jonas-paprotka.de/ref/codeunit/7202-synthetic-relations/source/#L181), internal.

- [202](https://jonas-paprotka.de/ref/codeunit/7202-synthetic-relations/source/#L202) writes [Table 5378 Synth. Relation Mapping Buffer](https://jonas-paprotka.de/ref/table/5378-synth-relation-mapping-buffer/) Insert

## DeleteSyntheticRelation

[Line 209](https://jonas-paprotka.de/ref/codeunit/7202-synthetic-relations/source/#L209), internal.

- [216](https://jonas-paprotka.de/ref/codeunit/7202-synthetic-relations/source/#L216) calls [Codeunit 7201 CDS Integration Impl.](https://jonas-paprotka.de/ref/codeunit/7201-cds-integration-impl/) `RegisterConfiguredConnection`
- [218](https://jonas-paprotka.de/ref/codeunit/7202-synthetic-relations/source/#L218) writes [Table 5376 CDS BC Table Relation](https://jonas-paprotka.de/ref/table/5376-cds-bc-table-relation/) Delete

## GetDefaultSyntheticRelations

[Line 222](https://jonas-paprotka.de/ref/codeunit/7202-synthetic-relations/source/#L222), internal.

- [226](https://jonas-paprotka.de/ref/codeunit/7202-synthetic-relations/source/#L226) calls `GetNativeTableDetails`
- [227](https://jonas-paprotka.de/ref/codeunit/7202-synthetic-relations/source/#L227) calls `GetVirtualTableDetails`
- [228](https://jonas-paprotka.de/ref/codeunit/7202-synthetic-relations/source/#L228) writes [Table 5378 Synth. Relation Mapping Buffer](https://jonas-paprotka.de/ref/table/5378-synth-relation-mapping-buffer/) Insert
- [229](https://jonas-paprotka.de/ref/codeunit/7202-synthetic-relations/source/#L229) calls `GetVirtualTableDetails`
- [230](https://jonas-paprotka.de/ref/codeunit/7202-synthetic-relations/source/#L230) writes [Table 5378 Synth. Relation Mapping Buffer](https://jonas-paprotka.de/ref/table/5378-synth-relation-mapping-buffer/) Insert
- [231](https://jonas-paprotka.de/ref/codeunit/7202-synthetic-relations/source/#L231) calls `GetVirtualTableDetails`
- [232](https://jonas-paprotka.de/ref/codeunit/7202-synthetic-relations/source/#L232) writes [Table 5378 Synth. Relation Mapping Buffer](https://jonas-paprotka.de/ref/table/5378-synth-relation-mapping-buffer/) Insert
- [233](https://jonas-paprotka.de/ref/codeunit/7202-synthetic-relations/source/#L233) calls `GetVirtualTableDetails`
- [234](https://jonas-paprotka.de/ref/codeunit/7202-synthetic-relations/source/#L234) writes [Table 5378 Synth. Relation Mapping Buffer](https://jonas-paprotka.de/ref/table/5378-synth-relation-mapping-buffer/) Insert
- [235](https://jonas-paprotka.de/ref/codeunit/7202-synthetic-relations/source/#L235) calls `GetVirtualTableDetails`
- [236](https://jonas-paprotka.de/ref/codeunit/7202-synthetic-relations/source/#L236) writes [Table 5378 Synth. Relation Mapping Buffer](https://jonas-paprotka.de/ref/table/5378-synth-relation-mapping-buffer/) Insert
- [237](https://jonas-paprotka.de/ref/codeunit/7202-synthetic-relations/source/#L237) calls `GetVirtualTableDetails`
- [238](https://jonas-paprotka.de/ref/codeunit/7202-synthetic-relations/source/#L238) writes [Table 5378 Synth. Relation Mapping Buffer](https://jonas-paprotka.de/ref/table/5378-synth-relation-mapping-buffer/) Insert
- [239](https://jonas-paprotka.de/ref/codeunit/7202-synthetic-relations/source/#L239) calls `GetVirtualTableDetails`
- [240](https://jonas-paprotka.de/ref/codeunit/7202-synthetic-relations/source/#L240) writes [Table 5378 Synth. Relation Mapping Buffer](https://jonas-paprotka.de/ref/table/5378-synth-relation-mapping-buffer/) Insert
- [241](https://jonas-paprotka.de/ref/codeunit/7202-synthetic-relations/source/#L241) calls `GetVirtualTableDetails`
- [242](https://jonas-paprotka.de/ref/codeunit/7202-synthetic-relations/source/#L242) writes [Table 5378 Synth. Relation Mapping Buffer](https://jonas-paprotka.de/ref/table/5378-synth-relation-mapping-buffer/) Insert
- [243](https://jonas-paprotka.de/ref/codeunit/7202-synthetic-relations/source/#L243) calls `GetVirtualTableDetails`
- [244](https://jonas-paprotka.de/ref/codeunit/7202-synthetic-relations/source/#L244) writes [Table 5378 Synth. Relation Mapping Buffer](https://jonas-paprotka.de/ref/table/5378-synth-relation-mapping-buffer/) Insert

## GetExistingAlternateKeyName

[Line 247](https://jonas-paprotka.de/ref/codeunit/7202-synthetic-relations/source/#L247), internal.

- [253](https://jonas-paprotka.de/ref/codeunit/7202-synthetic-relations/source/#L253) calls [Codeunit 7201 CDS Integration Impl.](https://jonas-paprotka.de/ref/codeunit/7201-cds-integration-impl/) `RegisterConfiguredConnection`

## CreateAlternateKeyForColumns

[Line 258](https://jonas-paprotka.de/ref/codeunit/7202-synthetic-relations/source/#L258), internal.

- [266](https://jonas-paprotka.de/ref/codeunit/7202-synthetic-relations/source/#L266) calls [Codeunit 7201 CDS Integration Impl.](https://jonas-paprotka.de/ref/codeunit/7201-cds-integration-impl/) `RegisterConfiguredConnection`

## GetNativeTableDetails

[Line 283](https://jonas-paprotka.de/ref/codeunit/7202-synthetic-relations/source/#L283), local.

- [286](https://jonas-paprotka.de/ref/codeunit/7202-synthetic-relations/source/#L286) calls `GetTableDetailsFromTableId`
- [288](https://jonas-paprotka.de/ref/codeunit/7202-synthetic-relations/source/#L288) calls `GetFieldDetailsFromFieldId`

## GetExistingAlternateKeyName

[Line 319](https://jonas-paprotka.de/ref/codeunit/7202-synthetic-relations/source/#L319), local.

- [329](https://jonas-paprotka.de/ref/codeunit/7202-synthetic-relations/source/#L329) calls `ColumnsInKeyMatchNativeFields`

## VerifyKeyForTableAndColumnsExist

[Line 346](https://jonas-paprotka.de/ref/codeunit/7202-synthetic-relations/source/#L346), local.

- [351](https://jonas-paprotka.de/ref/codeunit/7202-synthetic-relations/source/#L351) calls `GetExistingAlternateKeyName`
- [353](https://jonas-paprotka.de/ref/codeunit/7202-synthetic-relations/source/#L353) calls `CreateAlternateKeyForColumns`

## CreateAlternateKeyForColumns

[Line 382](https://jonas-paprotka.de/ref/codeunit/7202-synthetic-relations/source/#L382), local.

- [391](https://jonas-paprotka.de/ref/codeunit/7202-synthetic-relations/source/#L391) calls `GetNewDotNetStringArrayInstance`
- [398](https://jonas-paprotka.de/ref/codeunit/7202-synthetic-relations/source/#L398) calls `GetNewKeyName`

## GetNewKeyName

[Line 415](https://jonas-paprotka.de/ref/codeunit/7202-synthetic-relations/source/#L415), local.

- [419](https://jonas-paprotka.de/ref/codeunit/7202-synthetic-relations/source/#L419) calls `GenerateRandomAlternateKeyName`
- [421](https://jonas-paprotka.de/ref/codeunit/7202-synthetic-relations/source/#L421) calls `GenerateRandomAlternateKeyName`

## InsertSyntheticRelationWithRetry

[Line 433](https://jonas-paprotka.de/ref/codeunit/7202-synthetic-relations/source/#L433), local.

- [435](https://jonas-paprotka.de/ref/codeunit/7202-synthetic-relations/source/#L435) calls `TryInsertingSyntheticRelation`
- [438](https://jonas-paprotka.de/ref/codeunit/7202-synthetic-relations/source/#L438) writes [Table 5376 CDS BC Table Relation](https://jonas-paprotka.de/ref/table/5376-cds-bc-table-relation/) Insert

## TryInsertingSyntheticRelation

[Line 442](https://jonas-paprotka.de/ref/codeunit/7202-synthetic-relations/source/#L442), local.

- [444](https://jonas-paprotka.de/ref/codeunit/7202-synthetic-relations/source/#L444) writes [Table 5376 CDS BC Table Relation](https://jonas-paprotka.de/ref/table/5376-cds-bc-table-relation/) Insert

## Source

AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at 4303e5e584d3aa5d9e98cbc615525a5396ad6ed7.

JOP-AL, 2026-11-20.
