---
id: object/codeunit/46851
type: object
title: Codeunit 46851 "BC14 Migration Setup"
summary: Codeunit 46851 "BC14 Migration Setup" in HybridBC14 (Microsoft.DataMigration.BC14Reimplementation). 2 public procedures, 3 events, 1 event subscribers. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - codeunit
  - hybridbc14
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: 5b90c87d2f2933a8ebfaafd97a2c0d5fba86982e49bdef2cd517c1bd57605541
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/HybridBC14/app/src/Setup/BC14MigrationSetup.Codeunit.al
    title: src/Apps/W1/HybridBC14/app/src/Setup/BC14MigrationSetup.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: 46851
name: BC14 Migration Setup
namespace: Microsoft.DataMigration.BC14Reimplementation
app: HybridBC14
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: 8
  events: 3
  subscribers: 1
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 3
  called_by: 60
  implements: 0
---

# Codeunit 46851 "BC14 Migration Setup"

> Codeunit 46851 "BC14 Migration Setup" in HybridBC14 (Microsoft.DataMigration.BC14Reimplementation). 2 public procedures, 3 events, 1 event subscribers. Introduced in BC29, still in BC30.

HybridBC14 · Microsoft.DataMigration.BC14Reimplementation · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/HybridBC14/app/src/Setup/BC14MigrationSetup.Codeunit.al) · facts from BC29

## Events published

- `OnAfterSetupReplicationTableMapping()` (integration)
- `OnBeforeRegisterMappingsForAllMigrators(CompanyName: Text; var SkipDefaultRegistration: Boolean)` (integration)
- `OnAfterSetupReplicationMappings(CompanyName: Text)` (integration)

## Event subscriptions

- HandleOnOpenNewUI subscribes to Page "Intelligent Cloud Management" OnOpenNewUI

## Procedures

- `SetupReplicationTableMappings()`: Sets up replication table mappings for all per-company tables we replicate: Setup/Configuration, Master Data, Transaction, and Historical.
- `InsertPerCompanyMapping(CompanyName: Text; SourceTableID: Integer; DestinationTableID: Integer)`

Plus 2 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 4001 "Hybrid Cloud Management"](../codeunit/4001.md) (1 call: `InsertPerCompanyMapping → CreateReplicationMapping`)
- [Codeunit 46861 "BC14 Wizard"](../codeunit/46861.md) (1 call: `HandleOnOpenNewUI → GetBC14MigrationEnabled`)
- [Codeunit 46866 "BC14 Telemetry"](../codeunit/46866.md) (1 call: `SetupReplicationTableMappings → GetCategory`)

## Called by

