{"title":"Codeunit 452 Report Distribution Management, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/452-report-distribution-management/points/","author":"JOP-AL","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/","subject":"Microsoft Dynamics 365 Business Central","checked":"2026-11-20","changed":"2026-10-05","object":{"type":"codeunit","id":452,"name":"Report Distribution Management","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/452-report-distribution-management/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/452-report-distribution-management/source/","path":"src/Layers/W1/BaseApp/Foundation/Reporting/ReportDistributionManagement.Codeunit.al","commit":"4303e5e584d3aa5d9e98cbc615525a5396ad6ed7","lines":"a line is <source url>#L<line>"},"steps":{"event":"[line, \"event\", name, handled]: raises an event of this object; handled 1 when it has an IsHandled parameter","call":"[line, \"call\", name, arguments]: calls a procedure of this object","ext":"[line, \"ext\", type, id, name, arguments]: calls a procedure of another object, through a variable declared with that type","write":"[line, \"write\", table id, method, 1 when called with true]: Insert, Modify, ModifyAll, Delete, DeleteAll or Rename","validate":"[line, \"validate\", table id, field name]","run":"[line, \"run\", type, id]: Codeunit.Run, Page.Run, Report.Run and their kin"},"objects":{"table:61":{"name":"Electronic Document Format","url":"https://jonas-paprotka.de/ref/table/61-electronic-document-format/"},"codeunit:1410":{"name":"Doc. Exch. Service Mgt.","url":"https://jonas-paprotka.de/ref/codeunit/1410-doc-exch-service-mgt/"},"table:62":{"name":"Record Export Buffer","url":"https://jonas-paprotka.de/ref/table/62-record-export-buffer/"},"codeunit:419":{"name":"File Management","url":"https://jonas-paprotka.de/ref/codeunit/419-file-management/"},"codeunit:53":{"name":"Translation Helper","url":"https://jonas-paprotka.de/ref/codeunit/53-translation-helper/"},"codeunit:1306":{"name":"Company Information Mgt.","url":"https://jonas-paprotka.de/ref/codeunit/1306-company-information-mgt/"},"codeunit:4100":{"name":"Temp Blob","url":"https://jonas-paprotka.de/ref/codeunit/4100-temp-blob/"},"codeunit:260":{"name":"Document-Mailing","url":"https://jonas-paprotka.de/ref/codeunit/260-document-mailing/"},"codeunit:425":{"name":"Data Compression","url":"https://jonas-paprotka.de/ref/codeunit/425-data-compression/"}},"procs":[{"name":"VANDocumentReport","line":53,"kind":"procedure","params":2,"steps":[[63,"event","OnBeforeVANDocumentReport",0],[67,"event","OnVANDocumentReportOnBeforeLoopIteration",0],[70,"ext","table",61,"SendElectronically",4],[73,"ext","codeunit",1410,"SendDocument",2],[77,"ext","table",62,"SetFileContent",1],[80,"event","OnVANDocumentReportOnBeforeRunDeliveryCodeunit",0]]},{"name":"DownloadPdfOnClient","line":86,"kind":"procedure","params":1,"steps":[[91,"ext","codeunit",419,"DownloadTempFile",1]]},{"name":"GetFullDocumentTypeText","line":101,"kind":"procedure","params":1,"steps":[[115,"ext","codeunit",53,"SetGlobalLanguageByCode",1],[115,"call","GetDocumentLanguageCode",1],[178,"event","OnGetFullDocumentTypeTextElseCase",0],[181,"ext","codeunit",53,"RestoreGlobalLanguage",0],[183,"event","OnAfterGetFullDocumentTypeText",0]]},{"name":"GetDocumentLanguageCode","line":186,"kind":"procedure","params":1,"steps":[[235,"event","OnGetDocumentLanguageCodeCaseElse",0],[237,"ext","codeunit",1306,"GetLanguageDefault",1]]},{"name":"GetReportCaption","line":240,"kind":"procedure","params":2,"steps":[[247,"event","OnBeforeGetReportCaption",1],[251,"ext","codeunit",53,"SetGlobalLanguageByCode",1],[256,"ext","codeunit",53,"RestoreGlobalLanguage",0]]},{"name":"GetBillToCustomer","line":259,"kind":"procedure","access":"local","params":2,"steps":[[269,"event","OnBeforeGetBillToCustomer",1],[296,"event","OnGetBillToCustomerOnUnhandledTableNo",0],[299,"event","OnAfterGetBillToCustomer",0]]},{"name":"SaveFileOnClient","line":317,"kind":"procedure","params":2,"steps":[[321,"ext","codeunit",419,"BLOBExport",3]]},{"name":"SendAttachment","line":324,"kind":"procedure","access":"local","params":9,"steps":[[334,"call","GetFullDocumentTypeText",1],[337,"ext","codeunit",419,"BLOBExport",3],[341,"ext","codeunit",4100,"HasValue",0],[342,"ext","codeunit",4100,"CreateInStream",1],[353,"ext","codeunit",260,"EmailFile",11]]},{"name":"SendXmlEmailAttachment","line":366,"kind":"procedure","params":5,"steps":[[372,"ext","codeunit",419,"BLOBImportFromServerFile",2]]},{"name":"SendXmlEmailAttachment","line":377,"kind":"procedure","params":5,"steps":[[388,"event","OnBeforeSendXmlEmailAttachment",0],[390,"call","GetBillToCustomer",2],[393,"ext","codeunit",260,"GetToAddressFromCustomer",1],[399,"ext","table",61,"SendElectronically",4],[403,"call","SendAttachment",9],[404,"ext","table",61,"GetDocumentNo",1]]},{"name":"SendXmlEmailAttachmentVendor","line":416,"kind":"procedure","params":4,"steps":[[422,"ext","codeunit",419,"BLOBImportFromServerFile",2]]},{"name":"SendXmlEmailAttachmentVendor","line":427,"kind":"procedure","params":4,"steps":[[439,"call","GetBuyFromVendor",2],[442,"ext","codeunit",260,"GetToAddressFromVendor",1],[448,"ext","table",61,"SendElectronically",4],[452,"call","SendAttachment",9],[453,"ext","table",61,"GetDocumentNo",1]]},{"name":"RunDefaultCheckSalesElectronicDocument","line":463,"kind":"procedure","params":1,"steps":[[469,"event","OnBeforeRunDefaultCheckSalesElectronicDocument",1],[472,"call","GetElectronicDocumentFormat",2],[474,"ext","table",61,"ValidateElectronicSalesDocument",2]]},{"name":"GetElectronicDocumentFormat","line":478,"kind":"procedure","params":2,"steps":[[483,"call","GetBillToCustomer",2]]},{"name":"CreateOrAppendZipFile","line":500,"kind":"procedure","params":4,"steps":[[506,"ext","codeunit",4100,"CreateInStream",1],[507,"ext","codeunit",425,"IsGZip",1],[509,"ext","codeunit",425,"OpenZipArchive",2],[512,"ext","codeunit",425,"CreateZipArchive",0],[513,"ext","codeunit",425,"AddEntry",2],[514,"ext","codeunit",419,"GetFileNameWithoutExtension",1]]}]}