---
id: object/codeunit/8126
type: object
title: Codeunit 8126 "Report Filename Subscribers"
summary: Codeunit 8126 "Report Filename Subscribers" in ReportFilenameManager (Microsoft.Foundation.Reporting.FileNaming). 1 public procedures, 1 events, 25 event subscribers. 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-10-31T00:48:20.076Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: 8d8372774dfc1a68699eebd37773a490fc86ae1b55a1bb197887e6cc28e60940
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/d2abc1d2ceae394331716c8183ef60e1534c2ce0/src/Apps/W1/ReportFilenameManager/app/src/codeunit/ReportFilenameSubscribers.Codeunit.al
    title: src/Apps/W1/ReportFilenameManager/app/src/codeunit/ReportFilenameSubscribers.Codeunit.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: codeunit
object_id: 8126
name: Report Filename Subscribers
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: 52
  events: 1
  subscribers: 25
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 0
  called_by: 0
  implements: 0
---

# Codeunit 8126 "Report Filename Subscribers"

> Codeunit 8126 "Report Filename Subscribers" in ReportFilenameManager (Microsoft.Foundation.Reporting.FileNaming). 1 public procedures, 1 events, 25 event subscribers. 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/codeunit/ReportFilenameSubscribers.Codeunit.al) · facts from BC30

## Properties

| Property | Value |
|---|---|
| Access | Internal |

## Events published

- `OnAfterNamingDelivery(ReportId: Integer; Channel: Enum "Report Filename Output Route"; FileName: Text)` (integration): FOR TESTS ONLY - nothing in the app subscribes, and being internal, only the test app can. Subscriber order is unspecified, so a test on the platform's naming event may run first and see no name; nothing after that event shows it.

## Event subscriptions

- ClassifyDataSensitivity subscribes to Codeunit "Data Classification Eval. Data" OnCreateEvaluationDataOnAfterClassifyTablesToNormal
- OnGetFilename subscribes to Codeunit "ReportManagement" OnGetFilename
- OnAfterSubstituteReport subscribes to Codeunit "ReportManagement" OnAfterSubstituteReport
- OnBeforeGetAttachmentFileName subscribes to Codeunit "Document-Mailing" OnBeforeGetAttachmentFileName
- OnBeforeSendToDiskForCustomer subscribes to Table "Report Selections" OnSendToDiskForCustOnBeforeSendFileLoop
- OnBeforeDownloadAttachment subscribes to Table "Report Selections" OnSendToDiskForCustOnBeforeDownloadAttachment
- OnBeforeSendToDiskForVendor subscribes to Table "Report Selections" OnSendToDiskForVendOnBeforeSendFileLoop
- OnBeforeSendEmail subscribes to Codeunit "Document-Mailing" OnBeforeSendEmail
- OnBeforeZipFileForCustomer subscribes to Table "Report Selections" OnSendToZipForCustOnBeforeSendFileLoop
- OnBeforeZipFileForVendor subscribes to Table "Report Selections" OnSendToZipForVendOnBeforeSendFileLoop
- NameThroughGetAttachmentFileName subscribes to Table "Electronic Document Format" OnBeforeGetAttachmentFileName
- OnBeforeElectronicDocument subscribes to Table "Electronic Document Format" OnSendElectronicallyOnBeforeRecordExportBufferInsert
- OnBeforeSendToCustomer subscribes to Table "Document Sending Profile" OnBeforeSend
- OnBeforeSendToVendor subscribes to Table "Document Sending Profile" OnBeforeSendVendor
- OnBeforeSendToDiskForSending subscribes to Table "Document Sending Profile" OnBeforeSendToDisk
- OnAfterSendToCustomer subscribes to Table "Document Sending Profile" OnAfterSend
- OnAfterSendToVendor subscribes to Table "Document Sending Profile" OnAfterSendVendor
- OnBeforeServiceDelivery subscribes to Codeunit "Report Distribution Management" OnVANDocumentReportOnBeforeLoopIteration
- OnBeforeElectronicDocuments subscribes to Table "Electronic Document Format" OnSendElectronicallyOnAfterRecRefGetTable
- OnGetDocumentLanguageForKindOfDocument subscribes to Codeunit "Report Distribution Management" OnGetDocumentLanguageCodeCaseElse
- OnAfterElectronicDocuments subscribes to Table "Electronic Document Format" OnAfterSendElectronically
- OnBeforeAttachAsPdf subscribes to Table "Report Selections" OnBeforeSaveAsDocumentAttachment
- OnBeforeAttachAsPdfAttachment subscribes to Table "Report Selections" OnBeforeSaveDocumentAttachmentFromRecRef
- OnAfterAttachAsPdf subscribes to Table "Report Selections" OnSaveAsDocumentAttachmentOnBeforeShowNotification
- OnBeforeSaveAttachment subscribes to Table "Document Attachment" OnBeforeSaveAttachment

## Procedures

- `NameFromPlatformEvent(ReportID: Integer; ObjectPayload: JsonObject; FileExtension: Text[30]; ReportRecordRef: RecordRef; var Filename: Text; var Success: Boolean)` (internal): Separate entry point so tests can verify the Success guard without relying on subscriber order.

Plus 25 local procedures.

## 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: "codeunit", object_name: "Report Filename Subscribers")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