- [Codeunit 46850 "BC14 Migration Provider"](../codeunit/46850.md) (1 call: `SetupReplicationTableMappings → SetupReplicationTableMappings`)
- [Codeunit 46865 "BC14 Customer Migrator"](../codeunit/46865.md) (1 call: `RegisterReplicationMappings → InsertPerCompanyMapping`)
- [Codeunit 46867 "BC14 Vendor Migrator"](../codeunit/46867.md) (1 call: `RegisterReplicationMappings → InsertPerCompanyMapping`)
- [Codeunit 46869 "BC14 GL Account Migrator"](../codeunit/46869.md) (1 call: `RegisterReplicationMappings → InsertPerCompanyMapping`)
- [Codeunit 46870 "BC14 Item Migrator"](../codeunit/46870.md) (1 call: `RegisterReplicationMappings → InsertPerCompanyMapping`)
- [Codeunit 46880 "BC14 Posted Sales Inv Migr."](../codeunit/46880.md) (1 call: `RegisterReplicationMappings → InsertPerCompanyMapping`)
- [Codeunit 46881 "BC14 Old G/L Entry Migr."](../codeunit/46881.md) (1 call: `RegisterReplicationMappings → InsertPerCompanyMapping`)
- [Codeunit 46887 "BC14 Dim. Value Migrator"](../codeunit/46887.md) (1 call: `RegisterReplicationMappings → InsertPerCompanyMapping`)
- [Codeunit 46888 "BC14 G/L Entry Migrator"](../codeunit/46888.md) (1 call: `RegisterReplicationMappings → InsertPerCompanyMapping`)
- [Codeunit 46890 "BC14 Dimension Migrator"](../codeunit/46890.md) (1 call: `RegisterReplicationMappings → InsertPerCompanyMapping`)
- [Codeunit 46891 "BC14 Payment Terms Migrator"](../codeunit/46891.md) (1 call: `RegisterReplicationMappings → InsertPerCompanyMapping`)
- [Codeunit 46892 "BC14 Payment Method Migrator"](../codeunit/46892.md) (1 call: `RegisterReplicationMappings → InsertPerCompanyMapping`)
- [Codeunit 46893 "BC14 Currency Migrator"](../codeunit/46893.md) (1 call: `RegisterReplicationMappings → InsertPerCompanyMapping`)
- [Codeunit 46894 "BC14 Curr. Exch. Rate Migrator"](../codeunit/46894.md) (1 call: `RegisterReplicationMappings → InsertPerCompanyMapping`)
- [Codeunit 46895 "BC14 Acct. Period Migrator"](../codeunit/46895.md) (1 call: `RegisterReplicationMappings → InsertPerCompanyMapping`)
- [Codeunit 46897 "BC14 Inv. Post. Group Migrator"](../codeunit/46897.md) (1 call: `RegisterReplicationMappings → InsertPerCompanyMapping`)
- [Codeunit 46898 "BC14 Inv. Post. Setup Migrator"](../codeunit/46898.md) (1 call: `RegisterReplicationMappings → InsertPerCompanyMapping`)
- [Codeunit 46900 "BC14 Country/Region Migrator"](../codeunit/46900.md) (1 call: `RegisterReplicationMappings → InsertPerCompanyMapping`)
- [Codeunit 46901 "BC14 Post Code Migrator"](../codeunit/46901.md) (1 call: `RegisterReplicationMappings → InsertPerCompanyMapping`)
- [Codeunit 46902 "BC14 Language Migrator"](../codeunit/46902.md) (1 call: `RegisterReplicationMappings → InsertPerCompanyMapping`)
- [Codeunit 46903 "BC14 Unit of Measure Migrator"](../codeunit/46903.md) (1 call: `RegisterReplicationMappings → InsertPerCompanyMapping`)
- [Codeunit 46904 "BC14 Cust. Post. Grp. Migrator"](../codeunit/46904.md) (1 call: `RegisterReplicationMappings → InsertPerCompanyMapping`)
- [Codeunit 46905 "BC14 Vend. Post. Grp. Migrator"](../codeunit/46905.md) (1 call: `RegisterReplicationMappings → InsertPerCompanyMapping`)
- [Codeunit 46906 "BC14 GenBus PG Migrator"](../codeunit/46906.md) (1 call: `RegisterReplicationMappings → InsertPerCompanyMapping`)
- [Codeunit 46907 "BC14 GenProd PG Migrator"](../codeunit/46907.md) (1 call: `RegisterReplicationMappings → InsertPerCompanyMapping`)
- [Codeunit 46908 "BC14 VATBus PG Migrator"](../codeunit/46908.md) (1 call: `RegisterReplicationMappings → InsertPerCompanyMapping`)
- [Codeunit 46909 "BC14 VATProd PG Migrator"](../codeunit/46909.md) (1 call: `RegisterReplicationMappings → InsertPerCompanyMapping`)
- [Codeunit 46910 "BC14 Gen. Post. Setup Migrator"](../codeunit/46910.md) (1 call: `RegisterReplicationMappings → InsertPerCompanyMapping`)
- [Codeunit 46911 "BC14 VAT Post. Setup Migrator"](../codeunit/46911.md) (1 call: `RegisterReplicationMappings → InsertPerCompanyMapping`)
- [Codeunit 46912 "BC14 Salesp./Purch. Migrator"](../codeunit/46912.md) (1 call: `RegisterReplicationMappings → InsertPerCompanyMapping`)
- [Codeunit 46913 "BC14 Shipment Method Migrator"](../codeunit/46913.md) (1 call: `RegisterReplicationMappings → InsertPerCompanyMapping`)
- [Codeunit 46914 "BC14 Territory Migrator"](../codeunit/46914.md) (1 call: `RegisterReplicationMappings → InsertPerCompanyMapping`)
- [Codeunit 46915 "BC14 Item Category Migrator"](../codeunit/46915.md) (1 call: `RegisterReplicationMappings → InsertPerCompanyMapping`)
- [Codeunit 46916 "BC14 Item Trk. Code Migrator"](../codeunit/46916.md) (1 call: `RegisterReplicationMappings → InsertPerCompanyMapping`)
- [Codeunit 46917 "BC14 Tariff Number Migrator"](../codeunit/46917.md) (1 call: `RegisterReplicationMappings → InsertPerCompanyMapping`)
- [Codeunit 46918 "BC14 Location Migrator"](../codeunit/46918.md) (1 call: `RegisterReplicationMappings → InsertPerCompanyMapping`)
- [Codeunit 46919 "BC14 Reason Code Migrator"](../codeunit/46919.md) (1 call: `RegisterReplicationMappings → InsertPerCompanyMapping`)
- [Codeunit 46920 "BC14 Source Code Migrator"](../codeunit/46920.md) (1 call: `RegisterReplicationMappings → InsertPerCompanyMapping`)
- [Codeunit 46921 "BC14 Cust. Price Grp. Migrator"](../codeunit/46921.md) (1 call: `RegisterReplicationMappings → InsertPerCompanyMapping`)
- [Codeunit 46922 "BC14 Cust. Disc. Grp. Migrator"](../codeunit/46922.md) (1 call: `RegisterReplicationMappings → InsertPerCompanyMapping`)
- [Codeunit 46923 "BC14 Item Disc. Grp. Migrator"](../codeunit/46923.md) (1 call: `RegisterReplicationMappings → InsertPerCompanyMapping`)
- [Codeunit 46924 "BC14 Fin. Chrg. Terms Migrator"](../codeunit/46924.md) (1 call: `RegisterReplicationMappings → InsertPerCompanyMapping`)
- [Codeunit 46925 "BC14 Reminder Terms Migrator"](../codeunit/46925.md) (1 call: `RegisterReplicationMappings → InsertPerCompanyMapping`)
- [Codeunit 46926 "BC14 Reminder Level Migrator"](../codeunit/46926.md) (1 call: `RegisterReplicationMappings → InsertPerCompanyMapping`)
- [Codeunit 46927 "BC14 Reminder Text Migrator"](../codeunit/46927.md) (1 call: `RegisterReplicationMappings → InsertPerCompanyMapping`)
- [Codeunit 46928 "BC14 No. Series Migrator"](../codeunit/46928.md) (1 call: `RegisterReplicationMappings → InsertPerCompanyMapping`)
- [Codeunit 46929 "BC14 No. Series Line Migrator"](../codeunit/46929.md) (1 call: `RegisterReplicationMappings → InsertPerCompanyMapping`)
- [Codeunit 46930 "BC14 Item Attribute Migrator"](../codeunit/46930.md) (1 call: `RegisterReplicationMappings → InsertPerCompanyMapping`)
- [Codeunit 46931 "BC14 Item Attr. Value Migrator"](../codeunit/46931.md) (1 call: `RegisterReplicationMappings → InsertPerCompanyMapping`)
- [Codeunit 46932 "BC14 Cust. Bank Acct. Migrator"](../codeunit/46932.md) (1 call: `RegisterReplicationMappings → InsertPerCompanyMapping`)
- and 10 more: data/code/graph/29/calls.json

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