---
id: object/table/4009
type: object
title: Table 4009 "Migration Table Mapping"
summary: Table 4009 "Migration Table Mapping" in HybridBaseDeployment (Microsoft.DataMigration). 9 fields, 18 public procedures. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - table
  - hybridbasedeployment
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: d28b4a84d94ee4e77971386328d39feb0531a8b9651a95150e3af3618f1f299c
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/HybridBaseDeployment/app/src/tables/MigrationTableMapping.Table.al
    title: src/Apps/W1/HybridBaseDeployment/app/src/tables/MigrationTableMapping.Table.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: table
object_id: 4009
name: Migration Table Mapping
namespace: Microsoft.DataMigration
app: HybridBaseDeployment
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: 9
  procedures: 20
  events: 0
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 2
  extended_by: 0
  event_subscribers: 4
  calls: 2
  called_by: 0
  implements: 0
---

# Table 4009 "Migration Table Mapping"

> Table 4009 "Migration Table Mapping" in HybridBaseDeployment (Microsoft.DataMigration). 9 fields, 18 public procedures. Introduced in BC29, still in BC30.

HybridBaseDeployment · Microsoft.DataMigration · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/HybridBaseDeployment/app/src/tables/MigrationTableMapping.Table.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| Extensible | false |
| DataClassification | SystemMetadata |

## Fields

Explanation: the field's ToolTip in the code; without one, the ToolTip of a page control bound to the field (marked via the page); without that, its Caption (marked caption) when that differs from the name.

| No. | Name | Type | Explanation | Notes |
|---|---|---|---|---|
| 1 | App ID | Guid | — | TableRelation "Published Application".ID |
| 2 | Table ID | Integer | Specifies the ID of the target table. <small>via [Page 4009 "Migration Table Mapping"](../page/4009.md)</small> | NotBlank |
| 3 | Table Name | Text[30] | Specifies the name of the table for the mapping. <small>via [Page 4009 "Migration Table Mapping"](../page/4009.md)</small> | NotBlank |
| 4 | Source Table Name | Text[128] | Specifies the name of the source table for the mapping. This is used in the case that the name of the table differs between the source and destination databases. <small>via [Page 4009 "Migration Table Mapping"](../page/4009.md)</small> | NotBlank |
| 5 | Data Per Company | Boolean | Specifies if the table data is per company <small>via [Page 4009 "Migration Table Mapping"](../page/4009.md)</small> |  |
| 6 | Locked | Boolean | — |  |
| 8 | Extension Name | Text[250] | — | FlowField: lookup("Published Application".Name where(ID = field("App ID"))) |
| 9 | Extension Package ID | Guid | — | FlowField: lookup("Published Application"."Package ID" where(ID = field("App ID"))) |
| 10 | Target Table Type | Enum "Migration Table Type" | Specifies the type of the target table. <small>via [Page 4009 "Migration Table Mapping"](../page/4009.md)</small> | enum [Enum 4009 "Migration Table Type"](../enum/4009.md) |

## Keys

- PK: App ID, Table ID (clustered)

## Trigger event subscribers

- OnAfterDeleteEvent: [Codeunit 40022 "Telemetry Subscriber"](../codeunit/40022.md) LogTableMappingDelete
- OnAfterInsertEvent: [Codeunit 40022 "Telemetry Subscriber"](../codeunit/40022.md) LogTableMappingInsert
- OnAfterModifyEvent: [Codeunit 40022 "Telemetry Subscriber"](../codeunit/40022.md) LogTableMappingModify
- OnAfterRenameEvent: [Codeunit 40022 "Telemetry Subscriber"](../codeunit/40022.md) LogTableMappingRename

## Procedures

- `ValidateSourceTableName(var MigrationTableMapping: Record "Migration Table Mapping"; SourceTableName: Text)` (internal)
- `InvalidExtensionPublishers(): Text`
- `UpdateExtensionName(var ExtensionName: Text)`
- `LookupApp(var PublishedApplication: Record "Published Application"): Boolean` (internal)
- `GetSourceTableAppID(var MigrationTableMapping: Record "Migration Table Mapping"): Text` (internal)
- `GetSourceTableAppID(SourceTableName: Text): Text` (internal)
- `GetSourceTableName(var MigrationTableMapping: Record "Migration Table Mapping"): Text` (internal)
- `ParseSourceTableName(SourcetableName: Text): Text` (internal)
- `GetExtensionSeparatorCharacter(): Text` (internal)
- `FilterOutBlacklistedPublishers(var PublishedApplication: Record "Published Application")` (internal)
- `SetSourceTableName(SourceTableAppID: Text)` (internal)
- `ImportMigrationTableMappings()`
- `ImportFromJson(TableMappingsJsonObject: JsonObject)`
- `DownloadMigrationTableMappings()`
- `ExportMigrationTableMappings(): JsonObject`
- `ExportFromJson(var MigrationTableMapping: Record "Migration Table Mapping"): JsonObject`
- `TrimSourceTableName(SourceTableName: Text): Text` (internal)
- `UpdateObjectsFilter(var PublishedApplication: Record "Published Application"; var AppFilter: Text; var ExtensionsFilter: Text)` (internal)

Plus 2 local procedures.

## Pages and codeunits on this table

- [Page 40022 "Cloud Mig Table Mapping API"](../page/40022.md) (source table)
- [Page 4009 "Migration Table Mapping"](../page/4009.md) (source table)

## 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) (2 calls: `DownloadMigrationTableMappings → CreateInStream`, `DownloadMigrationTableMappings → CreateOutStream`)
- [Codeunit 2504 "Extension Management"](../codeunit/2504.md) (1 call: `UpdateObjectsFilter → IsInstalledByPackageId`)

## 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: "table", object_name: "Migration Table Mapping")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
