---
id: object/table/5393
type: object
title: Table 5393 "CDS Company"
summary: Table 5393 "CDS Company" in Base Application (Microsoft.Integration.D365Sales). 27 fields. Present since at least BC23, still in BC30, changed in BC24, BC28.
tier: official
language: en
tags:
  - table
  - base application
versions:
  introduced: null
  last_changed: "28"
  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: 98bf7985487664d5e2c8c821530669b73a99b0ae2bb92c9aa31bfadfd943de58
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Integration/D365Sales/CDSCompany.Table.al
    title: src/Layers/W1/BaseApp/Integration/D365Sales/CDSCompany.Table.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn:
    - https://learn.microsoft.com/dynamics365/business-central/admin-common-data-service
  objects: []
  features: []
  topics:
    - topic/business-central/integrate-with-other-applications/microsoft-dataverse
    - topic/dev-itpro/integration/integrating-with-microsoft-dataverse/data-synchronization
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: table
object_id: 5393
name: CDS Company
caption: Company
namespace: Microsoft.Integration.D365Sales
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "24"
  - "28"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 27
  procedures: 0
  events: 0
  subscribers: 0
relations:
  out: 17
  referenced_by: 24
  pages: 1
  extended_by: 0
  event_subscribers: 0
  calls: 0
  called_by: 0
  implements: 0
---

# Table 5393 "CDS Company"

> Table 5393 "CDS Company" in Base Application (Microsoft.Integration.D365Sales). 27 fields. Present since at least BC23, still in BC30, changed in BC24, BC28.

Base Application · Microsoft.Integration.D365Sales · captioned "Company" · BC23-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Integration/D365Sales/CDSCompany.Table.al) · facts from BC29

Learn documents this table through its pages: [Page 7214 "CDS Companies"](../page/7214.md) (1 Learn page).

## Properties

| Property | Value |
|---|---|
| Caption | Company |
| TableType | CRM |
| DataClassification | CustomerContent |
| LookupPageId | CDS Companies |
| DrillDownPageId | CDS Companies |

## 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 | CompanyId | Guid | Specifies the ID of the company. | DataClassification SystemMetadata |
| 2 | CreatedOn | DateTime | Created On <small>caption</small> | DataClassification SystemMetadata |
| 3 | CreatedBy | Guid | Created By <small>caption</small> | TableRelation [Table 5340 "CRM Systemuser"](../table/5340.md) ("CRM Systemuser".SystemUserId); DataClassification EndUserPseudonymousIdentifiers |
| 4 | ModifiedOn | DateTime | Modified On <small>caption</small> | DataClassification SystemMetadata |
| 5 | ModifiedBy | Guid | Modified By <small>caption</small> | TableRelation [Table 5340 "CRM Systemuser"](../table/5340.md) ("CRM Systemuser".SystemUserId); DataClassification EndUserPseudonymousIdentifiers |
| 6 | CreatedOnBehalfBy | Guid | Created By (Delegate) <small>caption</small> | TableRelation [Table 5340 "CRM Systemuser"](../table/5340.md) ("CRM Systemuser".SystemUserId); DataClassification EndUserPseudonymousIdentifiers |
| 7 | ModifiedOnBehalfBy | Guid | Modified By (Delegate) <small>caption</small> | TableRelation [Table 5340 "CRM Systemuser"](../table/5340.md) ("CRM Systemuser".SystemUserId); DataClassification EndUserPseudonymousIdentifiers |
| 8 | OwnerId | Guid | Owner <small>caption</small> | TableRelation [Table 5340 "CRM Systemuser"](../table/5340.md), [Table 5359 "CRM Team"](../table/5359.md) (if (OwnerIdType = const(systemuser)) "CRM Systemuser".SystemUserId else if (OwnerIdType = const(team)) "CRM Team".TeamId); DataClassification EndUserPseudonymousIdentifiers |
| 9 | OwnerIdType | Option | — | DataClassification SystemMetadata |
| 10 | OwningBusinessUnit | Guid | Owning Business Unit <small>caption</small> | TableRelation [Table 5364 "CRM Businessunit"](../table/5364.md) ("CRM Businessunit".BusinessUnitId); DataClassification OrganizationIdentifiableInformation |
| 11 | OwningUser | Guid | Owning User <small>caption</small> | TableRelation [Table 5340 "CRM Systemuser"](../table/5340.md) ("CRM Systemuser".SystemUserId); DataClassification EndUserPseudonymousIdentifiers |
| 12 | OwningTeam | Guid | Owning Team <small>caption</small> | TableRelation [Table 5359 "CRM Team"](../table/5359.md) ("CRM Team".TeamId); DataClassification EndUserPseudonymousIdentifiers |
| 13 | statecode | Option | Status <small>caption</small> | OptionCaption: ,Active,Inactive; DataClassification SystemMetadata |
| 14 | statuscode | Option | Status Reason <small>caption</small> | OptionCaption: ,Active,Inactive; DataClassification SystemMetadata |
| 15 | VersionNumber | BigInteger | Version Number <small>caption</small> | DataClassification SystemMetadata |
| 16 | ImportSequenceNumber | Integer | Import Sequence Number <small>caption</small> | DataClassification SystemMetadata |
| 17 | OverriddenCreatedOn | DateTime | Record Created On <small>caption</small> | DataClassification SystemMetadata |
| 18 | TimeZoneRuleVersionNumber | Integer | Time Zone Rule Version Number <small>caption</small> | DataClassification SystemMetadata |
| 19 | UTCConversionTimeZoneCode | Integer | UTC Conversion Time Zone Code <small>caption</small> | DataClassification SystemMetadata |
| 20 | ExternalId | Text[36] | 'Specifies the ID of the Dataverse company.', Comment = 'Dataverse is the name of a Microsoft Service and should not be translated.' <small>via [Page 7214 "CDS Companies"](../page/7214.md)</small> | DataClassification OrganizationIdentifiableInformation |
| 21 | DefaultOwningTeam | Guid | Default owning team ID <small>caption</small> | TableRelation [Table 5359 "CRM Team"](../table/5359.md) ("CRM Team".TeamId); DataClassification EndUserPseudonymousIdentifiers |
| 22 | Name | Text[30] | Specifies the name of the company. | DataClassification OrganizationIdentifiableInformation |
| 23 | DefaultOwningTeamName | Text[160] | Default owning team name <small>caption</small> | FlowField: lookup("CRM Team".Name where(TeamId = field(DefaultOwningTeam))) |
| 24 | CreatedByName | Text[200] | — | FlowField: lookup("CRM Systemuser".FullName where(SystemUserId = field(CreatedBy))) |
| 25 | ModifiedByName | Text[200] | — | FlowField: lookup("CRM Systemuser".FullName where(SystemUserId = field(ModifiedBy))) |
| 26 | CreatedOnBehalfByName | Text[200] | — | FlowField: lookup("CRM Systemuser".FullName where(SystemUserId = field(CreatedOnBehalfBy))) |
| 27 | ModifiedOnBehalfByName | Text[200] | — | FlowField: lookup("CRM Systemuser".FullName where(SystemUserId = field(ModifiedOnBehalfBy))) |

