---
id: object/page/6181
type: object
title: Page 6181 "E-Document Purchase Draft"
summary: Page 6181 "E-Document Purchase Draft" in EDocument (Microsoft.eServices.EDocument.Processing.Import.Purchase). Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - page
  - edocument
versions:
  introduced: "29"
  last_changed: null
  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: d06ccfaf04ad1706a4cda9ff4937ade8c5504b7ea3ae49703b32dbb35fccae6e
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/EDocument/app/src/Processing/Import/Purchase/EDocumentPurchaseDraft.Page.al
    title: src/Apps/W1/EDocument/app/src/Processing/Import/Purchase/EDocumentPurchaseDraft.Page.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes:
    - change/bcapps/9257
    - change/bcapps/9711
object_type: page
object_id: 6181
name: E-Document Purchase Draft
caption: Purchase Document Draft
namespace: Microsoft.eServices.EDocument.Processing.Import.Purchase
app: EDocument
extends: null
first_version: "29"
last_version: "30"
present_in:
  - "29"
  - "30"
changed_in: []
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 14
  events: 0
  subscribers: 0
  controls: 23
  actions: 10
relations:
  out: 1
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 3
  calls: 0
  called_by: 0
  implements: 0
---

# Page 6181 "E-Document Purchase Draft"

> Page 6181 "E-Document Purchase Draft" in EDocument (Microsoft.eServices.EDocument.Processing.Import.Purchase). Introduced in BC29, still in BC30.

EDocument · Microsoft.eServices.EDocument.Processing.Import.Purchase · captioned "Purchase Document Draft" · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/EDocument/app/src/Processing/Import/Purchase/EDocumentPurchaseDraft.Page.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| Caption | Purchase Document Draft |
| Extensible | false |
| SourceTable | E-Document |
| PageType | Card |
| ApplicationArea | Basic, Suite |

## Fields on this page

Layout controls in source order, grouped by the container they sit in. Shows: the table field a control is bound to (or its expression as written); ToolTip: the control's own, else the bound field's (marked).

| Group | Control | Shows | ToolTip |
|---|---|---|---|
| General | Purchase Document | `RecordLinkTxt` | Specifies the record, document, journal line, or ledger entry, that is linked to the electronic document. |
|  | Draft Type | [Read into Draft Impl.](../table/6121.md#fields) | Specifies the type of draft document. |
| Buy-from | Vendor No. | `EDocumentPurchaseHeader."[BC] Vendor No."` | Specifies the internal vendor identifier code. |
|  | Vendor Name | `EDocumentPurchaseHeader."Vendor Company Name"` | Specifies the extracted name of the vendor who delivers the products. |
|  | Vendor Address | `EDocumentPurchaseHeader."Vendor Address"` | Specifies the extracted vendor's address. |
| Document | Document Type | [Document Type](../table/6121.md#fields) | Specifies the electronic document type. |
|  | Document No. | `EDocumentPurchaseHeader."Sales Invoice No."` | Specifies the extracted ID for this specific document. |
|  | Posting Description | `EDocumentPurchaseHeader."Posting Description"` | Specifies the extracted posting description for the document. |
|  | Document Date | `EDocumentPurchaseHeader."Document Date"` | Specifies the extracted document date. |
|  | Due Date | `EDocumentPurchaseHeader."Due Date"` | Specifies the extracted due date. |
|  | Applies-to Doc. No. | `EDocumentPurchaseHeader."Applies-to Doc. No."` | Specifies the posted purchase invoice number in Business Central that this credit memo applies to. |
| General | Status | [Status](../table/6121.md#fields) | Specifies whether the EDocument is in progress and awaiting processing, has been processed into a Purchase Document, or encountered an error. The processing behavior depends on the EDocument Service setup. |
| Content | Lines | part [Page 6183 "E-Doc. Purchase Draft Subform"](../page/6183.md) | — |
| E-Document Details | Applied VAT Amount Diff. | `AppliedVATAmountDiff` | Specifies the VAT amount difference that was automatically applied to reconcile the document total VAT with the computed line VAT amounts. |
|  | Amount Excl. VAT | `EDocumentPurchaseHeader."Sub Total"` | Specifies the total amount of the electronic document excluding VAT. |
|  | Invoice Discount | `EDocumentPurchaseHeader."Total Discount"` | Specifies the discount in addition to the lines |
|  | Total VAT | `EDocumentPurchaseHeader."Total VAT"` | Specifies the total VAT |
|  | Amount Incl. VAT | `EDocumentPurchaseHeader.Total` | Specifies the total amount of the electronic document including VAT. |
|  | Currency Code | `EDocumentPurchaseHeader."Currency Code"` | Specifies the electronic document currency code. |
| FactBoxes | Documents | part [Page 1178 "Doc. Attachment List Factbox"](../page/1178.md) | — |
|  | Preview | part [Page 6111 "Inbound E-Doc. Picture"](../page/6111.md) | — |
|  | Details | part [Page 6108 "Inbound E-Doc. Factbox"](../page/6108.md) | — |
|  | ErrorMessagesFactBox | part [Page 701 "Error Messages Part"](../page/701.md) | — |

## Actions

| Group | Action | ToolTip | Runs |
|---|---|---|---|
| Process | Finalize draft | Process the electronic document into a business central document |  |
|  | Reset draft | Resets the draft document. Any changes made to the draft document will be lost. |  |
|  | Analyze document | Analyze the selected electronic document |  |
|  | Link to existing document | Link this electronic document to an existing purchase document in Business Central. Use this when you have already created the document manually and want to attach the e-document to it. |  |
| View | View pdf | View pdf. |  |
|  | View extracted data | View the extracted data from the source file. |  |
| Help | Provide feedback | Provide feedback on the Payables Agent experience. |  |
| Vendors | Historical Vendor Matches | Opens Vendor Assignment History to see names and addresses matched to vendors based on received e-documents. | [Page 6151 "E-Doc. Vendor Assignment Hist."](../page/6151.md) |
|  | Vendor List | Opens the Vendor List. | [Page 27 "Vendor List"](../page/27.md) |
|  | Create Vendor | Creates a vendor based on the invoice details. |  |

## Trigger event subscribers

- OnAfterValidateEvent(Invoice Discount): [Codeunit 6103 "E-Document Subscribers"](../codeunit/6103.md) OnAfterValidateDraftPageDiscount
- OnAfterValidateEvent(Total VAT): [Codeunit 6103 "E-Document Subscribers"](../codeunit/6103.md) OnAfterValidateDraftPageVAT
- OnAfterValidateEvent(Vendor No.): [Codeunit 6103 "E-Document Subscribers"](../codeunit/6103.md) OnAfterValidateDraftPageVendorNo

## Procedures

14 local procedures, no public ones.

## Triggers

OnOpenPage, OnAfterGetRecord

## Relations

- source table [Table 6121 "E-Document"](../table/6121.md)

## Recent changes

- 2026-08-18 [#9257 Hide Provide feedback action on E-Document Purchase Draft when user-i…](../../changes/bcapps/9257.md) (main, BC30, fix)
- 2026-08-14 [#9711 Fix E-Document purchase draft header Sub Total overwrite; notify on mismatch](../../changes/bcapps/9711.md) (main, BC30, fix)

## Across versions

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

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