---
id: guideline/microsoft/knowledge/data-modeling/table-design-must-match-bc-table-type-conventions
type: guideline
title: Tables must match one of Business Central's nine table-type conventions
summary: Business Central's Base Application follows nine recurring table types — Master, Supplemental, Subsidiary, Ledger, Register, Journal, Document, Document History, and Setup. Each type fixes a naming pattern, a primary-key shape, and a set of associated pages.
tier: official
language: en
tags:
  - naming-conventions
  - primary-key
  - master-table
  - ledger-table
  - journal-table
  - register-table
  - document-table
  - setup-table
  - subsidiary-table
  - supplemental-table
system: development
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-11-21T00:15:56.434Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: 1521ded4f619336b536ce353917039cc9bc89b86
evidence:
  - kind: guideline
    url: https://github.com/microsoft/BCQuality/blob/main/microsoft/knowledge/data-modeling/table-design-must-match-bc-table-type-conventions.md
    title: "microsoft/BCQuality: Tables must match one of Business Central's nine table-type conventions"
    date: "2026-11-04"
    commit: aaaf6c13c219294fcebf644f1662f4d77061e2f7
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes:
    - change/bcquality/262
    - change/bcquality/157
repo_path: microsoft/knowledge/data-modeling/table-design-must-match-bc-table-type-conventions.md
layer: microsoft
kind: rule
domain: data-modeling
bc_version:
  - all
technologies:
  - al
countries:
  - w1
application_area:
  - all
examples: 2
identifiers:
  - DataCaptionFields
  - LookupPageID
  - DrillDownPageID
  - AutoSplitKey
  - OnOpenPage
---

# Tables must match one of Business Central's nine table-type conventions

> Business Central's Base Application follows nine recurring table types — Master, Supplemental, Subsidiary, Ledger, Register, Journal, Document, Document History, and Setup. Each type fixes a naming pattern, a primary-key shape, and a set of associated pages.

[Rule on GitHub](https://github.com/microsoft/BCQuality/blob/main/microsoft/knowledge/data-modeling/table-design-must-match-bc-table-type-conventions.md) · microsoft layer · data-modeling · BC all · tier official · derived

## Description

Business Central's Base Application follows nine recurring table types —
Master, Supplemental, Subsidiary, Ledger, Register, Journal, Document,
Document History, and Setup. Each type fixes a naming pattern, a
primary-key shape, and a set of associated pages. A new or extended table
whose design doesn't match the conventions of its own type is either
misclassified or built inconsistently with the rest of the application,
and should be flagged in review even if it compiles. Before assigning a
primary key or naming a new table, first identify which of the nine types
it is — that answer fixes almost every other design decision.

## Best Practice

Match the table's design to its type:

1. **Master** (Customer, Item) — one record is the subject; primary key
   `Code[20]` named `No.`; description field in `DataCaptionFields`; Card +
   List (+ Statistics) pages.
2. **Supplemental** (Currency, Language) — used across functional areas;
   primary key `Code[10]` named `Code`; one List page, plural name, set as
   `LookupPageID`.
3. **Subsidiary** (Item Vendor) — subsidiary to a Master/Supplemental
   table; primary key is the parent key field(s), optionally + `Line No.`;
   page shape depends on whether the table carries its own identity: a
   pure parent-join table (Item Vendor) typically gets a plain List page
   filtered by the calling page, while a subsidiary table that supplements
   a master record with its own identity — parent key + own code, e.g.
   Ship-to Address, Customer/Vendor Bank Account — commonly gets a
   List+Card pair instead, for direct editing of that record.
4. **Ledger** (Cust. Ledger Entry) — transactional record of a functional
   area; primary key `Integer` `Entry No.`, always auto-generated by
   posting, never user-editable, no free add/delete; List page as
   `LookupPageID`/`DrillDownPageID`.
5. **Register** (G/L Register) — table of contents for its Ledger, one row
   per posting run; primary key `Integer` `No.`, auto-generated; carries
   `From Entry No.`/`To Entry No.`; List page with a link to the Ledger.
6. **Journal** (Resource Journal Line) — where users enter data before
   posting to a Ledger; primary key Template + Batch + `Integer` `Line No.`;
   Worksheet page with `AutoSplitKey`, a Posting action, and a link to the
   Ledger.
7. **Document** (Sales Header/Line) — posts to Ledgers via Journals, not
   directly; Header primary key `Code[20]` `No.` (or + `Option Document
   Type`); Line primary key = Header key renamed `<Document> No.` +
   `Integer Line No.`; Document/Card page with a Posting action and a lines
   subpage.
8. **Document History** (Posted Sales Invoice Header/Line) — posted copy of
   a Document table, created during posting; mirrors the source table's
   fields; never user-editable; same page shape but the Line-equivalent is
   a List page, not a Worksheet.
9. **Setup** (General Ledger Setup) — exactly one record for a functional
   area; primary key `Code[10]` named `Primary Key`, always blank; one page
   with the key field hidden, whose `OnOpenPage` creates the singleton the
   first time it's opened (`Reset()` → `Get()` → if not found, `Init()` →
   `Insert()`) rather than assuming the record pre-exists.