## Keys

- Key1: CompanyId (clustered)
- Key2: ExternalId

## Relations

- drill-down page [Page 7214 "CDS Companies"](../page/7214.md)
- lookup page [Page 7214 "CDS Companies"](../page/7214.md)
- CreatedByName: CalcFormula [Table 5340 "CRM Systemuser"](../table/5340.md)
- CreatedOnBehalfByName: CalcFormula [Table 5340 "CRM Systemuser"](../table/5340.md)
- ModifiedByName: CalcFormula [Table 5340 "CRM Systemuser"](../table/5340.md)
- ModifiedOnBehalfByName: CalcFormula [Table 5340 "CRM Systemuser"](../table/5340.md)
- CreatedBy: TableRelation [Table 5340 "CRM Systemuser"](../table/5340.md)
- CreatedOnBehalfBy: TableRelation [Table 5340 "CRM Systemuser"](../table/5340.md)
- ModifiedBy: TableRelation [Table 5340 "CRM Systemuser"](../table/5340.md)
- ModifiedOnBehalfBy: TableRelation [Table 5340 "CRM Systemuser"](../table/5340.md)
- OwnerId: TableRelation [Table 5340 "CRM Systemuser"](../table/5340.md) (conditional)
- OwningUser: TableRelation [Table 5340 "CRM Systemuser"](../table/5340.md)
- DefaultOwningTeamName: CalcFormula [Table 5359 "CRM Team"](../table/5359.md)
- DefaultOwningTeam: TableRelation [Table 5359 "CRM Team"](../table/5359.md)
- OwnerId: TableRelation [Table 5359 "CRM Team"](../table/5359.md) (conditional)
- OwningTeam: TableRelation [Table 5359 "CRM Team"](../table/5359.md)
- OwningBusinessUnit: TableRelation [Table 5364 "CRM Businessunit"](../table/5364.md)

## Referenced by

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

- [Table 5341 "CRM Account"](../table/5341.md): CompanyId
- [Table 5342 "CRM Contact"](../table/5342.md): CompanyId
- [Table 5343 "CRM Opportunity"](../table/5343.md): CompanyId
- [Table 5346 "CRM Pricelevel"](../table/5346.md): CompanyId
- [Table 5348 "CRM Product"](../table/5348.md): CompanyId
- [Table 5351 "CRM Quote"](../table/5351.md): CompanyId
- [Table 5353 "CRM Salesorder"](../table/5353.md): CompanyId
- [Table 5355 "CRM Invoice"](../table/5355.md): CompanyId
- [Table 6400 "FS Work Order"](../table/6400.md): CompanyId
- [Table 6402 "FS Work Order Product"](../table/6402.md): CompanyId
- [Table 6404 "FS Project Task"](../table/6404.md): CompanyId
- [Table 6406 "FS Work Order Service"](../table/6406.md): CompanyId
- [Table 6410 "FS Bookable Resource"](../table/6410.md): CompanyId
- [Table 6420 "FS Customer Asset"](../table/6420.md): CompanyId
- [Table 6610 "FS Bookable Resource"](../table/6610.md): CompanyId
- [Table 6611 "FS Bookable Resource Booking"](../table/6611.md): CompanyId
- [Table 6613 "FS Customer Asset"](../table/6613.md): CompanyId
- [Table 6615 "FS Project Task"](../table/6615.md): CompanyId
- [Table 6617 "FS Work Order"](../table/6617.md): CompanyId
- [Table 6618 "FS Work Order Incident"](../table/6618.md): CompanyId
- [Table 6619 "FS Work Order Product"](../table/6619.md): CompanyId
- [Table 6620 "FS Work Order Service"](../table/6620.md): CompanyId
- [Table 6622 "FS Work Order Type"](../table/6622.md): CompanyId
- [Table 6624 "FS Warehouse"](../table/6624.md): CompanyId

## Pages and codeunits on this table

- [Page 7214 "CDS Companies"](../page/7214.md) (source table)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: BC24, BC28

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