---
title: "Codeunit 6102 E-Doc. Export"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/6102-e-doc-export/
type: codeunit
id: 6102
name: "E-Doc. Export"
app: "E-Document Core"
namespace: Microsoft.eServices.EDocument
versions: "23-29"
build: 29.0.54011.55644
countries: "W1, DE, US"
source: "https://jonas-paprotka.de/ref/codeunit/6102-e-doc-export/source/?v=28 https://jonas-paprotka.de/ref/codeunit/6102-e-doc-export/source/"
checked: 2026-11-20
changed: 2026-10-17
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 6102 E-Doc. Export

JOP-AL, https://jonas-paprotka.de/ref/codeunit/6102-e-doc-export/

| | |
| --- | --- |
| App | E-Document Core |
| Namespace | Microsoft.eServices.EDocument |
| Versions | 23-29 |
| Minors | W1 23.0-29.0; DE 23.0-29.0; US 23.0-29.0, [every minor](https://jonas-paprotka.de/ref/codeunit/6102-e-doc-export/editions.json) |
| Source file | src/Processing/EDocExport.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| CheckEDocument | (var EDocSourceRecRef: RecordRef; EDocumentProcessingPhase: Enum "E-Document Processing Phase") | - | internal | 23-29 | - | - |
| CreateEDocument | (var SourceDocumentHeader: RecordRef) | - | internal | 23-25 | - | - |
| ExportEDocument | (var EDocument: Record "E-Document"; var EDocumentService: Record "E-Document Service") | Boolean | internal | 23-29 | - | - |
| ExportEDocumentBatch | (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]) | - | internal | 23-29 | - | - |
| Recreate | (EDocument: Record "E-Document"; EDocService: Record "E-Document Service") | - | internal | 23-29 | - | - |
| MapEDocument | (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) | - | internal | 23-29 | - | - |
| CreateEDocument | (DocumentHeader: RecordRef; WorkFlow: Record Workflow; EDocumentType: Enum "E-Document Type") | - | internal | 26-27 | - | - |
| CreateEDocument | (var EDocument: Record "E-Document"; var DocumentHeader: RecordRef; var EDocumentService: Record "E-Document Service"; EDocumentType: Enum "E-Document Type") | Boolean | public | 27-29 | - | - |
| CreateEDocument | (DocumentHeader: RecordRef; DocumentSendingProfile: Record "Document Sending Profile"; EDocumentType: Enum "E-Document Type") | Boolean | internal | 28-29 | - | - |
| IsDocumentTypeSupported | (EDocService: Record "E-Document Service"; EDocumentType: Enum "E-Document Type") | Boolean | public | 28-29 | - | - |
| CreateEDocument | (DocumentHeader: RecordRef; DocumentSendingProfile: Record "Document Sending Profile"; EDocumentType: Enum "E-Document Type"; AllowReExport: Boolean) | Boolean | internal | 29 | - | - |
| CreateAndExportEDocument | (var DocumentHeader: RecordRef; var EDocumentService: Record "E-Document Service"; WorkflowCode: Code[20]; DocumentSendingProfileCode: Code[20]; EDocumentType: Enum "E-Document Type"; AllowReExport: Boolean) | Boolean | public | 29 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnBeforeEDocumentCheck | (RecRef: RecordRef; EDocumentProcessingPhase: Enum "E-Document Processing Phase"; var IsHandled: Boolean) | 23-29 | - | - |
| Integration event | OnAfterEDocumentCheck | (RecRef: RecordRef; EDocumentProcessingPhase: Enum "E-Document Processing Phase") | 23-29 | - | - |
| Integration event | OnBeforeCreateEDocument | (var EDocument: Record "E-Document"; var SourceDocumentHeader: RecordRef) | 23-29 | - | - |
| Integration event | OnAfterCreateEdocument | (var EDocument: Record "E-Document"; var SourceDocumentHeader: RecordRef) | 23-26 | - | - |
| Integration event | OnAfterCreateEDocument | (var EDocument: Record "E-Document"; var SourceDocumentHeader: RecordRef) | 27-29 | - | - |
| Integration event | OnExportEDocumentAfterCreateEDocument | (EDocumentService: Record "E-Document Service"; EDocument: Record "E-Document"; SourceDocumentHeaderMapped: RecordRef; SourceDocumentLineMapped: RecordRef; var TempBlob: Codeunit "Temp Blob"; Success: Boolean) | 29 | - | - |

## Source

Symbols: Microsoft.E-DocumentCore.symbols.e1d97edc-c239-46b4-8d84-6368bdf67c8b, https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json, highest build per major on 2026-11-20.
AL source 28: https://github.com/microsoft/BCApps, MIT, releases/28.x at 408a4cc8d3a4c54b60464cc14c964479facb9ba0.
AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at 4303e5e584d3aa5d9e98cbc615525a5396ad6ed7.

JOP-AL, 2026-11-20.
