---
title: "Codeunit 452 Report Distribution Management"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/452-report-distribution-management/
type: codeunit
id: 452
name: "Report Distribution Management"
app: "Base Application"
namespace: Microsoft.Foundation.Reporting
versions: "17-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/codeunit/452-report-distribution-management/source/29/"
checked: 2026-09-20
subject: "Microsoft Dynamics 365 Business Central"
license: "Content © 2026 Jonas Paprotka. Quote freely with attribution and a link."
---

# Codeunit 452 Report Distribution Management

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/452-report-distribution-management/

| | |
| --- | --- |
| App | Base Application |
| Namespace | Microsoft.Foundation.Reporting |
| Versions | 17-28 |
| Source file | Foundation/Reporting/ReportDistributionManagement.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| VANDocumentReport | (Variant, Record Document Sending Profile) | - | public | 17-28 | - | - |
| DownloadPdfOnClient | (Text) | Text | public | 17-28 | - | - |
| InitializeFrom | (Boolean) | - | public | 17-28 | - | - |
| GetFullDocumentTypeText | (Variant) | Text[50] | public | 17-28 | - | - |
| GetDocumentLanguageCode | (Variant) | Code[10] | public | 17-28 | - | - |
| SaveFileOnClient | (Text, Text) | - | public | 17-22 | Pending 20.0 | Replaced by SaveFileOnClient with TempBlob parameter. |
| SendXmlEmailAttachment | (Variant, Code[20], Text[250], Text[250]) | - | public | 17-25 | - | - |
| SendXmlEmailAttachmentVendor | (Variant, Code[20], Text[250], Text[250]) | - | public | 17-28 | Pending 27.0 | Replaced with SendXmlEmailAttachmentVendor that accepts a TempBlob as additional parameter. |
| RunDefaultCheckSalesElectronicDocument | (Record Sales Header) | - | public | 17-28 | - | - |
| RunDefaultCheckServiceElectronicDocument | (Record Service Header) | - | public | 17-27 | Pending 25.0 | Replaced by same procedure in codeunit "Serv. Report Distribution Mgt." |
| CreateOrAppendZipFile | (var Codeunit Data Compression, Text[250], Text[250], var Text[250]) | - | public | 17-22 | Pending 20.0 | Replaced by CreateOrAppendZipFile with TempBlob parameter. |
| GetReportCaption | (Integer, Code[10]) | Text[250] | public | 18-28 | - | - |
| SaveFileOnClient | (var Codeunit Temp Blob, Text) | - | public | 20-28 | - | - |
| CreateOrAppendZipFile | (var Codeunit Data Compression, var Codeunit Temp Blob, Text[250], var Text[250]) | - | public | 20-28 | - | - |
| GetIssuedReminderDocTypeTxt | () | Text | internal | 24-28 | - | - |
| GetElectronicDocumentFormat | (var Record Electronic Document Format, Variant) | - | public | 25-28 | - | - |
| SendXmlEmailAttachment | (Variant, Code[20], Text[250], Text[250], Enum Report Selection Usage) | - | public | 26-28 | Pending 27.0 | Replaced with SendXmlEmailAttachment that accepts a TempBlob as additional parameter. |
| SendXmlEmailAttachment | (Variant, Code[20], var Codeunit Temp Blob, Text[250], Enum Report Selection Usage) | - | public | 27-28 | - | - |
| SendXmlEmailAttachmentVendor | (Variant, Code[20], var Codeunit Temp Blob, Text[250]) | - | public | 27-28 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnBeforeRunDefaultCheckSalesElectronicDocument | (var Record Sales Header, var Boolean) | 17-28 | - | - |
| Integration event | OnAfterGetBillToCustomer | (var Record Customer, Variant) | 18-24 | - | - |
| Integration event | OnAfterGetFullDocumentTypeText | (Variant, var Text[50]) | 18-21 | - | - |
| Integration event | OnGetDocumentLanguageCodeCaseElse | (RecordRef, var Code[10]) | 19-28 | - | - |
| Integration event | OnBeforeGetBillToCustomer | (var Record Customer, Variant, var Boolean) | 20-28 | - | - |
| Integration event | OnBeforeGetReportCaption | (Integer, Code[10], var Text[250], var Boolean) | 20-28 | - | - |
| Integration event | OnBeforeSendXmlEmailAttachment | (var Record Electronic Document Format, var Record Customer, var Record Document Sending Profile) | 20-28 | - | - |
| Integration event | OnBeforeVANDocumentReport | (Variant, var Record Document Sending Profile, var Record Electronic Document Format) | 20-28 | - | - |
| Integration event | OnVANDocumentReportOnBeforeLoopIteration | (var RecordRef, var Variant) | 20-28 | - | - |
| Integration event | OnVANDocumentReportOnBeforeRunDeliveryCodeunit | (var Record Record Export Buffer) | 20-28 | - | - |
| Integration event | OnAfterGetFullDocumentTypeText | (Variant, var Text[50], var RecordRef) | 22-28 | - | - |
| Integration event | OnGetBillToCustomerOnUnhandledTableNo | (RecordRef, var Record Customer) | 24-28 | - | - |
| Integration event | OnGetFullDocumentTypeTextElseCase | (RecordRef, var Text[50]) | 24-28 | - | - |
| Integration event | OnAfterGetBillToCustomer | (var Record Customer, Variant, RecordRef) | 25-28 | - | - |

## Source

Symbols: Microsoft.BaseApplication.symbols.437dbf0e-84ff-417a-965d-ed2bb9650972, https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json, highest build per major on 2026-09-20.
AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at a66254c3b8b5bb1cea290dc8f9d097aec4381153.

Jonas Paprotka, 2026-09-20.
