{"title":"Codeunit 6102 E-Doc. Export","url":"https://jonas-paprotka.de/ref/codeunit/6102-e-doc-export/","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-17","changedSince":"2026-09-22","source":{"feed":"https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json","package":"Microsoft.E-DocumentCore.symbols.e1d97edc-c239-46b4-8d84-6368bdf67c8b","build":"29.0.54011.55644","builds":{"23":"23.5.16502.31399","24":"24.5.23489.36097","25":"25.5.30849.36072","26":"26.5.38752.40541","27":"27.5.46862.47359","28":"28.5.54151.54365","29":"29.0.54011.55644"},"code":{"28":{"url":"https://jonas-paprotka.de/ref/codeunit/6102-e-doc-export/source/?v=28","repo":"https://github.com/microsoft/BCApps","branch":"releases/28.x","commit":"408a4cc8d3a4c54b60464cc14c964479facb9ba0","path":"src/Apps/W1/EDocument/App/src/Processing/EDocExport.Codeunit.al","license":"MIT"},"29":{"url":"https://jonas-paprotka.de/ref/codeunit/6102-e-doc-export/source/","repo":"https://github.com/microsoft/BCApps","branch":"releases/29.x","commit":"4303e5e584d3aa5d9e98cbc615525a5396ad6ed7","path":"src/Apps/W1/EDocument/App/src/Processing/EDocExport.Codeunit.al","license":"MIT"}},"note":"Presence per major, highest build of each; 17 is the oldest major on the feed. Local procedures are not listed."},"object":{"type":"codeunit","id":6102,"name":"E-Doc. Export","app":"E-Document Core","appByVersion":[{"app":"E-Document Core","from":23}],"nameByVersion":[{"name":"E-Doc. Export","from":23}],"namespace":"Microsoft.eServices.EDocument","versions":"23-29","majors":[23,24,25,26,27,28,29],"countries":["W1","DE","US"],"minors":{"W1":"23.0-29.0","DE":"23.0-29.0","US":"23.0-29.0"},"minorsUrl":"https://jonas-paprotka.de/ref/codeunit/6102-e-doc-export/editions.json","extends":null,"extendsUrl":null,"sourceTable":null,"properties":null,"extendedBy":[],"implementedBy":[],"sourceFile":"src/Processing/EDocExport.Codeunit.al","obsolete":null,"obsoleteSeenFrom":null,"byVersion":{"23":{"app":"E-Document Core","name":"E-Doc. Export","ns":"Microsoft.eServices.EDocument","obsolete":null,"target":"","sourceTable":"","counts":{"fields":0,"keys":0,"methods":10,"values":0},"stub":false},"24":{"app":"E-Document Core","name":"E-Doc. Export","ns":"Microsoft.eServices.EDocument","obsolete":null,"target":"","sourceTable":"","counts":{"fields":0,"keys":0,"methods":10,"values":0},"stub":false},"25":{"app":"E-Document Core","name":"E-Doc. Export","ns":"Microsoft.eServices.EDocument","obsolete":null,"target":"","sourceTable":"","counts":{"fields":0,"keys":0,"methods":10,"values":0},"stub":false},"26":{"app":"E-Document Core","name":"E-Doc. Export","ns":"Microsoft.eServices.EDocument","obsolete":null,"target":"","sourceTable":"","counts":{"fields":0,"keys":0,"methods":10,"values":0},"stub":false},"27":{"app":"E-Document Core","name":"E-Doc. Export","ns":"Microsoft.eServices.EDocument","obsolete":null,"target":"","sourceTable":"","counts":{"fields":0,"keys":0,"methods":11,"values":0},"stub":false},"28":{"app":"E-Document Core","name":"E-Doc. Export","ns":"Microsoft.eServices.EDocument","obsolete":null,"target":"","sourceTable":"","counts":{"fields":0,"keys":0,"methods":12,"values":0},"stub":false},"29":{"app":"E-Document Core","name":"E-Doc. Export","ns":"Microsoft.eServices.EDocument","obsolete":null,"target":"","sourceTable":"","counts":{"fields":0,"keys":0,"methods":15,"values":0},"stub":false}},"fields":[],"keys":[],"procedures":[{"name":"CheckEDocument","sig":"(var RecordRef, Enum E-Document Processing Phase)","named":"(var EDocSourceRecRef: RecordRef; EDocumentProcessingPhase: Enum \"E-Document Processing Phase\")","returns":"","kind":"procedure","access":"internal","obsolete":null,"range":"23-29","first":23,"last":29,"obsoleteSince":null,"spans":[{"from":23,"to":29,"named":"(var EDocSourceRecRef: RecordRef; EDocumentProcessingPhase: Enum \"E-Document Processing Phase\")","returns":"","kind":"procedure","access":"internal","obsolete":null}]},{"name":"CreateEDocument","sig":"(var RecordRef)","named":"(var SourceDocumentHeader: RecordRef)","returns":"","kind":"procedure","access":"internal","obsolete":null,"range":"23-25","first":23,"last":25,"obsoleteSince":null,"spans":[{"from":23,"to":25,"named":"(var SourceDocumentHeader: RecordRef)","returns":"","kind":"procedure","access":"internal","obsolete":null}]},{"name":"ExportEDocument","sig":"(var Record E-Document, var Record E-Document Service)","named":"(var EDocument: Record \"E-Document\"; var EDocumentService: Record \"E-Document Service\")","returns":"Boolean","kind":"procedure","access":"internal","obsolete":null,"range":"23-29","first":23,"last":29,"obsoleteSince":null,"spans":[{"from":23,"to":24,"named":"(var EDocument: Record \"E-Document\"; var EDocService: Record \"E-Document Service\")","returns":"Boolean","kind":"procedure","access":"internal","obsolete":null},{"from":25,"to":29,"named":"(var EDocument: Record \"E-Document\"; var EDocumentService: Record \"E-Document Service\")","returns":"Boolean","kind":"procedure","access":"internal","obsolete":null}]},{"name":"ExportEDocumentBatch","sig":"(var Record E-Document, var Record E-Document Service, var Record E-Doc. Mapping Log, var Codeunit Temp Blob, var Dictionary)","named":"(var EDocuments: Record \"E-Document\"; var EDocService: Record \"E-Document Service\"; var TempEDocMappingLogs: Record \"E-Doc. Mapping Log\" temporary; var TempBlob: Codeunit \"Temp Blob\"; var EDocumentsErrorCount: Dictionary of [Integer, Integer])","returns":"","kind":"procedure","access":"internal","obsolete":null,"range":"23-29","first":23,"last":29,"obsoleteSince":null,"spans":[{"from":23,"to":29,"named":"(var EDocuments: Record \"E-Document\"; var EDocService: Record \"E-Document Service\"; var TempEDocMappingLogs: Record \"E-Doc. Mapping Log\" temporary; var TempBlob: Codeunit \"Temp Blob\"; var EDocumentsErrorCount: Dictionary of [Integer, Integer])","returns":"","kind":"procedure","access":"internal","obsolete":null}]},{"name":"Recreate","sig":"(Record E-Document, Record E-Document Service)","named":"(EDocument: Record \"E-Document\"; EDocService: Record \"E-Document Service\")","returns":"","kind":"procedure","access":"internal","obsolete":null,"range":"23-29","first":23,"last":29,"obsoleteSince":null,"spans":[{"from":23,"to":29,"named":"(EDocument: Record \"E-Document\"; EDocService: Record \"E-Document Service\")","returns":"","kind":"procedure","access":"internal","obsolete":null}]},{"name":"MapEDocument","sig":"(var RecordRef, var RecordRef, Record E-Document Service, var RecordRef, var RecordRef, var Record E-Doc. Mapping, Boolean)","named":"(var EDocumentSource: RecordRef; var EDocumentSourceLine: RecordRef; EDocumentFormat: Record \"E-Document Service\"; var EDocumentSourceMapped: RecordRef; var EDocumentSourceLineMapped: RecordRef; var TempEDocMapping: Record \"E-Doc. Mapping\" temporary; ForImport: Boolean)","returns":"","kind":"procedure","access":"internal","obsolete":null,"range":"23-29","first":23,"last":29,"obsoleteSince":null,"spans":[{"from":23,"to":29,"named":"(var EDocumentSource: RecordRef; var EDocumentSourceLine: RecordRef; EDocumentFormat: Record \"E-Document Service\"; var EDocumentSourceMapped: RecordRef; var EDocumentSourceLineMapped: RecordRef; var TempEDocMapping: Record \"E-Doc. Mapping\" temporary; ForImport: Boolean)","returns":"","kind":"procedure","access":"internal","obsolete":null}]},{"name":"CreateEDocument","sig":"(RecordRef, Record Workflow, Enum E-Document Type)","named":"(DocumentHeader: RecordRef; WorkFlow: Record Workflow; EDocumentType: Enum \"E-Document Type\")","returns":"","kind":"procedure","access":"internal","obsolete":null,"range":"26-27","first":26,"last":27,"obsoleteSince":null,"spans":[{"from":26,"to":27,"named":"(DocumentHeader: RecordRef; WorkFlow: Record Workflow; EDocumentType: Enum \"E-Document Type\")","returns":"","kind":"procedure","access":"internal","obsolete":null}]},{"name":"CreateEDocument","sig":"(var Record E-Document, var RecordRef, var Record E-Document Service, Enum E-Document Type)","named":"(var EDocument: Record \"E-Document\"; var DocumentHeader: RecordRef; var EDocumentService: Record \"E-Document Service\"; EDocumentType: Enum \"E-Document Type\")","returns":"Boolean","kind":"procedure","access":"public","obsolete":null,"range":"27-29","first":27,"last":29,"obsoleteSince":null,"spans":[{"from":27,"to":27,"named":"(var EDocument: Record \"E-Document\"; var DocumentHeader: RecordRef; var EDocumentService: Record \"E-Document Service\"; EDocumentType: Enum \"E-Document Type\")","returns":"Boolean","kind":"procedure","access":"internal","obsolete":null},{"from":28,"to":29,"named":"(var EDocument: Record \"E-Document\"; var DocumentHeader: RecordRef; var EDocumentService: Record \"E-Document Service\"; EDocumentType: Enum \"E-Document Type\")","returns":"Boolean","kind":"procedure","access":"public","obsolete":null}]},{"name":"CreateEDocument","sig":"(RecordRef, Record Document Sending Profile, Enum E-Document Type)","named":"(DocumentHeader: RecordRef; DocumentSendingProfile: Record \"Document Sending Profile\"; EDocumentType: Enum \"E-Document Type\")","returns":"Boolean","kind":"procedure","access":"internal","obsolete":null,"range":"28-29","first":28,"last":29,"obsoleteSince":null,"spans":[{"from":28,"to":28,"named":"(DocumentHeader: RecordRef; DocumentSendingProfile: Record \"Document Sending Profile\"; EDocumentType: Enum \"E-Document Type\")","returns":"","kind":"procedure","access":"internal","obsolete":null},{"from":29,"to":29,"named":"(DocumentHeader: RecordRef; DocumentSendingProfile: Record \"Document Sending Profile\"; EDocumentType: Enum \"E-Document Type\")","returns":"Boolean","kind":"procedure","access":"internal","obsolete":null}]},{"name":"IsDocumentTypeSupported","sig":"(Record E-Document Service, Enum E-Document Type)","named":"(EDocService: Record \"E-Document Service\"; EDocumentType: Enum \"E-Document Type\")","returns":"Boolean","kind":"procedure","access":"public","obsolete":null,"range":"28-29","first":28,"last":29,"obsoleteSince":null,"spans":[{"from":28,"to":29,"named":"(EDocService: Record \"E-Document Service\"; EDocumentType: Enum \"E-Document Type\")","returns":"Boolean","kind":"procedure","access":"public","obsolete":null}]},{"name":"CreateEDocument","sig":"(RecordRef, Record Document Sending Profile, Enum E-Document Type, Boolean)","named":"(DocumentHeader: RecordRef; DocumentSendingProfile: Record \"Document Sending Profile\"; EDocumentType: Enum \"E-Document Type\"; AllowReExport: Boolean)","returns":"Boolean","kind":"procedure","access":"internal","obsolete":null,"range":"29","first":29,"last":29,"obsoleteSince":null,"spans":[{"from":29,"to":29,"named":"(DocumentHeader: RecordRef; DocumentSendingProfile: Record \"Document Sending Profile\"; EDocumentType: Enum \"E-Document Type\"; AllowReExport: Boolean)","returns":"Boolean","kind":"procedure","access":"internal","obsolete":null}]},{"name":"CreateAndExportEDocument","sig":"(var RecordRef, var Record E-Document Service, Code[20], Code[20], Enum E-Document Type, Boolean)","named":"(var DocumentHeader: RecordRef; var EDocumentService: Record \"E-Document Service\"; WorkflowCode: Code[20]; DocumentSendingProfileCode: Code[20]; EDocumentType: Enum \"E-Document Type\"; AllowReExport: Boolean)","returns":"Boolean","kind":"procedure","access":"public","obsolete":null,"range":"29","first":29,"last":29,"obsoleteSince":null,"spans":[{"from":29,"to":29,"named":"(var DocumentHeader: RecordRef; var EDocumentService: Record \"E-Document Service\"; WorkflowCode: Code[20]; DocumentSendingProfileCode: Code[20]; EDocumentType: Enum \"E-Document Type\"; AllowReExport: Boolean)","returns":"Boolean","kind":"procedure","access":"public","obsolete":null}]}],"events":[{"name":"OnBeforeEDocumentCheck","sig":"(RecordRef, Enum E-Document Processing Phase, var Boolean)","named":"(RecRef: RecordRef; EDocumentProcessingPhase: Enum \"E-Document Processing Phase\"; var IsHandled: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null,"range":"23-29","first":23,"last":29,"obsoleteSince":null,"spans":[{"from":23,"to":29,"named":"(RecRef: RecordRef; EDocumentProcessingPhase: Enum \"E-Document Processing Phase\"; var IsHandled: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null}]},{"name":"OnAfterEDocumentCheck","sig":"(RecordRef, Enum E-Document Processing Phase)","named":"(RecRef: RecordRef; EDocumentProcessingPhase: Enum \"E-Document Processing Phase\")","returns":"","kind":"integrationevent","access":"local","obsolete":null,"range":"23-29","first":23,"last":29,"obsoleteSince":null,"spans":[{"from":23,"to":29,"named":"(RecRef: RecordRef; EDocumentProcessingPhase: Enum \"E-Document Processing Phase\")","returns":"","kind":"integrationevent","access":"local","obsolete":null}]},{"name":"OnBeforeCreateEDocument","sig":"(var Record E-Document, var RecordRef)","named":"(var EDocument: Record \"E-Document\"; var SourceDocumentHeader: RecordRef)","returns":"","kind":"integrationevent","access":"local","obsolete":null,"range":"23-29","first":23,"last":29,"obsoleteSince":null,"spans":[{"from":23,"to":29,"named":"(var EDocument: Record \"E-Document\"; var SourceDocumentHeader: RecordRef)","returns":"","kind":"integrationevent","access":"local","obsolete":null}]},{"name":"OnAfterCreateEdocument","sig":"(var Record E-Document, var RecordRef)","named":"(var EDocument: Record \"E-Document\"; var SourceDocumentHeader: RecordRef)","returns":"","kind":"integrationevent","access":"local","obsolete":null,"range":"23-26","first":23,"last":26,"obsoleteSince":null,"spans":[{"from":23,"to":26,"named":"(var EDocument: Record \"E-Document\"; var SourceDocumentHeader: RecordRef)","returns":"","kind":"integrationevent","access":"local","obsolete":null}]},{"name":"OnAfterCreateEDocument","sig":"(var Record E-Document, var RecordRef)","named":"(var EDocument: Record \"E-Document\"; var SourceDocumentHeader: RecordRef)","returns":"","kind":"integrationevent","access":"local","obsolete":null,"range":"27-29","first":27,"last":29,"obsoleteSince":null,"spans":[{"from":27,"to":29,"named":"(var EDocument: Record \"E-Document\"; var SourceDocumentHeader: RecordRef)","returns":"","kind":"integrationevent","access":"local","obsolete":null}]},{"name":"OnExportEDocumentAfterCreateEDocument","sig":"(Record E-Document Service, Record E-Document, RecordRef, RecordRef, var Codeunit Temp Blob, Boolean)","named":"(EDocumentService: Record \"E-Document Service\"; EDocument: Record \"E-Document\"; SourceDocumentHeaderMapped: RecordRef; SourceDocumentLineMapped: RecordRef; var TempBlob: Codeunit \"Temp Blob\"; Success: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null,"range":"29","first":29,"last":29,"obsoleteSince":null,"spans":[{"from":29,"to":29,"named":"(EDocumentService: Record \"E-Document Service\"; EDocument: Record \"E-Document\"; SourceDocumentHeaderMapped: RecordRef; SourceDocumentLineMapped: RecordRef; var TempBlob: Codeunit \"Temp Blob\"; Success: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null}]}],"values":[],"controls":[],"actions":[]}}