---
id: object/table/8125
type: object
title: Table 8125 "Report Filename Pattern"
summary: Table 8125 "Report Filename Pattern" in ReportFilenameManager (Microsoft.Foundation.Reporting.FileNaming). 17 fields, 27 public procedures. Introduced in BC30.
tier: official
language: en
tags:
  - table
  - reportfilenamemanager
versions:
  introduced: "30"
  last_changed: null
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-10-31T00:48:20.076Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: 5528b44363e1aac6afd96b61836fe86de779627063fe91a9d8982903cc2fa672
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/d2abc1d2ceae394331716c8183ef60e1534c2ce0/src/Apps/W1/ReportFilenameManager/app/src/table/ReportFilenamePattern.Table.al
    title: src/Apps/W1/ReportFilenameManager/app/src/table/ReportFilenamePattern.Table.al (main)
    date: null
    commit: d2abc1d2ceae394331716c8183ef60e1534c2ce0
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes:
    - change/bcapps/12610
object_type: table
object_id: 8125
name: Report Filename Pattern
namespace: Microsoft.Foundation.Reporting.FileNaming
app: ReportFilenameManager
extends: null
first_version: "30"
last_version: "30"
present_in:
  - "30"
changed_in: []
source_major: "30"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 17
  procedures: 43
  events: 0
  subscribers: 0
relations:
  out: 3
  referenced_by: 1
  pages: 3
  extended_by: 0
  event_subscribers: 0
  calls: 0
  called_by: 0
  implements: 0
---

# Table 8125 "Report Filename Pattern"

> Table 8125 "Report Filename Pattern" in ReportFilenameManager (Microsoft.Foundation.Reporting.FileNaming). 17 fields, 27 public procedures. Introduced in BC30.

