---
id: object/codeunit/1151
type: object
title: Codeunit 1151 "COHUB Core"
summary: Codeunit 1151 "COHUB Core" in CompanyHub (Mirosoft.Integration.CompanyHub). 22 public procedures, 1 events, 1 event subscribers. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - codeunit
  - 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: 471d46af019eeec4cbc6a78f13aeaad7a21d97081e65fda238de538cb82e797c
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/CompanyHub/app/src/ClientSummary/COHUBCore.Codeunit.al
    title: src/Apps/W1/CompanyHub/app/src/ClientSummary/COHUBCore.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: 1151
name: COHUB Core
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: 0
  procedures: 27
  events: 1
  subscribers: 1
relations:
  out: 1
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 9
  called_by: 10
  implements: 0
---

# Codeunit 1151 "COHUB Core"

> Codeunit 1151 "COHUB Core" in CompanyHub (Mirosoft.Integration.CompanyHub). 22 public procedures, 1 events, 1 event subscribers. 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/ClientSummary/COHUBCore.Codeunit.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| Access | Internal |
| TableNo | COHUB Enviroment |

## Events published

- `OnGetResourceURL(var ResourceURL: Text; var Handled: Boolean)` (integration)

## Event subscriptions

- OnAfterEnviromentDelete subscribes to Table "COHUB Enviroment" OnAfterDeleteEvent

## Procedures

- `GoToCompany(COHUBEnviroment: Record "COHUB Enviroment"; Company: Text)`
- `UpdateEnviromentCompany(EnviromentNumber: Code[20]; CompanyName: Text[50]; AssignedTo: Guid)`
- `SetUserTaskComplete(EnviromentNumber: Code[20]; CompanyName: Text[50]; AssignedTo: Guid; TaskId: Integer)`
- `ShowSetupCompanyHubNotification()`
- `UpdateAllCompanies(UpdatateAsync: Boolean)`
- `OpenEnviroment(NoClientsEnteredNotification: Notification)`
- `DontShowAgainSetupCompanyHubNotification(SetupCompanyHubNotification: Notification)`
- `ValidateEnviromentUrl(COHUBEnviroment: Record "COHUB Enviroment"): Boolean`
- `AppendRedirectedFromSignupUrl(var EnviromentLink: Text[2048])`
- `VerifyForDuplicates(CurrentCOHUBEnviroment: Record "COHUB Enviroment"; var EnviromentLink: Text[2048])`
- `GetCRONUSEnviromentName(): Text[50]`
- `LogFailure(ErrorText: Text; SourceRecordRef: RecordRef)`
- `IsPPE(): Boolean`
- `GetFixedWebServicesUrl(): Text`
- `GetFixedClientUrl(): Text`
- `GetResourceUrl(): Text`
- `ExportEnviroments()`
- `ImportEnviroments()`
- `ShowNotSupportedOnPremNotification(): Boolean`
- `GetEnviromentManagementUrl(): Text`
- `GetEnviromentNameAndEnviroment(COHUBEnviromentRecord: Record "COHUB Enviroment"; var EnviromentName: Text; var EnviromentNameAndEnviroment: Text)`
- `GetFeatureTelemetryName(): Text` (internal)

Plus 3 local procedures.

## Triggers

OnRun

## Relations

- runs on [Table 1152 "COHUB Enviroment"](../table/1152.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 8703 "Feature Telemetry"](../codeunit/8703.md) (10 calls: `GoToCompany → LogUptake`, `GoToCompany → LogUsage`, `ImportEnviroments → LogUptake`, …)
- [Codeunit 1154 "COHUB Url Task Manager"](../codeunit/1154.md) (2 calls: `UpdateAllCompanies → (object)`, `ValidateEnviromentUrl → FetchCompanies`)
- [Codeunit 1155 "COHUB Comp. Url Task Manager"](../codeunit/1155.md) (2 calls: `SetUserTaskComplete → SetTaskComplete`, `UpdateEnviromentCompany → GatherKPIData`)
- [Codeunit 4100 "Temp Blob"](../codeunit/4100.md) (2 calls: `ExportEnviroments → CreateInStream`, `ExportEnviroments → CreateOutStream`)
- [Codeunit 1156 "COHUB Url Error Handler"](../codeunit/1156.md) (1 call: `UpdateAllCompanies → (object)`)
- [Codeunit 1162 "COHUB Group Summary Sync"](../codeunit/1162.md) (1 call: `ValidateEnviromentUrl → (object)`)
- [Codeunit 457 "Environment Information"](../codeunit/457.md) (1 call: `ShowNotSupportedOnPremNotification → IsOnPrem`)
- [Codeunit 9005 "Url Helper"](../codeunit/9005.md) (1 call: `GetFixedClientUrl → GetFixedClientEndpointBaseUrl`)
- [Page 1166 "COHUB Enviroment List"](../page/1166.md) (1 call: `OpenEnviroment → (object)`)

## Called by

- [Codeunit 1164 "COHUB API Request"](../codeunit/1164.md) (10 calls: `GetGuestAccessToken → LogFailure`, `InvokeAPI → GetEnviromentNameAndEnviroment`, `InvokeAPI → GetResourceUrl`, …)
- [Codeunit 1163 "COHUB Reload Companies"](../codeunit/1163.md) (3 calls: `OnRun → GetFeatureTelemetryName`, `OnRun → ShowNotSupportedOnPremNotification`, `OnRun → UpdateAllCompanies`)
- [Page 1152 "COHUB Company Summary"](../page/1152.md) (3 calls: `OnOpenPage → ShowNotSupportedOnPremNotification`, `OnOpenPage → ShowSetupCompanyHubNotification`, `OnOpenPage → UpdateAllCompanies`)
- [Page 1165 "COHUB Enviroment Card"](../page/1165.md) (2 calls: `OnOpenPage → GetFeatureTelemetryName`, `OnOpenPage → ShowNotSupportedOnPremNotification`)
- [Page 1166 "COHUB Enviroment List"](../page/1166.md) (2 calls: `OnOpenPage → GetFeatureTelemetryName`, `OnOpenPage → ShowNotSupportedOnPremNotification`)
- [Codeunit 1154 "COHUB Url Task Manager"](../codeunit/1154.md) (1 call: `FetchCompanies → GetFeatureTelemetryName`)
- [Codeunit 1156 "COHUB Url Error Handler"](../codeunit/1156.md) (1 call: `OnRun → LogFailure`)
- [Codeunit 1162 "COHUB Group Summary Sync"](../codeunit/1162.md) (1 call: `OnRun → GetFeatureTelemetryName`)
- [Page 1153 "COHUB Company Short Summary"](../page/1153.md) (1 call: `OnOpenPage → UpdateAllCompanies`)
- [Page 1167 "COHUB Companies Overview"](../page/1167.md) (1 call: `OnOpenPage → GetFeatureTelemetryName`)

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