---
id: object/codeunit/8143
type: object
title: Codeunit 8143 "Report Filename Defaults"
summary: Codeunit 8143 "Report Filename Defaults" in ReportFilenameManager (Microsoft.Foundation.Reporting.FileNaming). 5 public procedures. Introduced in BC30.
tier: official
language: en
tags:
  - codeunit
  - reportfilenamemanager
versions:
  introduced: "30"
  last_changed: null
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-11-30T14:51:23.155Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: c943568620f275a6ba2af09be99ea064a66afdd8c301c431bb96b195df8a48e8
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/f53bb0f1ecd89fde9f133f9dcaf5bf43cf5f2671/src/Apps/W1/ReportFilenameManager/app/src/codeunit/ReportFilenameDefaults.Codeunit.al
    title: src/Apps/W1/ReportFilenameManager/app/src/codeunit/ReportFilenameDefaults.Codeunit.al (main)
    date: null
    commit: f53bb0f1ecd89fde9f133f9dcaf5bf43cf5f2671
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes:
    - change/bcapps/13732
object_type: codeunit
object_id: 8143
name: Report Filename Defaults
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: 0
  procedures: 10
  events: 0
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 0
  called_by: 0
  implements: 0
---

# Codeunit 8143 "Report Filename Defaults"

> Codeunit 8143 "Report Filename Defaults" in ReportFilenameManager (Microsoft.Foundation.Reporting.FileNaming). 5 public procedures. Introduced in BC30.

ReportFilenameManager · Microsoft.Foundation.Reporting.FileNaming · BC30 · [source at f53bb0f1](https://github.com/microsoft/BCApps/blob/f53bb0f1ecd89fde9f133f9dcaf5bf43cf5f2671/src/Apps/W1/ReportFilenameManager/app/src/codeunit/ReportFilenameDefaults.Codeunit.al) · facts from BC30

## Properties

| Property | Value |
|---|---|
| Access | Internal |
| SingleInstance | true |
| Permissions | tabledata "Report Filename Setup" = ri, tabledata "Report Filename Pattern" = ri |

## Procedures

- `InitializeSetup(EnableForNewCompany: Boolean)` (internal)
- `InitializeExistingCompany()` (internal)
- `GetDefaultPatternsUpgradeTag(): Code[250]` (internal)
- `OnBeforeCompanyInitialize()` (internal)
- `OnCompanyInitialize()` (internal)

Plus 5 local procedures.

## Recent changes

- 2026-11-25 [#13732 Initialize report filename defaults for new and existing companies](../../changes/bcapps/13732.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: "codeunit", object_name: "Report Filename Defaults")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
