---
id: object/table/6121
type: object
title: Table 6121 "E-Document"
summary: Table 6121 "E-Document" in EDocument (Microsoft.eServices.EDocument). 47 fields, 16 public procedures. Introduced in BC29, still in BC30, changed in BC30.
tier: official
language: en
tags:
  - table
  - edocument
versions:
  introduced: "29"
  last_changed: "30"
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-10-11T00:31:51.816Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: 9eb27676f33945b1d9052f5f86f991b9f33cb964289e95fcd598d758ac670c24
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/EDocument/app/src/Document/EDocument.Table.al
    title: src/Apps/W1/EDocument/app/src/Document/EDocument.Table.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn:
    - https://learn.microsoft.com/dynamics365/business-central/finance-how-use-edocuments-purchase
    - https://learn.microsoft.com/dynamics365/business-central/finance-how-use-edocuments
  objects: []
  features: []
  topics:
    - topic/business-central/business-functionality/finance/set-up-and-use-e-documents
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes:
    - change/bcapps/12070
    - change/bcapps/12053
    - change/bcapps/11846
    - change/bcapps/11483
    - change/bcapps/10437
    - change/bcapps/10631
    - change/bcapps/10349
    - change/bcapps/9578
    - change/bcapps/8698
object_type: table
object_id: 6121
name: E-Document
namespace: Microsoft.eServices.EDocument
app: EDocument
extends: null
first_version: "29"
last_version: "30"
present_in:
  - "29"
  - "30"
changed_in:
  - "30"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 47
  procedures: 16
  events: 0
  subscribers: 0
relations:
  out: 11
  referenced_by: 21
  pages: 9
  extended_by: 0
  event_subscribers: 0
  calls: 0
  called_by: 0
  implements: 0
---

# Table 6121 "E-Document"

> Table 6121 "E-Document" in EDocument (Microsoft.eServices.EDocument). 47 fields, 16 public procedures. Introduced in BC29, still in BC30, changed in BC30.

EDocument · Microsoft.eServices.EDocument · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/EDocument/app/src/Document/EDocument.Table.al) · facts from BC29

Learn documents this table through its pages: [Page 6121 "E-Document"](../page/6121.md) (2 Learn pages), [Page 6167 "E-Doc. Order Line Matching"](../page/6167.md) (1).

## Properties

| Property | Value |
|---|---|
| DataClassification | CustomerContent |
| LookupPageId | E-Documents |
| DrillDownPageId | E-Documents |
| Permissions | tabledata "E-Document" = i, tabledata "E-Document Service Status" = d, tabledata "E-Document Log" = d, tabledata "E-Document Integration Log" = d, tabledata "E-Doc. Mapping Log" = d |

## Fields

Explanation: the field's ToolTip in the code; without one, the ToolTip of a page control bound to the field (marked via the page); without that, its Caption (marked caption) when that differs from the name.

