---
title: "Table 130 Incoming Document"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/table/130-incoming-document/
type: table
id: 130
name: "Incoming Document"
app: "Base Application"
namespace: Microsoft.EServices.EDocument
versions: "17-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/table/130-incoming-document/source/29/"
checked: 2026-09-20
subject: "Microsoft Dynamics 365 Business Central"
license: "Content © 2026 Jonas Paprotka. Quote freely with attribution and a link."
---

# Table 130 Incoming Document

Jonas Paprotka, https://jonas-paprotka.de/ref/table/130-incoming-document/

| | |
| --- | --- |
| App | Base Application |
| Namespace | Microsoft.EServices.EDocument |
| Versions | 17-28 |
| Source file | eServices/EDocument/IncomingDocument.Table.al |

## Fields

| Id | Name | Type | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| 1 | Entry No. | Integer | 17-28 | - | - |
| 2 | Description | Text[100] | 17-28 | - | - |
| 3 | Created Date-Time | DateTime | 17-28 | - | - |
| 4 | Created By User ID | Guid | 17-28 | - | - |
| 5 | Created By User Name | Code[50] | 17-28 | - | - |
| 6 | Released | Boolean | 17-28 | - | - |
| 7 | Released Date-Time | DateTime | 17-28 | - | - |
| 8 | Released By User ID | Guid | 17-28 | - | - |
| 9 | Released By User Name | Code[50] | 17-28 | - | - |
| 10 | Last Date-Time Modified | DateTime | 17-28 | - | - |
| 11 | Last Modified By User ID | Guid | 17-28 | - | - |
| 12 | Last Modified By User Name | Code[50] | 17-28 | - | - |
| 13 | Posted | Boolean | 17-28 | - | - |
| 14 | Posted Date-Time | DateTime | 17-28 | - | - |
| 15 | Document Type | Enum Incoming Related Document Type | 17-28 | - | - |
| 16 | Document No. | Code[20] | 17-28 | - | - |
| 17 | Posting Date | Date | 17-28 | - | - |
| 18 | Status | Enum Incoming Document Status | 17-28 | - | - |
| 19 | URL1 | Text[250] | 17-25 | Removed 15.0 | URL field was introduced |
| 20 | URL2 | Text[250] | 17-25 | Removed 15.0 | URL field was introduced |
| 21 | URL3 | Text[250] | 17-25 | Removed 15.0 | URL field was introduced |
| 22 | URL4 | Text[250] | 17-25 | Removed 15.0 | URL field was introduced |
| 23 | Vendor Name | Text[100] | 17-28 | - | - |
| 24 | Vendor VAT Registration No. | Text[30] | 17-28 | - | - |
| 25 | Vendor IBAN | Code[50] | 17-28 | - | - |
| 26 | Document Date | Date | 17-28 | - | - |
| 27 | Vendor Bank Branch No. | Text[20] | 17-28 | - | - |
| 28 | Vendor Bank Account No. | Text[30] | 17-28 | - | - |
| 29 | Vendor No. | Code[20] | 17-28 | - | - |
| 30 | Data Exchange Type | Code[20] | 17-28 | - | - |
| 31 | OCR Data Corrected | Boolean | 17-28 | - | - |
| 32 | OCR Status | Option | 17-28 | - | - |
| 33 | OCR Track ID | Text[20] | 17-28 | - | - |
| 38 | OCR Service Doc. Template Code | Code[20] | 17-28 | - | - |
| 39 | OCR Service Doc. Template Name | Text[50] | 17-28 | - | - |
| 40 | OCR Process Finished | Boolean | 17-28 | - | - |
| 41 | Created Doc. Error Msg. Type | Option | 17-28 | - | - |
| 42 | Vendor Id | Guid | 17-28 | - | - |
| 50 | Currency Code | Code[10] | 17-28 | - | - |
| 51 | Amount Excl. VAT | Decimal | 17-28 | - | - |
| 52 | Amount Incl. VAT | Decimal | 17-28 | - | - |
| 53 | VAT Amount | Decimal | 17-28 | - | - |
| 54 | Due Date | Date | 17-28 | - | - |
| 55 | Vendor Invoice No. | Code[35] | 17-28 | - | - |
| 56 | Order No. | Code[20] | 17-28 | - | - |
| 57 | Vendor Phone No. | Text[30] | 17-28 | - | - |
| 58 | Related Record ID | RecordId | 17-28 | - | - |
| 60 | URL | Text[1024] | 17-28 | - | - |
| 160 | Job Queue Status | Enum Inc. Doc. Job Queue Status | 17-28 | - | - |
| 161 | Job Queue Entry ID | Guid | 17-28 | - | - |
| 162 | Processed | Boolean | 17-28 | - | - |