ReportFilenameManager · Microsoft.Foundation.Reporting.FileNaming · BC30 · [source at d2abc1d2](https://github.com/microsoft/BCApps/blob/d2abc1d2ceae394331716c8183ef60e1534c2ce0/src/Apps/W1/ReportFilenameManager/app/src/table/ReportFilenamePattern.Table.al) · facts from BC30

## Properties

| Property | Value |
|---|---|
| Caption | Report Filename Pattern |
| Access | Public |
| DataClassification | CustomerContent |
| LookupPageId | Report Filename Patterns |
| DrillDownPageId | Report Filename Patterns |
| Permissions | tabledata "Report Filename Pattern" = r |

## 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 | Entry No. | Integer | — | not editable; AutoIncrement |
| 2 | Report ID | Integer | Specifies the ID of the report this pattern applies to. Leave it blank to apply the pattern to every report on the same table. | TableRelation "Report Metadata".ID where(ProcessingOnly = const(false)) |
| 3 | Table No. | Integer | Specifies the number of the table this pattern applies to. Table Caption shows it by name. | TableRelation "Table Metadata".ID |
| 4 | Table Filter | Blob | Specifies a filter the records must match for this pattern to apply, such as a reminder level. Leave it blank to apply the pattern to every record in the table. |  |
| 23 | Output Route Filter | Text[250] | Specifies which ways out of Business Central this pattern applies to, such as Print\|Preview. All routes when it is blank. Choose the field to select routes; each one says what produces a file on it. |  |
| 6 | Language Code | Code[10] | Specifies the language this pattern applies to. Leave it blank to apply the pattern to every language. | TableRelation [Table 8 "Language"](../table/8.md) |
| 7 | File Name Pattern | Text[250] | Specifies the file name without the extension. Use placeholders in square brackets, such as Invoice-[No.]. The output format adds the extension automatically. |  |
| 8 | Date Format | Enum "Report Filename Date Format" | Specifies how dates are written in the file name. | enum [Enum 8126 "Report Filename Date Format"](../enum/8126.md) |
| 10 | Max. Values Named | Integer | Specifies how many different values each placeholder lists when one file covers several records. Repeated values are listed once. Beyond this number, only the first and the last value are named, joined by the range word. |  |
| 11 | Separator | Text[5] | Specifies the text placed between the records named in one file, when the file covers several records - for example, a report run for a range of invoices or for several customers. A file for a single record never uses it. To put text between two placeholders, type it into the file name pattern. |  |
| 22 | Range Word | Text[10] | Specifies the word placed between the first and the last record when a run covers more records than are named one by one, so the name reads 10000-to-99999. It sits between two separators. Leave it blank to join the two with the separator only. |  |
| 12 | Enabled | Boolean | Specifies whether this pattern is used. |  |
| 13 | Language Code Field | Integer | Specifies which field on the table holds the language of the record: a field that relates to the Language table. Where a run covers several records, they must all have the same language, or the run has none. Suggested when the table has one such field. | TableRelation Field."No." where(TableNo = field("Table No."), Class = const(Normal)) |
| 14 | App ID | Guid | — | not editable |
| 15 | Placeholder Binding | Blob | — |  |
| 20 | Table Caption | Text[250] | Specifies the table this pattern applies to - the records that one file is named after. It decides which patterns can apply and which fields are offered as placeholders. Choosing a report fills this in. Leave the report blank and choose a table to cover every report on that table. | FlowField: lookup("Table Metadata".Caption where(ID = field("Table No."))); not editable |
| 21 | Report Name | Text[250] | Specifies the report this pattern applies to. Leave it blank to apply the pattern to every report on the same table. | FlowField: lookup("Report Metadata".Caption where(ID = field("Report ID"))); not editable |

## Keys

- PK: Entry No. (clustered)
- Selection: Enabled, Report ID, Table No.
- Grouping: Table No., Report ID, Language Code

## Procedures

- `LookupTableFilter()` (internal)
- `WriteTableFilter(ViewText: Text)` (internal): Sets the filter on the record in memory without saving, for code that builds a row before inserting it.
- `GetTableFilterView(): Text` (internal)
- `HasTableFilter(): Boolean` (internal)
- `GetTableFilterDisplayText(): Text` (internal): The filter as captions and values (GetFilters), not view syntax.
- `NoTableFilterText(): Text` (internal): Shared by the card and the list so both show the same text.
- `LookupOutputRouteFilter()` (internal): Closing the page with Close returns OK, so the ticks are kept as any page edit is.
- `SetOutputRoutes(Routes: List of [Integer])` (internal): Sets the record in memory. No routes, or every route, is stored as blank so routes added later by other extensions are covered too. Any is never stored.
- `GetOutputRoutes(var Routes: List of [Integer])` (internal): Receives enum ordinals; empty when the pattern applies to every route.
- `HasOutputRouteFilter(): Boolean` (internal)
- `AppliesToRoute(Route: Enum "Report Filename Output Route"): Boolean` (internal): A pattern with no route filter applies to every route, including Any.
- `OutputRouteFilterText(): Text` (internal): Route captions joined by \|, or "All routes".
- `DefaultTestRoute(): Enum "Report Filename Output Route"` (internal): The pattern's first route, or Any when it applies to every route.
- `Specificity(HasTableFilterValue: Boolean): Integer` (internal): The higher score wins when several patterns apply. Used both by naming and by Priority, so they cannot disagree. Each criterion has its own power of two; on a tie the pattern created first wins.
- `Priority(): Integer` (internal): 1 (highest) to 32.
- `CanCompeteWith(var Other: Record "Report Filename Pattern"): Boolean` (internal): Each criterion is blank on one side or equal on both. Table filters are not compared; Test Pattern checks real records.
- `HasCompetitor(): Boolean` (internal)
- `NothingCompetesMessage(): Text` (internal)
- `CouldEverApply(): Boolean` (internal): Verify requires a report or a table before a pattern can be enabled.
- `DisplayCaption(): Text` (internal): The report, or else the table, followed by the output routes and language when set.
- `CopyToNewPattern(var NewPattern: Record "Report Filename Pattern")` (internal): The copy is disabled, as an enabled copy would compete with the original.
- `LookupReport()` (internal)
- `ClearReport()` (internal): Keeps the table, so the pattern covers every report on it.
- `LookupTable()` (internal)
- `LookupLanguageCodeField()` (internal)
- `LanguageCodeFieldCaption(): Text` (internal)
- `GetPlaceholderBinding(): Text` (internal)

Plus 16 local procedures.

## Triggers

OnInsert

## Relations

- drill-down page [Page 8125 "Report Filename Patterns"](../page/8125.md)
- lookup page [Page 8125 "Report Filename Patterns"](../page/8125.md)
- Language Code: TableRelation [Table 8 "Language"](../table/8.md)

## Referenced by

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

- [Table 8130 "Report Filename Setup"](../table/8130.md): Enabled Patterns

## Pages and codeunits on this table

- [Page 8125 "Report Filename Patterns"](../page/8125.md) (source table)
- [Page 8126 "Report Filename Pattern Card"](../page/8126.md) (source table)
- [Page 8127 "Report Filename Preview"](../page/8127.md) (source table)

## Recent changes

- 2026-10-27 [#12610 [Report Filename Manager] New app for configurable report output file names - Slice 651696 [vendor work]](../../changes/bcapps/12610.md) (main, BC30, feature, added)

## Across versions

- Present in: BC30
- 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). 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 Filename Pattern")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