| No. | Name | Type | Explanation | Notes |
|---|---|---|---|---|
| 1 | Entry No | Integer | Specifies the unique number of the document. <small>via [Page 6105 "Inbound E-Documents"](../page/6105.md)</small> | AutoIncrement |
| 2 | Document Record ID | RecordId | — | DataClassification SystemMetadata |
| 3 | Bill-to/Pay-to No. | Code[20] | Specifies the customer/vendor of the electronic document. <small>via [Page 6121 "E-Document"](../page/6121.md)</small> |  |
| 4 | Bill-to/Pay-to Name | Text[100] | Specifies the customer/vendor name of the electronic document. <small>via [Page 6121 "E-Document"](../page/6121.md)</small> | not editable |
| 5 | Document No. | Code[20] | Specifies the document number of the electronic document. <small>via [Page 6121 "E-Document"](../page/6121.md)</small> | not editable |
| 6 | Document Type | Enum "E-Document Type" | Specifies the electronic document type. <small>via [Page 6121 "E-Document"](../page/6121.md)</small> | enum [Enum 6121 "E-Document Type"](../enum/6121.md); not editable |
| 7 | Document Date | Date | Specifies the document date of the electronic document. <small>via [Page 6121 "E-Document"](../page/6121.md)</small> | not editable |
| 8 | Due Date | Date | Specifies the due date of the electronic document. <small>via [Page 6121 "E-Document"](../page/6121.md)</small> | not editable |
| 9 | Amount Incl. VAT | Decimal | Specifies the total amount of the electronic document including VAT. <small>via [Page 6121 "E-Document"](../page/6121.md)</small> | not editable |
| 10 | Amount Excl. VAT | Decimal | Specifies the total amount of the electronic document excluding VAT. <small>via [Page 6121 "E-Document"](../page/6121.md)</small> | not editable |
| 11 | Index In Batch | Integer | — | not editable |
| 12 | Order No. | Code[20] | Specifies the related order number of the electronic document. <small>via [Page 6121 "E-Document"](../page/6121.md)</small> |  |
| 13 | Posting Date | Date | Specifies the electronic document posting date. <small>via [Page 6121 "E-Document"](../page/6121.md)</small> | not editable |
| 14 | Direction | Enum "E-Document Direction" | Specifies the direction of the electronic document. <small>via [Page 6121 "E-Document"](../page/6121.md)</small> | enum [Enum 6102 "E-Document Direction"](../enum/6102.md); not editable |
| 15 | Incoming E-Document No. | Text[50] | Specifies the electronic document number. <small>via [Page 6121 "E-Document"](../page/6121.md)</small> | not editable |
| 16 | Table ID | Integer | — | not editable; DataClassification SystemMetadata |
| 17 | Table Name | Text[250] | Document Table Name <small>caption</small> | FlowField: lookup(AllObjWithCaption."Object Caption" where("Object Type" = const(Table), "Object ID" = field("Table ID"))); not editable |
| 18 | Status | Enum "E-Document Status" | Specifies the status of the electronic document. <small>via [Page 6121 "E-Document"](../page/6121.md)</small> | enum [Enum 6108 "E-Document Status"](../enum/6108.md) |
| 19 | Document Sending Profile | Code[20] | — | TableRelation [Table 60 "Document Sending Profile"](../table/60.md) (Document Sending Profile) |
| 20 | Source Type | enum "E-Document Source Type" | — | enum [Enum 6123 "E-Document Source Type"](../enum/6123.md) |
| 21 | Data Exch. Def. Code | Code[20] | — | TableRelation [Table 1222 "Data Exch. Def"](../table/1222.md) (Data Exch. Def) |
| 22 | Receiving Company VAT Reg. No. | Text[20] | Specifies the receiving company VAT number. <small>via [Page 6121 "E-Document"](../page/6121.md)</small> |  |
| 23 | Receiving Company GLN | Code[13] | Specifies the receiving company GLN. <small>via [Page 6121 "E-Document"](../page/6121.md)</small> |  |
| 24 | Receiving Company Name | Text[150] | Specifies the receiving company name. <small>via [Page 6121 "E-Document"](../page/6121.md)</small> |  |
| 25 | Receiving Company Address | Text[200] | Specifies the receiving company address. <small>via [Page 6121 "E-Document"](../page/6121.md)</small> |  |
| 26 | Currency Code | Code[10] | Specifies the electronic document currency code. <small>via [Page 6121 "E-Document"](../page/6121.md)</small> | TableRelation [Table 4 "Currency"](../table/4.md); not editable |
| 27 | Workflow Code | Code[20] | Specifies the Workflow used on the electronic document. <small>via [Page 6121 "E-Document"](../page/6121.md)</small> | TableRelation [Table 1501 "Workflow"](../table/1501.md) (Workflow where(Template = const(false), Category = const('EDOC'))) |
| 28 | Workflow Step Instance ID | Guid | — | DataClassification SystemMetadata |
| 29 | Job Queue Entry ID | Guid | — | TableRelation [Table 472 "Job Queue Entry"](../table/472.md) (Job Queue Entry); DataClassification SystemMetadata |
| 30 | Journal Line System ID | Guid | — | DataClassification SystemMetadata |
| 31 | Receiving Company Id | Text[250] | Specifies the receiving company id, such as PEPPOL id, or other identifiers used in the electronic document exchange. |  |
| 32 | Unstructured Data Entry No. | Integer | Specifies the content that is not structured, such as PDF | TableRelation [Table 6125 "E-Doc. Data Storage"](../table/6125.md) (E-Doc. Data Storage) |
| 33 | Structured Data Entry No. | Integer | Specifies the content that is structured, such as XML | TableRelation [Table 6125 "E-Doc. Data Storage"](../table/6125.md) (E-Doc. Data Storage) |
| 34 | Service | Code[20] | Specifies the service that is used to process the E-Document. | TableRelation [Table 6103 "E-Document Service"](../table/6103.md) (E-Document Service); not editable |
| 35 | File Name | Text[256] | Specifies the file name of the E-Document source. |  |
| 36 | File Type | Integer | Specifies the file type of the E-Document source. | obsolete Removed 26.0; #if not CLEANSCHEMA26 |
| 37 | Structured Data Process | Integer | Specifies the structured data process to run on the E-Document data. | obsolete Removed 26.0; #if not CLEANSCHEMA26 |
| 38 | Service Integration | Enum "Service Integration" | Specifies the service integration to use for the E-Document. | enum [Enum 6151 "Service Integration"](../enum/6151.md); not editable |
| 39 | Source Details | Text[2048] | Specifies details about the the E-Document source. |  |
| 40 | Additional Source Details | Text[2048] | Specifies additional details about the E-Document source. |  |
| 41 | Import Processing Status | Enum "Import E-Doc. Proc. Status" | Specifies the E-Document import processing status. | FlowField: lookup("E-Document Service Status"."Import Processing Status" where("E-Document Entry No" = field("Entry No"))); enum [Enum 6100 "Import E-Doc. Proc. Status"](../enum/6100.md) |
| 42 | Structure Data Impl. | Enum "Structure Received E-Doc." | Specifies the implementation to use for structuring the E-Document data. | enum [Enum 6103 "Structure Received E-Doc."](../enum/6103.md) |
| 43 | Read into Draft Impl. | Enum "E-Doc. Read into Draft" | Specifies the implementation to use for reading the E-Document data into a draft. | enum [Enum 6109 "E-Doc. Read into Draft"](../enum/6109.md) |
| 44 | Process Draft Impl. | Enum "E-Doc. Process Draft" | Specifies the implementation to use for processing the draft received. | enum [Enum 6107 "E-Doc. Process Draft"](../enum/6107.md) |
| 45 | Receiving Company Reg. No. | Text[20] | Receiving Company Registration No. <small>caption</small> |  |
| 60 | Clearance Date | DateTime | Specifies date and time when document was cleared by authority | DataClassification SystemMetadata |
| 61 | Last Clearance Request Time | DateTime | Specifies the last time a clearance request was made <small>via [Page 6121 "E-Document"](../page/6121.md)</small> | DataClassification SystemMetadata |