## Keys

| Name | Fields | Versions |
| --- | --- | --- |
| Key1, clustered | Entry No. | 17-28 |
| Key2 | Status | 17-28 |
| Key3 | Document No., Posting Date | 17-28 |
| Key4 | OCR Status | 17-28 |
| Key5 | Vendor No. | 17-28 |
| Key6 | Processed | 17-28 |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| GetURL | () | Text | public | 17-28 | - | - |
| SetURL | (Text) | - | public | 17-28 | - | - |
| Release | () | - | public | 17-28 | - | - |
| Reject | () | - | public | 17-28 | - | - |
| CheckNotCreated | () | - | public | 17-28 | - | - |
| CreateDocumentWithDataExchange | () | - | public | 17-28 | - | - |
| TryCreateDocumentWithDataExchange | () | - | public | 17-28 | - | - |
| CreateReleasedDocumentWithDataExchange | () | - | public | 17-28 | - | - |
| CreateManually | () | - | public | 17-28 | - | - |
| CreateGenJnlLine | () | - | public | 17-28 | - | - |
| CreatePurchInvoice | () | - | public | 17-28 | - | - |
| CreatePurchCreditMemo | () | - | public | 17-28 | - | - |
| CreateSalesInvoice | () | - | public | 17-28 | - | - |
| CreateSalesCreditMemo | () | - | public | 17-28 | - | - |
| CreateGeneralJournalLineWithDataExchange | () | - | public | 17-28 | - | - |
| TryCreateGeneralJournalLineWithDataExchange | () | - | public | 17-28 | - | - |
| RemoveReferenceToWorkingDocument | (Integer) | - | public | 17-28 | - | - |
| CreateIncomingDocument | (Text, Text) | Integer | public | 17-28 | - | - |
| CreateIncomingDocument | (InStream, Text) | - | public | 17-28 | - | - |
| CreateIncomingDocumentFromServerFile | (Text, Text) | - | public | 17 | Pending 15.3 | Replaced with CreateIncomingDocument function |
| TestReadyForProcessing | () | - | public | 17-28 | - | - |
| PostedDocExists | (Code[20], Date) | Boolean | public | 17-28 | - | - |
| GetPostedDocType | (Date, Code[20], var Boolean) | Integer | public | 17-20 | Pending 18.0 | Replaced by GetRelatedPostedDocType(). |
| SetPostedDocFields | (Date, Code[20]) | - | public | 17-28 | - | - |
| SetPostedDocFieldsForcePosted | (Date, Code[20], Boolean) | - | public | 17-28 | - | - |
| UndoPostedDocFields | () | - | public | 17-28 | - | - |
| UpdateIncomingDocumentFromPosting | (Integer, Date, Code[20]) | - | public | 17-28 | - | - |
| SetGenJournalLine | (var Record Gen. Journal Line) | - | public | 17-28 | - | - |
| SetSalesDoc | (var Record Sales Header) | - | public | 17-28 | - | - |
| SetPurchDoc | (var Record Purchase Header) | - | public | 17-28 | - | - |
| HyperlinkToDocument | (Code[20], Date) | - | public | 17-28 | - | - |
| ForwardToExistingLink | (Code[20], Date) | Boolean | public | 17-28 | - | - |
| ShowCard | (Code[20], Date) | - | public | 17-28 | - | - |
| ShowCardFromEntryNo | (Integer) | - | public | 17-28 | - | - |
| ImportAttachment | (var Record Incoming Document) | - | public | 17-28 | - | - |
| AddXmlAttachmentFromXmlText | (var Record Incoming Document Attachment, Text, Text) | - | public | 17-28 | - | - |
| AddAttachmentFromStream | (var Record Incoming Document Attachment, Text, Text, var InStream) | - | public | 17-28 | - | - |
| AddAttachmentFromServerFile | (Text, Text) | - | public | 17-28 | - | - |
| SelectIncomingDocument | (Integer, RecordId) | Integer | public | 17-28 | - | - |
| SelectIncomingDocumentForPostedDocument | (Code[20], Date, RecordId) | - | public | 17-28 | - | - |
| SendToJobQueue | (Boolean) | - | public | 17-28 | - | - |
| ResetOriginalOCRData | () | - | public | 17-28 | - | - |
| UploadCorrectedOCRData | () | Boolean | public | 17-28 | - | - |
| SaveErrorMessages | (var Record Error Message) | - | public | 17-28 | - | - |
| RemoveFromJobQueue | (Boolean) | - | public | 17-28 | - | - |
| SendToOCR | (Boolean) | - | public | 17-28 | - | - |
| SetStatus | (Option) | - | public | 17-28 | - | - |
| RetrieveFromOCR | (Boolean) | - | public | 17-28 | - | - |
| GetGeneratedFromOCRAttachment | (var Record Incoming Document Attachment) | Boolean | public | 17-28 | - | - |
| GetDataExchangePath | (Integer) | Text | public | 17-28 | - | - |
| ShowRecord | () | - | public | 17-28 | - | - |
| GetRecord | (var Variant) | Boolean | public | 17-28 | - | - |
| RemoveLinkToRelatedRecord | () | - | public | 17-28 | - | - |
| RemoveReferencedRecords | () | - | public | 17-28 | - | - |
| CreateFromAttachment | () | - | public | 17-28 | - | - |
| GetMainAttachment | (var Record Incoming Document Attachment) | Boolean | public | 17-28 | - | - |
| GetMainAttachmentFileName | () | Text | public | 17-28 | - | - |
| GetRecordLinkText | () | Text | public | 17-28 | - | - |
| GetOCRResutlFileName | () | Text | public | 17-28 | - | - |
| MainAttachmentDrillDown | () | - | public | 17-28 | - | - |
| ReplaceOrInsertMainAttachment | () | - | public | 17-28 | - | - |
| ReplaceMainAttachment | (Text) | - | public | 17-28 | - | - |
| ShowMainAttachment | () | - | public | 17-28 | - | - |
| OCRResultDrillDown | () | - | public | 17-28 | - | - |
| GetAdditionalAttachments | (var Record Incoming Document Attachment) | Boolean | public | 17-28 | - | - |
| DefaultAttachmentIsXML | () | Boolean | public | 17-28 | - | - |
| FindByDocumentNoAndPostingDate | (RecordRef, var Record Incoming Document) | Boolean | public | 17-28 | - | - |
| FindByDocumentNoAndPostingDate | (var Record Incoming Document, Text, Text) | Boolean | public | 17-28 | - | - |
| FindFromIncomingDocumentEntryNo | (RecordRef, var Record Incoming Document) | Boolean | public | 17-28 | - | - |
| GetStatusStyleText | () | Text | public | 17-28 | - | - |
| WaitingToReceiveFromOCR | () | Boolean | public | 17-28 | - | - |
| OCRIsEnabled | () | Boolean | public | 17-28 | - | - |
| IsADocumentAttached | () | Boolean | public | 17-28 | - | - |
| TestReadyForApproval | () | - | public | 17-28 | - | - |
| HasAttachment | () | Boolean | public | 17-28 | - | - |
| CanReplaceMainAttachment | () | Boolean | public | 17-28 | - | - |
| GetRelatedDocType | (Date, Code[20], var Boolean) | Enum Incoming Related Document Type | public | 18-28 | - | - |
| FindByDocumentNoAndPostingDate | (RecordRef, var Record Incoming Document, Text, Text) | Boolean | public | 19-28 | - | - |
| TestIfAlreadyExists | () | - | public | 20-28 | - | - |
| DocLinkExists | (Variant) | Boolean | public | 20-28 | - | - |
| RemoveIncomingDocumentEntryNoFromUnpostedDocument | () | - | public | 23-28 | - | - |
| SetServiceDoc | (var Record Service Header) | - | public | 23-27 | Pending 25.0 | Replaced by same procedure in codeunit ServDocExchangeMgt |
| GetRecordCaption | (var RecordRef) | Text | public | 25-28 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnCheckIncomingDocReleaseRestrictions | () | 17-28 | - | - |
| Integration event | OnCheckIncomingDocCreateDocRestrictions | () | 17-28 | - | - |
| Integration event | OnCheckIncomingDocSetForOCRRestrictions | () | 17-28 | - | - |
| Integration event | OnAfterCreateGenJnlLineFromIncomingDocSuccess | (var Record Incoming Document) | 17-28 | - | - |
| Integration event | OnAfterCreateGenJnlLineFromIncomingDocFail | (var Record Incoming Document) | 17-28 | - | - |
| Integration event | OnAfterCreateManually | (var Record Incoming Document) | 17-28 | - | - |
| Integration event | OnAfterCreateSalesHeaderFromIncomingDoc | (var Record Sales Header) | 17-28 | - | - |
| Integration event | OnAfterCreatePurchHeaderFromIncomingDoc | (var Record Purchase Header) | 17-28 | - | - |
| Integration event | OnAfterFindPostedRecord | (var Variant, var Boolean, var Record Incoming Document) | 17-28 | - | - |
| Integration event | OnAfterFindUnpostedRecord | (var Variant, var Boolean, var Record Incoming Document) | 17-28 | - | - |
| Integration event | OnAfterGetRelatedRecordCaption | (var RecordRef, var Text) | 17-28 | - | - |
| Integration event | OnAfterUpdateDocumentFields | (var Record Incoming Document, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeCreateManually | (var Record Incoming Document, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeCreateSalesHeaderFromIncomingDoc | (var Record Sales Header) | 17-28 | - | - |
| Integration event | OnBeforeDeleteApprovalEntries | (var Record Incoming Document, var Boolean) | 17-28 | - | - |
| Integration event | OnCreatePurchDocOnBeforePurchHeaderInsert | (var Record Purchase Header) | 17-28 | - | - |
| Integration event | OnGetDataExchangePath | (Record Data Exch. Line Def, Integer, var Text) | 17-28 | - | - |
| Integration event | OnBeforeGetJournalTemplateAndBatch | (var Code[10], var Code[10], var Boolean) | 17-28 | - | - |
| Integration event | OnCreateGenJnlLineOnBeforeShowRecord | (Record Incoming Document, var Boolean) | 17-21 | - | - |
| Integration event | OnCreateSalesDocOnBeforeShowRecord | (Record Incoming Document, var Boolean) | 17-21 | - | - |
| Integration event | OnCreatePurchDocOnBeforeShowRecord | (Record Incoming Document, var Boolean) | 17-21 | - | - |
| Integration event | OnRemoveReferenceToWorkingDocumentOnBeforeModify | (var Record Incoming Document) | 17-28 | - | - |
| Integration event | OnBeforeFindFromIncomingDocumentEntryNo | (RecordRef, var Record Incoming Document, var Boolean, var Boolean) | 18-28 | - | - |
| Integration event | OnCreateGenJnlLineOnBeforeGenJnlLineInsert | (var Record Gen. Journal Line, Record Gen. Journal Line) | 18-28 | - | - |
| Integration event | OnBeforeShowResultMessage | (var Record Incoming Document, var Record Error Message, var Boolean) | 19-28 | - | - |
| Integration event | OnAfterSetCreatedDocumentType | (var Dictionary, var Text) | 20-28 | - | - |
| Integration event | OnAfterCreateDocumentType | (var Record Incoming Document, Integer) | 20-28 | - | - |
| Integration event | OnTestIfAlreadyExists | (Enum Incoming Related Document Type, Integer) | 20-28 | - | - |
| Integration event | OnBeforeGetRelatedDocType | (Date, Code[20], var Boolean, var Enum Incoming Related Document Type, var Boolean) | 20-28 | - | - |
| Integration event | OnAfterClearRelatedRecords | (Enum Incoming Related Document Type, Integer) | 20-28 | - | - |
| Integration event | OnCreateGenJnlLineOnBeforeShowRecord | (var Record Incoming Document, var Boolean) | 22-28 | - | - |
| Integration event | OnCreateSalesDocOnBeforeShowRecord | (var Record Incoming Document, var Boolean) | 22-28 | - | - |
| Integration event | OnCreatePurchDocOnBeforeShowRecord | (var Record Incoming Document, var Boolean) | 22-28 | - | - |
| Integration event | OnGetDataExchangePathOnBeforeCase | (Record Data Exch. Line Def, Integer, Text) | 22-28 | - | - |
| Integration event | OnBeforeRemoveReferencedRecords | (var Record Incoming Document, var Boolean) | 22-28 | - | - |
| Integration event | OnFindByDocumentNoAndPostingDateOnBeforeFind | (var Record Incoming Document, Text, Date, var Boolean, var Boolean) | 22-28 | - | - |
| Integration event | OnCreateSalesDocOnAfterModifySalesHeader | (var Record Incoming Document, var Record Sales Header) | 22-28 | - | - |
| Integration event | OnCreatePurchDocOnAfterModifyPurchaseHeader | (var Record Incoming Document, var Record Purchase Header) | 22-28 | - | - |
| Integration event | OnBeforeUpdateIncomingDocumentFromPosting | (Integer, Date, Code[20], var Boolean) | 22-28 | - | - |
| Integration event | OnBeforeShowRecord | (var Record Incoming Document, var Boolean) | 22-28 | - | - |
| Integration event | OnFindUnpostedRecordOnAfterFilterGenJournalLine | (var Record Incoming Document, var Record Gen. Journal Line) | 22-28 | - | - |
| Integration event | OnBeforeCanReplaceMainAttachment | (var Boolean, Record Incoming Document, var Boolean) | 23-28 | - | - |
| Integration event | OnBeforeTestIfAlreadyExists | (Record Incoming Document, var Boolean) | 24-28 | - | - |
| Integration event | OnUpdateDocumentFieldsOnAfterUpdateDocuments | (var Record Incoming Document, var Boolean) | 25-28 | - | - |
| Integration event | OnFindByDocumentNoAndPostingDateOnSetFilters | (var Record Incoming Document, RecordRef) | 25-28 | - | - |
| Integration event | OnAfterRemoveIncomingDocumentEntryNoFromUnpostedDocument | (var Record Incoming Document, Variant) | 28 | - | - |

## Source

Symbols: Microsoft.BaseApplication.symbols.437dbf0e-84ff-417a-965d-ed2bb9650972, https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json, highest build per major on 2026-09-20.
AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at a66254c3b8b5bb1cea290dc8f9d097aec4381153.

Jonas Paprotka, 2026-09-20.
