---
id: object/table/1152
type: object
title: Table 1152 "COHUB Enviroment"
summary: Table 1152 "COHUB Enviroment" in CompanyHub (Mirosoft.Integration.CompanyHub). 16 fields. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - table
  - companyhub
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: 12f09a98471676c42e9b5625f3b371073cb005211659bf0864713bcc8c477af2
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/CompanyHub/app/src/Setup/COHUBEnviroment.Table.al
    title: src/Apps/W1/CompanyHub/app/src/Setup/COHUBEnviroment.Table.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn:
    - https://learn.microsoft.com/dynamics365/business-central/company-hub-add-company
    - https://learn.microsoft.com/dynamics365/business-central/company-hub
    - https://learn.microsoft.com/dynamics365/business-central/finance
    - https://learn.microsoft.com/dynamics365/business-central/ui-extensions-company-hub
  objects: []
  features: []
  topics:
    - topic/business-central/business-functionality/company-hub
    - topic/business-central/business-functionality/finance
    - topic/business-central/development-and-administration/customize-business-central/customize-with-extensions
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: table
object_id: 1152
name: COHUB Enviroment
namespace: Mirosoft.Integration.CompanyHub
app: CompanyHub
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: 16
  procedures: 0
  events: 0
  subscribers: 0
relations:
  out: 1
  referenced_by: 7
  pages: 2
  extended_by: 0
  event_subscribers: 1
  calls: 0
  called_by: 0
  implements: 0
---

# Table 1152 "COHUB Enviroment"

> Table 1152 "COHUB Enviroment" in CompanyHub (Mirosoft.Integration.CompanyHub). 16 fields. Introduced in BC29, still in BC30.

CompanyHub · Mirosoft.Integration.CompanyHub · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/CompanyHub/app/src/Setup/COHUBEnviroment.Table.al) · facts from BC29

Learn documents this table through its pages: [Page 1166 "COHUB Enviroment List"](../page/1166.md) (4 Learn pages), [Page 1165 "COHUB Enviroment Card"](../page/1165.md) (3).

## Properties

| Property | Value |
|---|---|
| Access | Internal |

## 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 | No. | Code[20] | Specifies the number of the environment. <small>via [Page 1165 "COHUB Enviroment Card"](../page/1165.md)</small> | NotBlank; DataClassification CustomerContent |
| 2 | Name | Text[100] | Specifies the environment's name. <small>via [Page 1165 "COHUB Enviroment Card"](../page/1165.md)</small> | DataClassification CustomerContent |
| 5 | Privacy Blocked | Boolean | Specifies if the companies from this environment are blocked for privacy reasons. <small>via [Page 1165 "COHUB Enviroment Card"](../page/1165.md)</small> | DataClassification CustomerContent |
| 6 | Link | Text[2048] | Specifies the link used to access the environment's companies. <small>via [Page 1165 "COHUB Enviroment Card"](../page/1165.md)</small> | DataClassification CustomerContent |
| 7 | Group Code | Code[20] | 'Select a group for this client.', Comment = 'Select a group for this client.' <small>via [Page 1165 "COHUB Enviroment Card"](../page/1165.md)</small> | TableRelation [Table 1155 "COHUB Group"](../table/1155.md) ("COHUB Group".Code); DataClassification CustomerContent |
| 20 | Address | Text[100] | Specifies the company's address. <small>via [Page 1165 "COHUB Enviroment Card"](../page/1165.md)</small> | DataClassification CustomerContent |
| 21 | Address 2 | Text[50] | Specifies additional address information. <small>via [Page 1165 "COHUB Enviroment Card"](../page/1165.md)</small> | DataClassification CustomerContent |
| 22 | Country/Region Code | Code[10] | Specifies the country or region of the address. <small>via [Page 1165 "COHUB Enviroment Card"](../page/1165.md)</small> | DataClassification CustomerContent |
| 23 | City | Text[30] | Specifies the company's city. <small>via [Page 1165 "COHUB Enviroment Card"](../page/1165.md)</small> | DataClassification CustomerContent |
| 24 | County | Text[30] | Specifies the state, province or county as a part of the address. <small>via [Page 1165 "COHUB Enviroment Card"](../page/1165.md)</small> | DataClassification CustomerContent |
| 25 | Post Code | Code[20] | Specifies the postal code. <small>via [Page 1165 "COHUB Enviroment Card"](../page/1165.md)</small> | DataClassification CustomerContent |
| 40 | Contact Name | Text[100] | Specifies the name of your primary contact. <small>via [Page 1165 "COHUB Enviroment Card"](../page/1165.md)</small> | DataClassification CustomerContent |
| 41 | Contact Phone No. | Text[30] | Specifies the telephone number of your primary contact. <small>via [Page 1165 "COHUB Enviroment Card"](../page/1165.md)</small> | DataClassification CustomerContent |
| 42 | Contact E-Mail | Text[80] | Specifies the email address of primary contact. <small>via [Page 1165 "COHUB Enviroment Card"](../page/1165.md)</small> | DataClassification CustomerContent |
| 103 | Home Page | Text[80] | Specifies the company's home page address. <small>via [Page 1165 "COHUB Enviroment Card"](../page/1165.md)</small> | DataClassification CustomerContent |
| 104 | Include Demo Companies | Boolean | Specifies if the demo companies from this environment should be included or not. <small>via [Page 1165 "COHUB Enviroment Card"](../page/1165.md)</small> | DataClassification CustomerContent |

## Keys

- Key1: No. (clustered)

## Trigger event subscribers

- OnAfterDeleteEvent: [Codeunit 1151 "COHUB Core"](../codeunit/1151.md) OnAfterEnviromentDelete

## Triggers

OnDelete

## Relations

- Group Code: TableRelation [Table 1155 "COHUB Group"](../table/1155.md)

## Referenced by

7 fields in 4 objects relate to this table (TableRelation or CalcFormula).

- [Table 1151 "COHUB Company KPI"](../table/1151.md): Environment Name, Group Code, Enviroment No.
- [Table 1156 "COHUB Group Company Summary"](../table/1156.md): Environment Name, Enviroment No.
- [Table 1153 "COHUB Company Endpoint"](../table/1153.md): Enviroment No.
- [Table 1154 "COHUB User Task"](../table/1154.md): Enviroment No.

## Pages and codeunits on this table

- [Page 1165 "COHUB Enviroment Card"](../page/1165.md) (source table)
- [Page 1166 "COHUB Enviroment List"](../page/1166.md) (source table)
- [Codeunit 1151 "COHUB Core"](../codeunit/1151.md) (codeunit runs on it)
- [Codeunit 1154 "COHUB Url Task Manager"](../codeunit/1154.md) (codeunit runs on it)
- [Codeunit 1156 "COHUB Url Error Handler"](../codeunit/1156.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: "COHUB Enviroment")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
