---
title: "Table 6121 E-Document"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/table/6121-e-document/
type: table
id: 6121
name: "E-Document"
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/table/6121-e-document/source/?v=28 https://jonas-paprotka.de/ref/table/6121-e-document/source/"
checked: 2026-11-20
changed: 2026-10-14
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/"
---

# Table 6121 E-Document

JOP-AL, https://jonas-paprotka.de/ref/table/6121-e-document/

| | |
| --- | --- |
| 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/table/6121-e-document/editions.json) |
| Source file | src/Document/EDocument.Table.al |

## Fields

| Id | Name | Type | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| 1 | Entry No | Integer | 23-29 | - | - |
| 2 | Document Record ID | RecordId | 23-29 | - | - |
| 3 | Bill-to/Pay-to No. | Code[20] | 23-29 | - | - |
| 4 | Bill-to/Pay-to Name | Text[100] | 23-29 | - | - |
| 5 | Document No. | Code[20] | 23-29 | - | - |
| 6 | Document Type | Enum E-Document Type | 23-29 | - | - |
| 7 | Document Date | Date | 23-29 | - | - |
| 8 | Due Date | Date | 23-29 | - | - |
| 9 | Amount Incl. VAT | Decimal | 23-29 | - | - |
| 10 | Amount Excl. VAT | Decimal | 23-29 | - | - |
| 11 | Index In Batch | Integer | 23-29 | - | - |
| 12 | Order No. | Code[20] | 23-29 | - | - |
| 13 | Posting Date | Date | 23-29 | - | - |
| 14 | Direction | Enum E-Document Direction | 23-29 | - | - |
| 15 | Incoming E-Document No. | Text[50] | 23-29 | - | - |
| 16 | Table ID | Integer | 23-29 | - | - |
| 17 | Table Name | Text[250] | 23-29 | - | - |
| 18 | Status | Enum E-Document Status | 23-29 | - | - |
| 19 | Document Sending Profile | Code[20] | 23-29 | - | - |
| 20 | Source Type | Enum E-Document Source Type | 23-29 | - | - |
| 21 | Data Exch. Def. Code | Code[20] | 23-29 | - | - |
| 22 | Receiving Company VAT Reg. No. | Text[20] | 23-29 | - | - |
| 23 | Receiving Company GLN | Code[13] | 23-29 | - | - |
| 24 | Receiving Company Name | Text[150] | 23-29 | - | - |
| 25 | Receiving Company Address | Text[200] | 23-29 | - | - |
| 26 | Currency Code | Code[10] | 23-29 | - | - |
| 27 | Workflow Code | Code[20] | 23-29 | - | - |
| 28 | Workflow Step Instance ID | Guid | 23-29 | - | - |
| 29 | Job Queue Entry ID | Guid | 23-29 | - | - |
| 30 | Journal Line System ID | Guid | 23-29 | - | - |
| 31 | Receiving Company Id | Text[250] | 26-29 | - | - |
| 32 | Unstructured Data Entry No. | Integer | 26-29 | - | - |
| 33 | Structured Data Entry No. | Integer | 26-29 | - | - |
| 34 | Service | Code[20] | 26-29 | - | - |
| 35 | File Name | Text[256] | 26-29 | - | - |
| 36 | File Type | Integer | 26-29 | Removed 26.0 | Use File Format in the "E-Doc. Data Storage" table instead. |
| 37 | Structured Data Process | Integer | 26-29 | Removed 26.0 | Use "Process Draft Impl." field instead. |
| 38 | Service Integration | Enum Service Integration | 26-29 | - | - |
| 39 | Source Details | Text[2048] | 26-29 | - | - |
| 40 | Additional Source Details | Text[2048] | 26-29 | - | - |
| 41 | Import Processing Status | Enum Import E-Doc. Proc. Status | 26-29 | - | - |
| 42 | Structure Data Impl. | Enum Structure Received E-Doc. | 26-29 | - | - |
| 43 | Read into Draft Impl. | Enum E-Doc. Read into Draft | 26-29 | - | - |
| 44 | Process Draft Impl. | Enum E-Doc. Process Draft | 26-29 | - | - |
| 45 | Receiving Company Reg. No. | Text[20] | 28-29 | - | - |
| 60 | Clearance Date | DateTime | 27-29 | - | - |
| 61 | Last Clearance Request Time | DateTime | 27-29 | - | - |

## Keys

