---
id: object/codeunit/7202
type: object
title: Codeunit 7202 "Synthetic Relations"
summary: Codeunit 7202 "Synthetic Relations" in Base Application (Microsoft.Integration.Dataverse). 15 public procedures. Introduced in BC24, still in BC30.
tier: official
language: en
tags:
  - codeunit
  - base application
versions:
  introduced: "24"
  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: b4baef2dd7950b2c26b5bb68c664cdb45f29182a777b0e6183788c7b63318791
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Integration/Dataverse/SyntheticRelations.Codeunit.al
    title: src/Layers/W1/BaseApp/Integration/Dataverse/SyntheticRelations.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: 7202
name: Synthetic Relations
namespace: Microsoft.Integration.Dataverse
app: Base Application
extends: null
first_version: "24"
last_version: "30"
present_in:
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in: []
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 29
  events: 0
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 2
  called_by: 2
  implements: 0
---

# Codeunit 7202 "Synthetic Relations"

> Codeunit 7202 "Synthetic Relations" in Base Application (Microsoft.Integration.Dataverse). 15 public procedures. Introduced in BC24, still in BC30.

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

## Procedures

- `GetFeatureTelemetryName(): Text` (internal)
- `CreateSyntheticRelation(SynthRelationMappingBuffer: Record "Synth. Relation Mapping Buffer" temporary; NativeTableKey: Text[100])` (internal)
- `LoadExistingBCTableRelations(var TempSynthRelationMappingBuffer: Record "Synth. Relation Mapping Buffer" temporary)` (internal)
- `GetLogicalNameFromAPIPhysicalName(PhysicalName: Text): Text[100]` (internal)
- `GetVirtualTableFields(var TempSynthRelationMappingBuffer: Record "Synth. Relation Mapping Buffer" temporary; TempSyntheticRelationToCreate: Record "Synth. Relation Mapping Buffer" temporary)` (internal)
- `LoadVisibleVirtualTables(var TempSynthRelationMappingBuffer: Record "Synth. Relation Mapping Buffer" temporary)` (internal)
- `GetAllAPIPages(var TempSynthRelationMappingBuffer: Record "Synth. Relation Mapping Buffer" temporary)` (internal)
- `TryToGetVirtualTableAPIPageId(VirtualTableSelected: Record "Synth. Relation Mapping Buffer"): Integer` (internal)
- `GetSynchedIntegrationTables(var TempSynthRelationMappingBuffer: Record "Synth. Relation Mapping Buffer" temporary)` (internal)
- `GetSynchedIntegrationFields(var TempSynthRelationMappingBuffer: Record "Synth. Relation Mapping Buffer" temporary; NativeDataverseTableSelected: Record "Synth. Relation Mapping Buffer")` (internal)
- `DeleteSyntheticRelation(SynthRelationMapping: Record "Synth. Relation Mapping Buffer")` (internal)
- `GetDefaultSyntheticRelations(var TempSynthRelationMappingBuffer: Record "Synth. Relation Mapping Buffer" temporary)` (internal)
- `GetExistingAlternateKeyName(NativeEntity: Text[248]; var NativeFields: array[3] of Text[100]; var KeyName: Text[100]; var KeyNames: List of [Text]): Boolean` (internal)
- `CreateAlternateKeyForColumns(NativeEntity: Text[248]; NativeFields: array[3] of Text[100]; var ExistingKeyNames: List of [Text])` (internal)
- `DoesSynthethicRelationExist(var TempExistingBCTablesRelations: Record "Synth. Relation Mapping Buffer" temporary; TempRelationToFind: Record "Synth. Relation Mapping Buffer" temporary): Boolean` (internal)

Plus 14 local procedures.

## 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 7201 "CDS Integration Impl."](../codeunit/7201.md) (6 calls: `CreateAlternateKeyForColumns → RegisterConfiguredConnection`, `CreateSyntheticRelation → RegisterConfiguredConnection`, `DeleteSyntheticRelation → RegisterConfiguredConnection`, …)
- [Codeunit 8703 "Feature Telemetry"](../codeunit/8703.md) (2 calls: `CreateSyntheticRelation → LogUptake`, `CreateSyntheticRelation → LogUsage`)

## Called by

- [Page 5374 "New Synthetic Relation Wiz."](../page/5374.md) (2 calls: `NextPage → CreateAlternateKeyForColumns`, `NextPage → GetExistingAlternateKeyName`)
- [Page 5376 "Synthetic Relations"](../page/5376.md) (2 calls: `LoadExistingBCTableRelations → LoadExistingBCTableRelations`, `OnOpenPage → GetFeatureTelemetryName`)

## Across versions

- Present in: BC24-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: "Synthetic Relations")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