A table named "Setup" that holds more than one record follows Subsidiary
rules instead — the name alone is not proof of type. When a table's
identity can't be resolved from its definition alone (e.g. a "Setup"-named
table with a real business-field key and no page), say so explicitly
rather than forcing a classification; settling it requires checking actual
row cardinality or call sites, not just the object definition.

These nine types cover Business Central's *business-record* tables — they
are not an exhaustive catalogue of every legitimate table shape. A
temporary/buffer table, a work queue, a log or telemetry table, a
cross-reference/mapping table with no business meaning of its own, or a
staging/working table used only inside one process is not required to fit
any of the nine, and forcing one into the nearest-looking type (usually
Ledger, because it has an `Integer` key, or Subsidiary, because it has a
composite key) produces a harmful redesign recommendation for a table that
was never meant to carry that type's guarantees. Apply this rule only when
the table's name, fields, or usage genuinely establish it as one of the
nine business-record types; when nothing points that way, this rule simply
does not apply — that is not the same as an unresolved classification.

See sample: [`table-design-must-match-bc-table-type-conventions.good.al`](https://github.com/microsoft/BCQuality/blob/main/microsoft/knowledge/data-modeling/table-design-must-match-bc-table-type-conventions.good.al).

## Anti Pattern

A table that mixes conventions from two types — for example, a "Ledger"
table with a user-editable primary key that lets users freely insert or
delete rows — is not "flexible", it is either misclassified or has skipped
a design step. A Ledger table's `Entry No.` must come only from the
posting routine; exposing it as an editable field breaks the type's core
guarantee that entries are an immutable, sequential audit trail.

See sample: [`table-design-must-match-bc-table-type-conventions.bad.al`](https://github.com/microsoft/BCQuality/blob/main/microsoft/knowledge/data-modeling/table-design-must-match-bc-table-type-conventions.bad.al).

## Examples

- [Good: table-design-must-match-bc-table-type-conventions.good.al](https://github.com/microsoft/BCQuality/blob/main/microsoft/knowledge/data-modeling/table-design-must-match-bc-table-type-conventions.good.al)
- [Bad: table-design-must-match-bc-table-type-conventions.bad.al](https://github.com/microsoft/BCQuality/blob/main/microsoft/knowledge/data-modeling/table-design-must-match-bc-table-type-conventions.bad.al)

## Changed by

- [#262 Trim two articles to the 10-keyword limit](../../../../changes/bcquality/262.md), 2026-11-04
- [#157 18 more AL/BC patterns: data-modeling, testing, style, security, error-handling, ui, upgrade, web-services, appsource](../../../../changes/bcquality/157.md), 2026-09-29

---

From microsoft/BCQuality at aaaf6c1, MIT License, Copyright (c) 2026 Microsoft Corporation ([license](../../../LICENSE-BCQuality.txt)).
