---
id: object/table/4005
type: object
title: Table 4005 "Hybrid Company"
summary: Table 4005 "Hybrid Company" in HybridBaseDeployment (Microsoft.DataMigration). 8 fields, 6 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: df4964773d83b203ce3d3c6b44c1ea6d1a6223af9bb079f062c99ada1ca474b5
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/HybridBaseDeployment/app/src/tables/HybridCompany.Table.al
    title: src/Apps/W1/HybridBaseDeployment/app/src/tables/HybridCompany.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: 4005
name: Hybrid Company
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: 8
  procedures: 7
  events: 0
  subscribers: 0
relations:
  out: 1
  referenced_by: 11
  pages: 5
  extended_by: 0
  event_subscribers: 0
  calls: 0
  called_by: 0
  implements: 0
---

# Table 4005 "Hybrid Company"

> Table 4005 "Hybrid Company" in HybridBaseDeployment (Microsoft.DataMigration). 8 fields, 6 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/HybridCompany.Table.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| Extensible | false |

## 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 | Name | Text[50] | Specifies the name of the company. <small>via [Page 40015 "Hybrid Companies List"](../page/40015.md)</small> | DataClassification SystemMetadata |
| 2 | Display Name | Text[250] | Specifies the display name of the company. <small>via [Page 40015 "Hybrid Companies List"](../page/40015.md)</small> | DataClassification SystemMetadata |
| 3 | Replicate | Boolean | Specifies whether to migrate the data from this company. <small>via [Page 40015 "Hybrid Companies List"](../page/40015.md)</small> | DataClassification SystemMetadata |
| 4 | Estimated Size | Decimal | Estimated size in GB of the company data to migrate <small>via [Page 4005 "Hybrid Companies"](../page/4005.md)</small> | DataClassification SystemMetadata |
| 20 | Company Initialization Status | Option | Specifies whether the company was successfully initialized or not. <small>via [Page 40015 "Hybrid Companies List"](../page/40015.md)</small> | DataClassification SystemMetadata |
| 21 | Company Initialization Failure | Blob | — | DataClassification SystemMetadata |
| 22 | Company Initialization Task | Guid | — | DataClassification SystemMetadata |
| 30 | Replicated | Boolean | Indicates if the company was replicated already. <small>via [Page 4005 "Hybrid Companies"](../page/4005.md)</small> | FlowField: exist("Hybrid Replication Detail" where("Company Name" = field(Name), Status = const(2))) |

## Keys

- PK: Name (clustered)

## Procedures

- `SetSelected(SelectAll: Boolean)`
- `GetTotalMigrationSize(): Decimal`
- `GetTotalOnPremSize(): Decimal`
- `GetCompanyInitFailureMessage(): Text`
- `SetCompanyInitFailureMessage(CompanyInitFailureMessage: Text)`
- `GetRecommendedNumberOfCompaniesToReplicateInBatch(): Integer`

Plus 1 local procedures.

## Relations

- Replicated: CalcFormula [Table 4002 "Hybrid Replication Detail"](../table/4002.md)

## Referenced by

11 fields in 6 objects relate to this table (TableRelation or CalcFormula).

- [Table 40105 "GP Company Additional Settings"](../table/40105.md): Has Hybrid Company, Name
- [Table 4044 "GP Company Migration Settings"](../table/4044.md): Replicate, Name
- [Table 46855 "BC14CompanyMigrationInfo"](../table/46855.md): Replicate, Name
- [Table 47052 "SL Company Migration Settings"](../table/47052.md): Replicate, Name
- [Table 47061 "SL Company Additional Settings"](../table/47061.md): Has Hybrid Company, Name
- [Table 4001 "Hybrid Replication Summary"](../table/4001.md): Companies Not Initialized

## Pages and codeunits on this table

- [Page 40015 "Hybrid Companies List"](../page/40015.md) (source table)
- [Page 40020 "Cloud Migration Companies API"](../page/40020.md) (source table)
- [Page 4005 "Hybrid Companies"](../page/4005.md) (source table)
- [Page 4018 "Hybrid Companies Management"](../page/4018.md) (source table)
- [Page 4023 "Database Size Too Large Dialog"](../page/4023.md) (source table)
- [Codeunit 40016 "Hybrid Company Initialize"](../codeunit/40016.md) (codeunit runs on it)
- [Codeunit 40017 "Hybrid Handle Comp Init Error"](../codeunit/40017.md) (codeunit runs on it)
- [Codeunit 4004 "Create Companies IC"](../codeunit/4004.md) (codeunit runs on it)

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