---
id: object/table/9651
type: object
title: Table 9651 "Report Layout Selection"
summary: Table 9651 "Report Layout Selection" in Base Application (Microsoft.Foundation.Reporting). 7 fields, 11 public procedures. Present since at least BC23, still in BC30, changed in BC24-26, BC28-29.
tier: official
language: en
tags:
  - table
  - base application
versions:
  introduced: null
  last_changed: "29"
  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: d4d8e3d3e0788a98418591489382bbd6bac501b172fe9b7a21cdb547baba2222
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Foundation/Reporting/ReportLayoutSelection.Table.al
    title: src/Layers/W1/BaseApp/Foundation/Reporting/ReportLayoutSelection.Table.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn:
    - https://learn.microsoft.com/dynamics365/business-central/ui-excel-report-layouts
    - https://learn.microsoft.com/dynamics365/business-central/ui-get-started-layouts
    - https://learn.microsoft.com/dynamics365/business-central/ui-how-change-layout-currently-used-report
    - https://learn.microsoft.com/dynamics365/business-central/ui-how-create-custom-report-layout
    - https://learn.microsoft.com/dynamics365/business-central/ui-how-import-and-export-report-layout
    - https://learn.microsoft.com/dynamics365/business-central/ui-manage-report-layouts
    - https://learn.microsoft.com/dynamics365/business-central/ui-rdlc-report-layouts
    - https://learn.microsoft.com/dynamics365/business-central/ui-set-report-layout
    - https://learn.microsoft.com/dynamics365/business-central/ui-update-report-layouts
  objects: []
  features: []
  topics:
    - topic/business-central/analytics-business-intelligence-and-repo/develop-reports/develop-report-layouts
    - topic/business-central/analytics-business-intelligence-and-repo/use-reports-in-daily-work
    - topic/business-central/get-started/get-productive-in-business-central/change-the-look-of-externally-facing-doc
    - topic/business-central/get-started/get-productive-in-business-central/change-the-look-of-externally-facing-doc/use-obsolete-features
    - topic/business-central/integrate-with-other-applications/microsoft-office-apps-and-microsoft-365/microsoft-excel
    - topic/dev-itpro/development/data-analytics-and-reporting
    - topic/dev-itpro/development/programming-in-the-al-language/developing-reports/report-layouts
    - topic/dev-itpro/integration/integrating-business-central-with-office/integrating-with-microsoft-excel
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: table
object_id: 9651
name: Report Layout Selection
namespace: Microsoft.Foundation.Reporting
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "24"
  - "25"
  - "26"
  - "28"
  - "29"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 7
  procedures: 13
  events: 0
  subscribers: 0
relations:
  out: 2
  referenced_by: 0
  pages: 1
  extended_by: 0
  event_subscribers: 0
  calls: 1
  called_by: 0
  implements: 0
---

# Table 9651 "Report Layout Selection"

> Table 9651 "Report Layout Selection" in Base Application (Microsoft.Foundation.Reporting). 7 fields, 11 public procedures. Present since at least BC23, still in BC30, changed in BC24-26, BC28-29.

Base Application · Microsoft.Foundation.Reporting · BC23-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Foundation/Reporting/ReportLayoutSelection.Table.al) · facts from BC29

Learn documents this table through its pages: [Page 9652 "Report Layout Selection"](../page/9652.md) (9 Learn pages).

## Properties

| Property | Value |
|---|---|
| Caption | Report Layout Selection |
| DataClassification | CustomerContent |

## 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 | Report ID | Integer | Specifies the object ID of the report. |  |
| 2 | Report Name | Text[80] | Specifies the name of the report. | not editable |
| 3 | Company Name | Text[30] | — | TableRelation Company |
| 4 | Type | Option | Specifies the type of the report layout that is currently used on the report. | OptionCaption: RDLC,Word,Custom Layout,Excel,External |
| 6 | Custom Report Layout Code | Code[20] | Specifies the custom report layout. | TableRelation [Table 9650 "Custom Report Layout"](../table/9650.md) ("Custom Report Layout" where("Report ID" = field("Report ID"))) |
| 7 | Report Layout Description | Text[250] | — | FlowField: lookup("Custom Report Layout".Description where(Code = field("Custom Report Layout Code"))) |
| 8 | Report Caption | Text[80] | — | FlowField: lookup("Report Metadata".Caption where(ID = field("Report ID"))); not editable |

## Keys

- Key1: Report ID, Company Name (clustered)

## Procedures

- `GetDefaultType(ReportID: Integer): Integer`
- `HasLayoutOfType(ReportID: Integer; LayoutType: ReportLayoutType): Boolean` (internal)
- `HasWordLayout(ReportID: Integer): Boolean`
- `HasExternalLayout(ReportID: Integer): Boolean`
- `SelectedBuiltinLayoutType(ReportID: Integer): Integer`
- `GetTempLayoutSelected(): Code[20]`
- `GetTempSelectedLayoutName(): Text[250]`
- `SetTempLayoutSelected(NewTempSelectedLayoutCode: Code[20])`
- `SetTempLayoutSelectedName(NewTempSelectedLayoutName: Text[250]; AppID: Guid)`
- `SetTempLayoutSelectedName(NewTempSelectedLayoutName: Text[250])`
- `ClearTempLayoutSelected()`

Plus 2 local procedures.

## Triggers

OnInsert

## Relations

- Report Layout Description: CalcFormula [Table 9650 "Custom Report Layout"](../table/9650.md)
- Custom Report Layout Code: TableRelation [Table 9650 "Custom Report Layout"](../table/9650.md)

## Pages and codeunits on this table

- [Page 9652 "Report Layout Selection"](../page/9652.md) (source table)

## 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 9654 "Design-time Report Selection"](../codeunit/9654.md) (6 calls: `ClearTempLayoutSelected → SetSelectedCustomLayout`, `ClearTempLayoutSelected → SetSelectedLayout`, `GetTempLayoutSelected → GetSelectedCustomLayout`, …)

## Across versions

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

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: "table", object_name: "Report Layout Selection")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