## Keys

- Key1: Entry No (clustered)
- Key2: Document Record ID
- Key3: Incoming E-Document No., Bill-to/Pay-to No., Document Date, Entry No
- Key4: SystemCreatedAt
- DueDate: Due Date

## Procedures

- `Create(EDocumentDirection: Enum "E-Document Direction"; EDocumentType: Enum "E-Document Type"; EDocumentService: Record "E-Document Service")` (internal): Inserts a new E-Document record with the specified parameters.
- `IsDuplicate(ShowMessage: Boolean): Boolean` (internal)
- `IsEDocumentCreatedForRecord(RecordVariant: Variant): Boolean`: Checks if an E-Document is created for the given document record.
- `IsSourceDocumentStructured(): Boolean` (internal)
- `GetTotalAmountIncludingVAT(): Decimal` (internal)
- `DeleteOrphanedImport()` (internal)
- `CleanupDocument()`
- `ExportDataStorage()` (internal)
- `ViewSourceFile()`
- `TryGetExportedFileLog(var EDocumentLog: Record "E-Document Log"): Boolean` (internal)
- `OpenEDocument(EDocumentRecordId: RecordId)` (internal)
- `ShowRecord()` (internal)
- `GetEDocumentServiceStatus(): Record "E-Document Service Status"` (internal)
- `GetEDocumentService(): Record "E-Document Service"`
- `GetEDocumentImportProcessingStatus(): Enum "Import E-Doc. Proc. Status"` (obsolete 27.0: Use flow field "Import Processing Status")
- `ToString(): Text` (internal)

## Triggers

OnDelete

## Relations

- drill-down page [Page 6122 "E-Documents"](../page/6122.md)
- lookup page [Page 6122 "E-Documents"](../page/6122.md)
- Data Exch. Def. Code: TableRelation [Table 1222 "Data Exch. Def"](../table/1222.md)
- Workflow Code: TableRelation [Table 1501 "Workflow"](../table/1501.md)
- Currency Code: TableRelation [Table 4 "Currency"](../table/4.md)
- Job Queue Entry ID: TableRelation [Table 472 "Job Queue Entry"](../table/472.md)
- Document Sending Profile: TableRelation [Table 60 "Document Sending Profile"](../table/60.md)
- Service: TableRelation [Table 6103 "E-Document Service"](../table/6103.md)
- Structured Data Entry No.: TableRelation [Table 6125 "E-Doc. Data Storage"](../table/6125.md)
- Unstructured Data Entry No.: TableRelation [Table 6125 "E-Doc. Data Storage"](../table/6125.md)
- Import Processing Status: CalcFormula [Table 6138 "E-Document Service Status"](../table/6138.md)

## Referenced by

21 fields in 20 objects relate to this table (TableRelation or CalcFormula).

