Codeunit 6102 "E-Doc. Export"
EDocument · Microsoft.eServices.EDocument
Across versions
- BC23-28not present
- BC29present
- BC30changed
Neighbourhood 1 connected objects and pages
EDocument · Microsoft.eServices.EDocument · BC29-30 · source at ea08af5e · facts from BC29
Properties
| Property | Value |
|---|---|
| Permissions | tabledata “E-Document” = im, tabledata “E-Doc. Mapping” = im, tabledata “E-Doc. Mapping Log” = im |
Events published
OnBeforeEDocumentCheck(RecRef: RecordRef; EDocumentProcessingPhase: Enum "E-Document Processing Phase"; var IsHandled: Boolean)(integration)OnAfterEDocumentCheck(RecRef: RecordRef; EDocumentProcessingPhase: Enum "E-Document Processing Phase")(integration)OnBeforeCreateEDocument(var EDocument: Record "E-Document"; var SourceDocumentHeader: RecordRef)(integration)OnAfterCreateEDocument(var EDocument: Record "E-Document"; var SourceDocumentHeader: RecordRef)(integration)OnExportEDocumentAfterCreateEDocument(EDocumentService: Record "E-Document Service"; EDocument: Record "E-Document"; SourceDocumentHeaderMapped: RecordRef; SourceDocumentLineMapped: RecordRef; var TempBlob: Codeunit "Temp Blob"; Success: Boolean)(integration)- subscribers: Codeunit 5579 “Digital Voucher Impl.” EDocExportOnExportEDocumentAfterCreateEDocument
Procedures
CheckEDocument(var EDocSourceRecRef: RecordRef; EDocumentProcessingPhase: Enum "E-Document Processing Phase")(internal)CreateEDocument(DocumentHeader: RecordRef; DocumentSendingProfile: Record "Document Sending Profile"; EDocumentType: Enum "E-Document Type"): Boolean(internal): Creates a new E-Document for the provided document header and attempts to export it.CreateEDocument(DocumentHeader: RecordRef; DocumentSendingProfile: Record "Document Sending Profile"; EDocumentType: Enum "E-Document Type"; AllowReExport: Boolean): Boolean(internal): Creates a new E-Document of specified type for the provided document header and attempts to export it.CreateAndExportEDocument(var DocumentHeader: RecordRef; var EDocumentService: Record "E-Document Service"; WorkflowCode: Code[20]; DocumentSendingProfileCode: Code[20]; EDocumentType: Enum "E-Document Type"; AllowReExport: Boolean): Boolean: Orchestrates creating and exporting an E-Document for the given document header and a given set of services. On first call, creates the E-Document record and exports it for every supported service. If an E-Document already exists for the document header, re-exports for every supported service when A…CreateEDocument(var EDocument: Record "E-Document"; var DocumentHeader: RecordRef; var EDocumentService: Record "E-Document Service"; EDocumentType: Enum "E-Document Type"): Boolean: CreateEDocument - Creates an E-Document record for the given document header and a set of services. If services do not support the document type they are filtered out. If an E-Document already exists for the document header, no record is createdExportEDocument(var EDocument: Record "E-Document"; var EDocumentService: Record "E-Document Service"): Boolean(internal)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)Recreate(EDocument: Record "E-Document"; EDocService: Record "E-Document Service")(internal)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)IsDocumentTypeSupported(EDocService: Record "E-Document Service"; EDocumentType: Enum "E-Document Type"): Boolean
Plus 9 local procedures.
Recent changes
- 2026-10-07 #11560 [E-Documents Core] [Peppol] - Enabling EDI capabilities with E-Documents. Send path (Self-Billed Purchase Invoice/Credit Memo → E-Document) (main, BC30, feature)
- 2026-09-29 #11484 [E-Documents Core] - Supported type direction configuration (main, BC30, feature)
- 2026-08-11 #9578 [E-Documents Core] - Enabling remittance advice export via E-Documents (payment journal + posted payments) (main, BC30, feature)
- 2026-07-14 #8183 Handle failure to manually create E-Document from posted doc with no … (main, BC30, fix)
Ask your agent
Procedure bodies are not stored here (D10). For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: bcatlas_resolve_node(object_type: "codeunit", object_name: "E-Doc. Export"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.