---
title: "Codeunit 452 Report Distribution Management, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/452-report-distribution-management/points/
object: https://jonas-paprotka.de/ref/codeunit/452-report-distribution-management/
app: "Base Application"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/452-report-distribution-management/source/
checked: 2026-11-20
changed: 2026-10-05
subject: "Microsoft Dynamics 365 Business Central"
license: "Metadata from Microsoft's symbol packages. AL source MIT, Copyright (c) Microsoft Corporation. Selection and wording © 2026 JOP-AL. https://jonas-paprotka.de/licenses/"
---

# Codeunit 452 Report Distribution Management, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/452-report-distribution-management/points/

15 procedures and triggers with a step in src/Layers/W1/BaseApp/Foundation/Reporting/ReportDistributionManagement.Codeunit.al, in source order, read from the text, not from a run.

## VANDocumentReport

[Line 53](https://jonas-paprotka.de/ref/codeunit/452-report-distribution-management/source/#L53).

- [63](https://jonas-paprotka.de/ref/codeunit/452-report-distribution-management/source/#L63) raises `OnBeforeVANDocumentReport`
- [67](https://jonas-paprotka.de/ref/codeunit/452-report-distribution-management/source/#L67) raises `OnVANDocumentReportOnBeforeLoopIteration`
- [70](https://jonas-paprotka.de/ref/codeunit/452-report-distribution-management/source/#L70) calls [Table 61 Electronic Document Format](https://jonas-paprotka.de/ref/table/61-electronic-document-format/) `SendElectronically`
- [73](https://jonas-paprotka.de/ref/codeunit/452-report-distribution-management/source/#L73) calls [Codeunit 1410 Doc. Exch. Service Mgt.](https://jonas-paprotka.de/ref/codeunit/1410-doc-exch-service-mgt/) `SendDocument`
- [77](https://jonas-paprotka.de/ref/codeunit/452-report-distribution-management/source/#L77) calls [Table 62 Record Export Buffer](https://jonas-paprotka.de/ref/table/62-record-export-buffer/) `SetFileContent`
- [80](https://jonas-paprotka.de/ref/codeunit/452-report-distribution-management/source/#L80) raises `OnVANDocumentReportOnBeforeRunDeliveryCodeunit`

## DownloadPdfOnClient

[Line 86](https://jonas-paprotka.de/ref/codeunit/452-report-distribution-management/source/#L86).

- [91](https://jonas-paprotka.de/ref/codeunit/452-report-distribution-management/source/#L91) calls [Codeunit 419 File Management](https://jonas-paprotka.de/ref/codeunit/419-file-management/) `DownloadTempFile`

## GetFullDocumentTypeText

[Line 101](https://jonas-paprotka.de/ref/codeunit/452-report-distribution-management/source/#L101).

- [115](https://jonas-paprotka.de/ref/codeunit/452-report-distribution-management/source/#L115) calls [Codeunit 53 Translation Helper](https://jonas-paprotka.de/ref/codeunit/53-translation-helper/) `SetGlobalLanguageByCode`
- [115](https://jonas-paprotka.de/ref/codeunit/452-report-distribution-management/source/#L115) calls `GetDocumentLanguageCode`
- [178](https://jonas-paprotka.de/ref/codeunit/452-report-distribution-management/source/#L178) raises `OnGetFullDocumentTypeTextElseCase`
- [181](https://jonas-paprotka.de/ref/codeunit/452-report-distribution-management/source/#L181) calls [Codeunit 53 Translation Helper](https://jonas-paprotka.de/ref/codeunit/53-translation-helper/) `RestoreGlobalLanguage`
- [183](https://jonas-paprotka.de/ref/codeunit/452-report-distribution-management/source/#L183) raises `OnAfterGetFullDocumentTypeText`

## GetDocumentLanguageCode

[Line 186](https://jonas-paprotka.de/ref/codeunit/452-report-distribution-management/source/#L186).

- [235](https://jonas-paprotka.de/ref/codeunit/452-report-distribution-management/source/#L235) raises `OnGetDocumentLanguageCodeCaseElse`
- [237](https://jonas-paprotka.de/ref/codeunit/452-report-distribution-management/source/#L237) calls [Codeunit 1306 Company Information Mgt.](https://jonas-paprotka.de/ref/codeunit/1306-company-information-mgt/) `GetLanguageDefault`

## GetReportCaption

[Line 240](https://jonas-paprotka.de/ref/codeunit/452-report-distribution-management/source/#L240).

- [247](https://jonas-paprotka.de/ref/codeunit/452-report-distribution-management/source/#L247) raises `OnBeforeGetReportCaption`, IsHandled
- [251](https://jonas-paprotka.de/ref/codeunit/452-report-distribution-management/source/#L251) calls [Codeunit 53 Translation Helper](https://jonas-paprotka.de/ref/codeunit/53-translation-helper/) `SetGlobalLanguageByCode`
- [256](https://jonas-paprotka.de/ref/codeunit/452-report-distribution-management/source/#L256) calls [Codeunit 53 Translation Helper](https://jonas-paprotka.de/ref/codeunit/53-translation-helper/) `RestoreGlobalLanguage`

## GetBillToCustomer

[Line 259](https://jonas-paprotka.de/ref/codeunit/452-report-distribution-management/source/#L259), local.

- [269](https://jonas-paprotka.de/ref/codeunit/452-report-distribution-management/source/#L269) raises `OnBeforeGetBillToCustomer`, IsHandled
- [296](https://jonas-paprotka.de/ref/codeunit/452-report-distribution-management/source/#L296) raises `OnGetBillToCustomerOnUnhandledTableNo`
- [299](https://jonas-paprotka.de/ref/codeunit/452-report-distribution-management/source/#L299) raises `OnAfterGetBillToCustomer`

## SaveFileOnClient

[Line 317](https://jonas-paprotka.de/ref/codeunit/452-report-distribution-management/source/#L317).

- [321](https://jonas-paprotka.de/ref/codeunit/452-report-distribution-management/source/#L321) calls [Codeunit 419 File Management](https://jonas-paprotka.de/ref/codeunit/419-file-management/) `BLOBExport`

## SendAttachment

[Line 324](https://jonas-paprotka.de/ref/codeunit/452-report-distribution-management/source/#L324), local.

- [334](https://jonas-paprotka.de/ref/codeunit/452-report-distribution-management/source/#L334) calls `GetFullDocumentTypeText`
- [337](https://jonas-paprotka.de/ref/codeunit/452-report-distribution-management/source/#L337) calls [Codeunit 419 File Management](https://jonas-paprotka.de/ref/codeunit/419-file-management/) `BLOBExport`
- [341](https://jonas-paprotka.de/ref/codeunit/452-report-distribution-management/source/#L341) calls [Codeunit 4100 Temp Blob](https://jonas-paprotka.de/ref/codeunit/4100-temp-blob/) `HasValue`
- [342](https://jonas-paprotka.de/ref/codeunit/452-report-distribution-management/source/#L342) calls [Codeunit 4100 Temp Blob](https://jonas-paprotka.de/ref/codeunit/4100-temp-blob/) `CreateInStream`
- [353](https://jonas-paprotka.de/ref/codeunit/452-report-distribution-management/source/#L353) calls [Codeunit 260 Document-Mailing](https://jonas-paprotka.de/ref/codeunit/260-document-mailing/) `EmailFile`

## SendXmlEmailAttachment

[Line 366](https://jonas-paprotka.de/ref/codeunit/452-report-distribution-management/source/#L366).

- [372](https://jonas-paprotka.de/ref/codeunit/452-report-distribution-management/source/#L372) calls [Codeunit 419 File Management](https://jonas-paprotka.de/ref/codeunit/419-file-management/) `BLOBImportFromServerFile`

## SendXmlEmailAttachment

[Line 377](https://jonas-paprotka.de/ref/codeunit/452-report-distribution-management/source/#L377).

- [388](https://jonas-paprotka.de/ref/codeunit/452-report-distribution-management/source/#L388) raises `OnBeforeSendXmlEmailAttachment`
- [390](https://jonas-paprotka.de/ref/codeunit/452-report-distribution-management/source/#L390) calls `GetBillToCustomer`
- [393](https://jonas-paprotka.de/ref/codeunit/452-report-distribution-management/source/#L393) calls [Codeunit 260 Document-Mailing](https://jonas-paprotka.de/ref/codeunit/260-document-mailing/) `GetToAddressFromCustomer`
- [399](https://jonas-paprotka.de/ref/codeunit/452-report-distribution-management/source/#L399) calls [Table 61 Electronic Document Format](https://jonas-paprotka.de/ref/table/61-electronic-document-format/) `SendElectronically`
- [403](https://jonas-paprotka.de/ref/codeunit/452-report-distribution-management/source/#L403) calls `SendAttachment`
- [404](https://jonas-paprotka.de/ref/codeunit/452-report-distribution-management/source/#L404) calls [Table 61 Electronic Document Format](https://jonas-paprotka.de/ref/table/61-electronic-document-format/) `GetDocumentNo`

## SendXmlEmailAttachmentVendor

[Line 416](https://jonas-paprotka.de/ref/codeunit/452-report-distribution-management/source/#L416).

- [422](https://jonas-paprotka.de/ref/codeunit/452-report-distribution-management/source/#L422) calls [Codeunit 419 File Management](https://jonas-paprotka.de/ref/codeunit/419-file-management/) `BLOBImportFromServerFile`

## SendXmlEmailAttachmentVendor

[Line 427](https://jonas-paprotka.de/ref/codeunit/452-report-distribution-management/source/#L427).

- [439](https://jonas-paprotka.de/ref/codeunit/452-report-distribution-management/source/#L439) calls `GetBuyFromVendor`
- [442](https://jonas-paprotka.de/ref/codeunit/452-report-distribution-management/source/#L442) calls [Codeunit 260 Document-Mailing](https://jonas-paprotka.de/ref/codeunit/260-document-mailing/) `GetToAddressFromVendor`
- [448](https://jonas-paprotka.de/ref/codeunit/452-report-distribution-management/source/#L448) calls [Table 61 Electronic Document Format](https://jonas-paprotka.de/ref/table/61-electronic-document-format/) `SendElectronically`
- [452](https://jonas-paprotka.de/ref/codeunit/452-report-distribution-management/source/#L452) calls `SendAttachment`
- [453](https://jonas-paprotka.de/ref/codeunit/452-report-distribution-management/source/#L453) calls [Table 61 Electronic Document Format](https://jonas-paprotka.de/ref/table/61-electronic-document-format/) `GetDocumentNo`

## RunDefaultCheckSalesElectronicDocument

[Line 463](https://jonas-paprotka.de/ref/codeunit/452-report-distribution-management/source/#L463).

- [469](https://jonas-paprotka.de/ref/codeunit/452-report-distribution-management/source/#L469) raises `OnBeforeRunDefaultCheckSalesElectronicDocument`, IsHandled
- [472](https://jonas-paprotka.de/ref/codeunit/452-report-distribution-management/source/#L472) calls `GetElectronicDocumentFormat`
- [474](https://jonas-paprotka.de/ref/codeunit/452-report-distribution-management/source/#L474) calls [Table 61 Electronic Document Format](https://jonas-paprotka.de/ref/table/61-electronic-document-format/) `ValidateElectronicSalesDocument`

## GetElectronicDocumentFormat

[Line 478](https://jonas-paprotka.de/ref/codeunit/452-report-distribution-management/source/#L478).

- [483](https://jonas-paprotka.de/ref/codeunit/452-report-distribution-management/source/#L483) calls `GetBillToCustomer`

## CreateOrAppendZipFile

[Line 500](https://jonas-paprotka.de/ref/codeunit/452-report-distribution-management/source/#L500).

- [506](https://jonas-paprotka.de/ref/codeunit/452-report-distribution-management/source/#L506) calls [Codeunit 4100 Temp Blob](https://jonas-paprotka.de/ref/codeunit/4100-temp-blob/) `CreateInStream`
- [507](https://jonas-paprotka.de/ref/codeunit/452-report-distribution-management/source/#L507) calls [Codeunit 425 Data Compression](https://jonas-paprotka.de/ref/codeunit/425-data-compression/) `IsGZip`
- [509](https://jonas-paprotka.de/ref/codeunit/452-report-distribution-management/source/#L509) calls [Codeunit 425 Data Compression](https://jonas-paprotka.de/ref/codeunit/425-data-compression/) `OpenZipArchive`
- [512](https://jonas-paprotka.de/ref/codeunit/452-report-distribution-management/source/#L512) calls [Codeunit 425 Data Compression](https://jonas-paprotka.de/ref/codeunit/425-data-compression/) `CreateZipArchive`
- [513](https://jonas-paprotka.de/ref/codeunit/452-report-distribution-management/source/#L513) calls [Codeunit 425 Data Compression](https://jonas-paprotka.de/ref/codeunit/425-data-compression/) `AddEntry`
- [514](https://jonas-paprotka.de/ref/codeunit/452-report-distribution-management/source/#L514) calls [Codeunit 419 File Management](https://jonas-paprotka.de/ref/codeunit/419-file-management/) `GetFileNameWithoutExtension`

## Source

AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at 4303e5e584d3aa5d9e98cbc615525a5396ad6ed7.

JOP-AL, 2026-11-20.
