Skip to content
D365 Reference

CompanyInfo

mainShared across companies

The legal-entity master — one row per company, carrying its DataArea code and registration and tax numbers; the company name and party details live on its DirPartyTable base record

Notes

CompanyInfo derives from DirPartyTable (a legal entity is a party), so party fields like Name, PartyNumber, and LanguageId are inherited — and a Synapse Link / Fabric Link export lands only a derived table's own fields, so they are not in the landed companyinfo. Sync DirPartyTable too and join on RecId (base and derived rows share it) to reach them — see the extraction guide. Joins to DataArea 1:1 on its DataArea field.

What the badges mean
main
Table group: how F&O categorizes the table's role — main entity, group/header, transaction, worksheet header, worksheet line, reference, parameter, or framework.
Shared across companies
The table carries no DataAreaId— rows aren’t partitioned per company, so a query never needs (and can’t use) a company filter here (see the quirks guide).
Date-effective
The table carries a ValidFrom/ValidTo effectivity window — a join without a date filter multiplies every key by its history (see the quirks guide).
In field listings, K marks a key field.

Fields

8 fields · 1 key

8 fields.

Table fields: key flag, field name, extended data type, description, data type, length, and quirk flags. 8 fields.
KeyFieldEDTDescriptionTypeLengthFlags
KeyDataAreaDataAreaIdThe company code this legal entity owns — the natural join to DataArea and to every table's dataareaidstring
NameLegal-entity name — inherited from the company's DirPartyTable party record; not in the companyinfo export, land DirPartyTable to get itstring
PartyNumberPartyNumberGlobal-address-book party number of the legal entity — inherited from DirPartyTable; not in the companyinfo exportstring
LanguageIdDefault language of the company — inherited from DirPartyTable; not in the companyinfo exportstring
RegNumCompany registration numberstring
VATNumTax-registration (VAT) numberstring
IsConsolidationCompanyWhether the company exists only to receive consolidations — exclude from operational reportingenum
IsEliminationCompanyWhether the company is an elimination company used in consolidation processingenum

Field provenance: hand-curated.

Boilerplate SQL

Starting point for reading CompanyInfo on Databricks — enums are decoded, 1900-01-01 dates are wrapped to NULL, and the DataAreaId anchor is in place. Set your Unity Catalog location, company, and filter values below; they’re substituted into the SQL and the copy button.

Query parameters

2 parameters not filled: <catalog>, <schema>

-- ============================================================
-- Table  : CompanyInfo The legal-entity master — one row per company, carrying its DataArea code and registration and tax numbers; the company name and party details live on its DirPartyTable base record
-- Purpose: Column-selected read of CompanyInfo — auto-generated from field metadata
-- Grain  : One row per DataArea
-- Notes  : Auto-generated skeleton for Synapse Link / Fabric Link-landed F&O data (lowercase column names). Enums decoded inline where verified; datetimes stored in UTC; 1900-01-01 dates are sentinels mapped to NULL. System/audit columns omitted — see the quirks guide.
-- ============================================================
SELECT
  c.dataarea AS "The company code this legal entity owns — the natural join to DataArea and to every table's dataareaid",
  c.regnum AS "Company registration number",
  c.vatnum AS "Tax-registration (VAT) number",
  c.isconsolidationcompany AS "Whether the company exists only to receive consolidations — exclude from operational reporting",  -- enum: decode c.isconsolidationcompany via GlobalOptionsetMetadata join — see quirks guide #enums
  c.iseliminationcompany AS "Whether the company is an elimination company used in consolidation processing"  -- enum: decode c.iseliminationcompany via GlobalOptionsetMetadata join — see quirks guide #enums
FROM <catalog>.<schema>.companyinfo c
-- Base-table fields: Name, PartyNumber, LanguageId are inherited from DirPartyTable —
-- a derived table's export lands only its own fields, so they are NOT in companyinfo
-- (see the extraction guide). Sync dirpartytable too, then uncomment (rows share recid):
-- LEFT JOIN <catalog>.<schema>.dirpartytable dp ON dp.recid = c.recid
ORDER BY c.dataarea;

Verified September 2026

Relationships

Diagram of 1-hop neighbors — join details below. RecId and InventDim edges are highlighted; they’re the joins newcomers most often get wrong.

Join details

  • CompanyInfoDataAreaforeign key · 1:1
    ON companyinfo.dataarea = dataarea.id

Data Entities That Expose This Table

More Organization Administration tables

Maintained by Summit Analytics, a supply chain analytics practice. The tools and references are free — the consulting is selective.

Part of the Summit Analytics reference library.

Work with the practice

Not affiliated with or endorsed by Microsoft. Microsoft, Dynamics 365, and Microsoft Fabric are trademarks of the Microsoft group of companies.