---
id: object/codeunit/47001
type: object
title: Codeunit 47001 "SL Cloud Migration"
summary: Codeunit 47001 "SL Cloud Migration" in HybridSL (Microsoft.DataMigration.SL). 5 public procedures, 1 events, 1 event subscribers. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - codeunit
  - hybridsl
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: 62f1ac42bce491c7ab4deeb6e5e8ad421bf3d6759a5bd3d2b92af214fde74ed6
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/HybridSL/app/src/codeunits/SLCloudMigration.Codeunit.al
    title: src/Apps/W1/HybridSL/app/src/codeunits/SLCloudMigration.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: 47001
name: SL Cloud Migration
namespace: Microsoft.DataMigration.SL
app: HybridSL
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: 7
  events: 1
  subscribers: 1
relations:
  out: 1
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 1
  calls: 11
  called_by: 0
  implements: 0
---

# Codeunit 47001 "SL Cloud Migration"

> Codeunit 47001 "SL Cloud Migration" in HybridSL (Microsoft.DataMigration.SL). 5 public procedures, 1 events, 1 event subscribers. Introduced in BC29, still in BC30.

HybridSL · Microsoft.DataMigration.SL · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/HybridSL/app/src/codeunits/SLCloudMigration.Codeunit.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| Access | Internal |
| TableNo | Hybrid Replication Summary |

## Events published

- `OnUpgradeSLCompany(var Success: Boolean)` (integration)
  - subscribers: [Codeunit 47001 "SL Cloud Migration"](../codeunit/47001.md) HandleOnUpgradeSLCompany

## Event subscriptions

- HandleOnUpgradeSLCompany subscribes to Codeunit "SL Cloud Migration" OnUpgradeSLCompany

## Procedures

- `UpgradeSLCompany()` (internal)
- `InitiateSLMigration()` (internal)
- `CreateDataMigrationStatusRecords(DestinationTableID: Integer; NumberOfRecords: Integer; StagingTableID: Integer; CodeunitToRun: Integer)` (internal)
- `CreateDataMigrationEntites(var DataMigrationEntity: Record "Data Migration Entity"): Boolean` (internal)
- `CreateConfiguredDataMigrationStatusRecords()` (internal)

## Triggers

OnRun

## Relations

- runs on [Table 4001 "Hybrid Replication Summary"](../table/4001.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 47023 "SL Helper Functions"](../codeunit/47023.md) (22 calls: `CreateDataMigrationStatusRecords → GetMigrationTypeTxt`, `InitiateSLMigration → CreatePreMigrationData`, `InitiateSLMigration → DeleteExistingCustomerPostingGroups`, …)
- [Codeunit 47024 "SL Migration Error Handler"](../codeunit/47024.md) (3 calls: `HandleOnUpgradeSLCompany → GetErrorOccurred`, `OnRun → ClearErrorOccurred`, `OnRun → ErrorOccurredDuringLastUpgrade`)
- [Codeunit 47020 "SL Dimensions"](../codeunit/47020.md) (2 calls: `InitiateSLMigration → CreateSLCodes`, `InitiateSLMigration → InsertSLSegmentsForDimensionSets`)
- [Codeunit 47002 "SL Populate Account History"](../codeunit/47002.md) (1 call: `InitiateSLMigration → (object)`)
- [Codeunit 47003 "SL Populate Fiscal Periods"](../codeunit/47003.md) (1 call: `InitiateSLMigration → CreateSLFiscalPeriodsFromGLSetup`)
- [Codeunit 47005 "SL Wizard Integration"](../codeunit/47005.md) (1 call: `InitiateSLMigration → RegisterSLDataMigrator`)
- [Codeunit 47013 "SL Hybrid Management"](../codeunit/47013.md) (1 call: `OnRun → InvokeCompanyUpgrade`)
- [Codeunit 47015 "SL Hybrid Handle Upgrade Error"](../codeunit/47015.md) (1 call: `OnRun → MarkUpgradeFailed`)
- [Codeunit 47019 "SL Populate Accounts"](../codeunit/47019.md) (1 call: `InitiateSLMigration → PopulateSLAccounts`)
- [Codeunit 6100 "Data Migration Facade"](../codeunit/6100.md) (1 call: `InitiateSLMigration → StartMigration`)
- [Table 47005 "SL Fiscal Periods"](../table/47005.md) (1 call: `InitiateSLMigration → (object)`)

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