- [Table 6110 "E-Document Line - Field"](../table/6110.md): E-Document Service, E-Document Entry No.
- [Table 6100 "E-Document Purchase Header"](../table/6100.md): E-Document Entry No.
- [Table 6101 "E-Document Purchase Line"](../table/6101.md): E-Document Entry No.
- [Table 6102 "E-Document Header Mapping"](../table/6102.md): E-Document Entry No.
- [Table 6105 "E-Document Line Mapping"](../table/6105.md): E-Document Entry No.
- [Table 6111 "EDoc Line Match Buffer"](../table/6111.md): E-Document Entry No.
- [Table 6123 "E-Doc. Mapping Log"](../table/6123.md): E-Doc Entry No.
- [Table 6124 "E-Document Log"](../table/6124.md): E-Doc. Entry No
- [Table 6127 "E-Document Integration Log"](../table/6127.md): E-Doc. Entry No
- [Table 6130 "E-Doc. File Content API Buffer"](../table/6130.md): E-Doc Entry No.
- [Table 6138 "E-Document Service Status"](../table/6138.md): E-Document Entry No
- [Table 6153 "E-Document Sales Header"](../table/6153.md): E-Document Entry No.
- [Table 6154 "E-Document Sales Line"](../table/6154.md): E-Document Entry No.
- [Table 6163 "E-Doc. PO Match Prop. Buffer"](../table/6163.md): E-Document Entry No.
- [Table 6164 "E-Doc. Order Match"](../table/6164.md): E-Document Entry No.
- [Table 6165 "E-Doc. Imported Line"](../table/6165.md): E-Document Entry No.
- [Table 6432 "E-Document Message"](../table/6432.md): E-Document Entry No.
- [Table 6433 "E-Doc. Payment Occurrence"](../table/6433.md): E-Document Entry No.
- [Table 6434 "E-Doc. External Reference"](../table/6434.md): E-Document Entry No.
- [Table extension 6160 "E-Doc. Attachment"](../tableextension/6160.md): E-Document Entry No.

## Pages and codeunits on this table

- [Page 6105 "Inbound E-Documents"](../page/6105.md) (source table)
- [Page 6106 "Outbound E-Documents"](../page/6106.md) (source table)
- [Page 6112 "E-Documents API"](../page/6112.md) (source table)
- [Page 6115 "New E-Documents API"](../page/6115.md) (source table)
- [Page 6121 "E-Document"](../page/6121.md) (source table)
- [Page 6122 "E-Documents"](../page/6122.md) (source table)
- [Page 6166 "E-Doc. PO Copilot Prop"](../page/6166.md) (source table)
- [Page 6167 "E-Doc. Order Line Matching"](../page/6167.md) (source table)
- [Page 6181 "E-Document Purchase Draft"](../page/6181.md) (source table)

## Recent changes

- 2026-09-30 [#12070 Fix inconsistent CLEAN27/CLEAN28 tags in E-Document apps](../../changes/bcapps/12070.md) (main, BC30, fix)
- 2026-09-30 [#12053 Remove-Sustainability-CLEAN27-tags-for-Wave2-2026](../../changes/bcapps/12053.md) (main, BC30, obsoletion)
- 2026-09-25 [#11846 Fix View file on outgoing E-Documents to open the exported file](../../changes/bcapps/11846.md) (main, BC30, fix)
- 2026-09-24 [#11483 [E-Documents Core] - Linkage & Traceability](../../changes/bcapps/11483.md) (main, BC30, feature)
- 2026-09-15 [#10437 [FR E-Reporting] Add payment and invoice lifecycle messages](../../changes/bcapps/10437.md) (main, BC30, feature)
- 2026-08-26 [#10631 Integration/main to releases 29.x 31a860b5](../../changes/bcapps/10631.md) (releases/29.x, BC29, feature)
- 2026-08-24 [#10349 [DE] Support registration numbers in E-Documents](../../changes/bcapps/10349.md) (main, BC30, feature)
- 2026-08-11 [#9578 [E-Documents Core] - Enabling remittance advice export via E-Documents (payment journal + posted payments)](../../changes/bcapps/9578.md) (main, BC30, feature)
- 2026-07-27 [#8698 [E-Documents Core] [Peppol] - Enabling EDI capabilities with E-Documents. PEPPOL Order Response Message Handling](../../changes/bcapps/8698.md) (main, BC30, feature)

## Across versions

- Present in: BC29-30
- Changed (declaration) in: BC30

## Deprecations

- field File Type: Removed 26.0 (#if not CLEANSCHEMA26), "Use File Format in the "E-Doc. Data Storage" table instead."
- field Structured Data Process: Removed 26.0 (#if not CLEANSCHEMA26), "Use "Process Draft Impl." field instead."
- procedure GetEDocumentImportProcessingStatus: Pending 27.0 (#if not CLEAN27), "Use flow field "Import Processing Status""

Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).

## 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: "table", object_name: "E-Document")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