| Name | Fields | Sum fields | Versions |
| --- | --- | --- | --- |
| Key1, clustered | Entry No | - | 23-29 |
| Key2 | Document Record ID | - | 23-29 |
| Key3 | Incoming E-Document No., Bill-to/Pay-to No., Document Date, Entry No | - | 26-29 |
| Key4 | SystemCreatedAt | - | 26-29 |
| DueDate | Due Date | - | 27-29 |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| OpenEDocument | (EDocumentRecordId: RecordId) | - | internal | 23-29 | - | - |
| ShowRecord | () | - | internal | 23-29 | - | - |
| ToString | () | Text | internal | 23-29 | - | - |
| Create | (EDocumentDirection: Enum "E-Document Direction"; EDocumentType: Enum "E-Document Type"; EDocumentService: Record "E-Document Service") | - | internal | 26-29 | - | - |
| IsDuplicate | (ShowMessage: Boolean) | Boolean | internal | 26-29 | - | - |
| IsSourceDocumentStructured | () | Boolean | internal | 26-29 | - | - |
| GetTotalAmountIncludingVAT | () | Decimal | internal | 26-29 | - | - |
| CleanupDocument | () | - | public | 26-29 | - | - |
| ExportDataStorage | () | - | internal | 26-29 | - | - |
| ViewSourceFile | () | - | public | 26-29 | - | - |
| GetEDocumentServiceStatus | () | Record E-Document Service Status | internal | 26-29 | - | - |
| GetEDocumentService | () | Record E-Document Service | public | 26-29 | - | - |
| GetEDocumentImportProcessingStatus | () | Enum Import E-Doc. Proc. Status | public | 26-29 | Pending 27.0 | Use flow field "Import Processing Status" |
| IsEDocumentCreatedForRecord | (RecordVariant: Variant) | Boolean | public | 27-29 | - | - |
| DeleteOrphanedImport | () | - | internal | 28-29 | - | - |
| TryGetExportedFileLog | (var EDocumentLog: Record "E-Document Log") | Boolean | internal | 29 | - | - |

## Trigger events

| Name | Parameters | ElementName | Docs |
| --- | --- | --- | --- |
| OnBeforeInsertEvent | (var Rec: Record "E-Document"; RunTrigger: Boolean) | '' | https://jonas-paprotka.de/docs/dev-itpro/developer/triggers-auto/events/table/devenv-onbeforeinsertevent-table-trigger/ |
| OnAfterInsertEvent | (var Rec: Record "E-Document"; RunTrigger: Boolean) | '' | https://jonas-paprotka.de/docs/dev-itpro/developer/triggers-auto/events/table/devenv-onafterinsertevent-table-trigger/ |
| OnBeforeModifyEvent | (var Rec: Record "E-Document"; var xRec: Record "E-Document"; RunTrigger: Boolean) | '' | https://jonas-paprotka.de/docs/dev-itpro/developer/triggers-auto/events/table/devenv-onbeforemodifyevent-table-trigger/ |
| OnAfterModifyEvent | (var Rec: Record "E-Document"; var xRec: Record "E-Document"; RunTrigger: Boolean) | '' | https://jonas-paprotka.de/docs/dev-itpro/developer/triggers-auto/events/table/devenv-onaftermodifyevent-table-trigger/ |
| OnBeforeDeleteEvent | (var Rec: Record "E-Document"; RunTrigger: Boolean) | '' | https://jonas-paprotka.de/docs/dev-itpro/developer/triggers-auto/events/table/devenv-onbeforedeleteevent-table-trigger/ |
| OnAfterDeleteEvent | (var Rec: Record "E-Document"; RunTrigger: Boolean) | '' | https://jonas-paprotka.de/docs/dev-itpro/developer/triggers-auto/events/table/devenv-onafterdeleteevent-table-trigger/ |
| OnBeforeRenameEvent | (var Rec: Record "E-Document"; var xRec: Record "E-Document"; RunTrigger: Boolean) | '' | https://jonas-paprotka.de/docs/dev-itpro/developer/triggers-auto/events/table/devenv-onbeforerenameevent-table-trigger/ |
| OnAfterRenameEvent | (var Rec: Record "E-Document"; var xRec: Record "E-Document"; RunTrigger: Boolean) | '' | https://jonas-paprotka.de/docs/dev-itpro/developer/triggers-auto/events/table/devenv-onafterrenameevent-table-trigger/ |
| OnBeforeValidateEvent | (var Rec: Record "E-Document"; var xRec: Record "E-Document"; CurrFieldNo: Integer) | per field, ElementName: field name | https://jonas-paprotka.de/docs/dev-itpro/developer/triggers-auto/events/table/devenv-onbeforevalidateevent-table-trigger/ |
| OnAfterValidateEvent | (var Rec: Record "E-Document"; var xRec: Record "E-Document"; CurrFieldNo: Integer) | per field, ElementName: field name | https://jonas-paprotka.de/docs/dev-itpro/developer/triggers-auto/events/table/devenv-onaftervalidateevent-table-trigger/ |

## 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.
