Table of Contents

Table "Incoming Document"

ID 130
Namespace: Microsoft.EServices.EDocument

Properties

Name Value
Caption Incoming Document
DataCaptionFields 23,55,2
DrillDownPageID Page Microsoft.EServices.EDocument."Incoming Documents"
LookupPageID Page Microsoft.EServices.EDocument."Incoming Documents"
Permissions TableData "G/L Entry" = r
DataClassification CustomerContent

Fields

Name Type Description
"Entry No." Integer

Specifies the number of the entry, as assigned from the specified number series when the entry was created.

Description Text[100]

Specifies the description of the incoming document. You must enter the description manually.

"Created Date-Time" DateTime

Specifies when the incoming document line was created.

"Created By User ID" Guid
"Created By User Name" Code[50]

Specifies the name of the user who created the incoming document line.

Released Boolean

Specifies if the incoming document has been approved.

"Released Date-Time" DateTime

Specifies when the incoming document was approved.

"Released By User ID" Guid
"Released By User Name" Code[50]

Specifies the name of the user who approved the incoming document.

"Last Date-Time Modified" DateTime

Specifies when the incoming document line was last modified.

"Last Modified By User ID" Guid
"Last Modified By User Name" Code[50]

Specifies the name of the user who last modified the incoming document line.

Posted Boolean

Specifies if the document or journal line that was created for this incoming document has been posted.

"Posted Date-Time" DateTime

Specifies when the related document or journal line was posted.

"Document Type" Enum Microsoft.EServices.EDocument."Incoming Related Document Type"

Specifies the type of document or journal that the incoming document can be connected to.

"Document No." Code[20]

Specifies the number of the related document or journal line that is created for the incoming document.

"Posting Date" Date

Specifies when the document or journal line that relates to the incoming document was posted.

Status Enum Microsoft.EServices.EDocument."Incoming Document Status"

Specifies the status of the incoming document record.

URL Text[1024]

Specifies the location of the file that represents the incoming document.

"Vendor Name" Text[100]

Specifies the name of the vendor on the incoming document. The field may be filled automatically.

"Vendor VAT Registration No." Text[30]

Specifies the VAT registration number of the vendor, if the document contains that number. The field may be filled automatically.

"Vendor IBAN" Code[50]

Specifies the new value that you want the OCR service to produce for this field going forward.

"Document Date" Date

Specifies the date that is printed on the incoming document. This is the date when the vendor created the invoice, for example. The field may be filled automatically.

"Vendor Bank Branch No." Text[20]

Specifies the new value that you want the OCR service to produce for this field going forward.

"Vendor Bank Account No." Text[30]

Specifies the bank account number of the vendor on the incoming document.

"Vendor No." Code[20]

Specifies the number of the vendor on the incoming document. The field may be filled automatically.

"Data Exchange Type" Code[20]

Specifies the data exchange type that is used to process the incoming document when it is an electronic document.

"OCR Data Corrected" Boolean
"OCR Status" Option

Specifies the status of the incoming document record when it takes part in the OCR process.

"OCR Track ID" Text[20]

Specifies the process stage of the track ID in relation to the OCR service.

"OCR Service Doc. Template Code" Code[20]

Specifies the code of the document template that you want the OCR service provider to use when they convert the incoming-document file to an electronic document. Chose the field to pick a supported document template from the OCR Service Setup window.

"OCR Service Doc. Template Name" Text[50]

Specifies the name of the document template that you want the OCR service provider to use when they convert the incoming-document file to an electronic document. Chose the field to pick a supported document template from the OCR Service Setup window.

"OCR Process Finished" Boolean
"Created Doc. Error Msg. Type" Option
"Vendor Id" Guid
"Currency Code" Code[10]

Specifies the currency code, if the document contains that code. The field may be filled automatically.

"Amount Excl. VAT" Decimal

Specifies the amount excluding VAT for the whole document. The field may be filled automatically.

"Amount Incl. VAT" Decimal

Specifies the amount including VAT for the whole document. The field may be filled automatically.

"VAT Amount" Decimal

Specifies the amount of VAT that is included in the total amount.

"Due Date" Date

Specifies the date when the vendor document must be paid. The field may be filled automatically.

"Vendor Invoice No." Code[35]

Specifies the document number of the original document you received from the vendor. You can require the document number for posting, or let it be optional. By default, it's required, so that this document references the original. Making document numbers optional removes a step from the posting process. For example, if you attach the original invoice as a PDF, you might not need to enter the document number. To specify whether document numbers are required, in the Purchases & Payables Setup window, select or clear the Ext. Doc. No. Mandatory field.

"Order No." Code[20]

Specifies the order number, if the document contains that number. The field may be filled automatically.

"Vendor Phone No." Text[30]

Specifies the phone number of the vendor on the incoming document.

"Related Record ID" RecordId
"Job Queue Status" Enum System.Threading."Inc. Doc. Job Queue Status"

Specifies the status of the job queue entry that is processing the incoming document.

"Job Queue Entry ID" Guid
Processed Boolean

Specifies if the incoming document has been processed.

SystemId Guid
SystemCreatedAt DateTime
SystemCreatedBy Guid
SystemModifiedAt DateTime
SystemModifiedBy Guid
SystemCreatedByUserName Text[50]
SystemCreatedByFullName Text[80]
SystemModifiedByUserName Text[50]
SystemModifiedByFullName Text[80]
SystemRowVersion BigInteger

Methods

GetURL

procedure GetURL(): Text

Returns

Type Description
Text

SetURL

procedure SetURL(NewURL: Text)

Parameters

Name Type Description
NewURL Text

Reject

procedure Reject()

CheckNotCreated

procedure CheckNotCreated()

CreateDocumentWithDataExchange

procedure CreateDocumentWithDataExchange()

TryCreateDocumentWithDataExchange

procedure TryCreateDocumentWithDataExchange()

CreateReleasedDocumentWithDataExchange

procedure CreateReleasedDocumentWithDataExchange()

CreateManually

procedure CreateManually()

CreateGenJnlLine

procedure CreateGenJnlLine()

CreatePurchInvoice

procedure CreatePurchInvoice()

CreatePurchCreditMemo

procedure CreatePurchCreditMemo()

CreateSalesInvoice

procedure CreateSalesInvoice()

CreateSalesCreditMemo

procedure CreateSalesCreditMemo()

RemoveReferenceToWorkingDocument

procedure RemoveReferenceToWorkingDocument(EntryNo: Integer)

Parameters

Name Type Description
EntryNo Integer

RemoveIncomingDocumentEntryNoFromUnpostedDocument

procedure RemoveIncomingDocumentEntryNoFromUnpostedDocument()

CreateIncomingDocument

procedure CreateIncomingDocument(NewDescription: Text; NewURL: Text): Integer

Parameters

Name Type Description
NewDescription Text
NewURL Text

Returns

Type Description
Integer

CreateIncomingDocument

procedure CreateIncomingDocument(PictureInStream: InStream; FileName: Text)

Parameters

Name Type Description
PictureInStream InStream
FileName Text

TestIfAlreadyExists

procedure TestIfAlreadyExists()

TestReadyForProcessing

procedure TestReadyForProcessing()

PostedDocExists

procedure PostedDocExists(DocumentNo: Code[20]; PostingDate: Date): Boolean

Parameters

Name Type Description
DocumentNo Code[20]
PostingDate Date

Returns

Type Description
Boolean

GetRelatedDocType

procedure GetRelatedDocType(PostingDate: Date; DocNo: Code[20]; var IsPosted: Boolean): Enum "Incoming Related Document Type"

Parameters

Name Type Description
PostingDate Date
DocNo Code[20]
IsPosted Boolean

Returns

Type Description
Enum Microsoft.EServices.EDocument."Incoming Related Document Type"

SetPostedDocFields

procedure SetPostedDocFields(PostingDate: Date; DocNo: Code[20])

Parameters

Name Type Description
PostingDate Date
DocNo Code[20]

SetPostedDocFieldsForcePosted

procedure SetPostedDocFieldsForcePosted(PostingDate: Date; DocNo: Code[20]; ForcePosted: Boolean)

Parameters

Name Type Description
PostingDate Date
DocNo Code[20]
ForcePosted Boolean

UndoPostedDocFields

procedure UndoPostedDocFields()

UpdateIncomingDocumentFromPosting

procedure UpdateIncomingDocumentFromPosting(IncomingDocumentNo: Integer; PostingDate: Date; DocNo: Code[20])

Parameters

Name Type Description
IncomingDocumentNo Integer
PostingDate Date
DocNo Code[20]

SetGenJournalLine

procedure SetGenJournalLine(var GenJnlLine: Record "Gen. Journal Line")

Parameters

Name Type Description
GenJnlLine Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line"

SetSalesDoc

procedure SetSalesDoc(var SalesHeader: Record "Sales Header")

Parameters

Name Type Description
SalesHeader Table Microsoft.Sales.Document."Sales Header"

SetPurchDoc

procedure SetPurchDoc(var PurchaseHeader: Record "Purchase Header")

Parameters

Name Type Description
PurchaseHeader Table Microsoft.Purchases.Document."Purchase Header"

DocLinkExists

procedure DocLinkExists(RecVar: Variant): Boolean

Parameters

Name Type Description
RecVar Variant

Returns

Type Description
Boolean

HyperlinkToDocument

procedure HyperlinkToDocument(DocumentNo: Code[20]; PostingDate: Date)

Parameters

Name Type Description
DocumentNo Code[20]
PostingDate Date

ForwardToExistingLink

procedure ForwardToExistingLink(DocumentNo: Code[20]; PostingDate: Date): Boolean

Parameters

Name Type Description
DocumentNo Code[20]
PostingDate Date

Returns

Type Description
Boolean

ShowCard

procedure ShowCard(DocumentNo: Code[20]; PostingDate: Date)

Parameters

Name Type Description
DocumentNo Code[20]
PostingDate Date

ShowCardFromEntryNo

procedure ShowCardFromEntryNo(EntryNo: Integer)

Parameters

Name Type Description
EntryNo Integer

ImportAttachment

procedure ImportAttachment(var IncomingDocument: Record "Incoming Document")

Parameters

Name Type Description
IncomingDocument Table Microsoft.EServices.EDocument."Incoming Document"

AddAttachmentFromStream

procedure AddAttachmentFromStream(var IncomingDocumentAttachment: Record "Incoming Document Attachment"; OrgFileName: Text; FileExtension: Text; var InStr: InStream)

Parameters

Name Type Description
IncomingDocumentAttachment Table Microsoft.EServices.EDocument."Incoming Document Attachment"
OrgFileName Text
FileExtension Text
InStr InStream

SelectIncomingDocument

procedure SelectIncomingDocument(EntryNo: Integer; RelatedRecordID: RecordId): Integer

Parameters

Name Type Description
EntryNo Integer
RelatedRecordID RecordId

Returns

Type Description
Integer

SelectIncomingDocumentForPostedDocument

procedure SelectIncomingDocumentForPostedDocument(DocumentNo: Code[20]; PostingDate: Date; RelatedRecordID: RecordId)

Parameters

Name Type Description
DocumentNo Code[20]
PostingDate Date
RelatedRecordID RecordId

SaveErrorMessages

procedure SaveErrorMessages(var TempErrorMessageRef: Record "Error Message" temporary)

Parameters

Name Type Description
TempErrorMessageRef Table System.Utilities."Error Message"

RemoveFromJobQueue

procedure RemoveFromJobQueue(ShowMessages: Boolean)

Parameters

Name Type Description
ShowMessages Boolean

SetStatus

procedure SetStatus(NewStatus: Option)

Parameters

Name Type Description
NewStatus Option

GetGeneratedFromOCRAttachment

procedure GetGeneratedFromOCRAttachment(var IncomingDocumentAttachment: Record "Incoming Document Attachment"): Boolean

Parameters

Name Type Description
IncomingDocumentAttachment Table Microsoft.EServices.EDocument."Incoming Document Attachment"

Returns

Type Description
Boolean

GetDataExchangePath

procedure GetDataExchangePath(FieldNumber: Integer): Text

Parameters

Name Type Description
FieldNumber Integer

Returns

Type Description
Text

ShowRecord

procedure ShowRecord()

GetRecord

procedure GetRecord(var RelatedRecord: Variant): Boolean

Parameters

Name Type Description
RelatedRecord Variant

Returns

Type Description
Boolean

RemoveLinkToRelatedRecord

procedure RemoveLinkToRelatedRecord()

RemoveReferencedRecords

procedure RemoveReferencedRecords()

CreateFromAttachment

procedure CreateFromAttachment()

GetMainAttachment

procedure GetMainAttachment(var IncomingDocumentAttachment: Record "Incoming Document Attachment"): Boolean

Parameters

Name Type Description
IncomingDocumentAttachment Table Microsoft.EServices.EDocument."Incoming Document Attachment"

Returns

Type Description
Boolean

GetMainAttachmentFileName

procedure GetMainAttachmentFileName(): Text

Returns

Type Description
Text

GetRecordLinkText

procedure GetRecordLinkText(): Text

Returns

Type Description
Text

GetRecordCaption

procedure GetRecordCaption(var RecRef: RecordRef): Text

Parameters

Name Type Description
RecRef RecordRef

Returns

Type Description
Text

GetOCRResutlFileName

procedure GetOCRResutlFileName(): Text

Returns

Type Description
Text

GetAdditionalAttachments

procedure GetAdditionalAttachments(var IncomingDocumentAttachment: Record "Incoming Document Attachment"): Boolean

Parameters

Name Type Description
IncomingDocumentAttachment Table Microsoft.EServices.EDocument."Incoming Document Attachment"

Returns

Type Description
Boolean

DefaultAttachmentIsXML

procedure DefaultAttachmentIsXML(): Boolean

Returns

Type Description
Boolean

FindByDocumentNoAndPostingDate

procedure FindByDocumentNoAndPostingDate(MainRecordRef: RecordRef; var IncomingDocument: Record "Incoming Document"): Boolean

Parameters

Name Type Description
MainRecordRef RecordRef
IncomingDocument Table Microsoft.EServices.EDocument."Incoming Document"

Returns

Type Description
Boolean

FindByDocumentNoAndPostingDate

procedure FindByDocumentNoAndPostingDate(MainRecordRef: RecordRef; var IncomingDocument: Record "Incoming Document"; DocumentNo: Text; PostingDateText: Text): Boolean

Parameters

Name Type Description
MainRecordRef RecordRef
IncomingDocument Table Microsoft.EServices.EDocument."Incoming Document"
DocumentNo Text
PostingDateText Text

Returns

Type Description
Boolean

FindByDocumentNoAndPostingDate

procedure FindByDocumentNoAndPostingDate(var IncomingDocument: Record "Incoming Document"; DocumentNo: Text; PostingDateText: Text): Boolean

Parameters

Name Type Description
IncomingDocument Table Microsoft.EServices.EDocument."Incoming Document"
DocumentNo Text
PostingDateText Text

Returns

Type Description
Boolean

FindFromIncomingDocumentEntryNo

procedure FindFromIncomingDocumentEntryNo(MainRecordRef: RecordRef; var IncomingDocument: Record "Incoming Document"): Boolean

Parameters

Name Type Description
MainRecordRef RecordRef
IncomingDocument Table Microsoft.EServices.EDocument."Incoming Document"

Returns

Type Description
Boolean

GetStatusStyleText

procedure GetStatusStyleText(): Text

Returns

Type Description
Text

WaitingToReceiveFromOCR

procedure WaitingToReceiveFromOCR(): Boolean

Returns

Type Description
Boolean

OCRIsEnabled

procedure OCRIsEnabled(): Boolean

Returns

Type Description
Boolean

IsADocumentAttached

procedure IsADocumentAttached(): Boolean

Returns

Type Description
Boolean

TestReadyForApproval

procedure TestReadyForApproval()

HasAttachment

procedure HasAttachment(): Boolean

Returns

Type Description
Boolean

CanReplaceMainAttachment

procedure CanReplaceMainAttachment(): Boolean

Returns

Type Description
Boolean

Events

OnAfterCreateGenJnlLineFromIncomingDocSuccess

[IntegrationEvent(False,False)]
procedure OnAfterCreateGenJnlLineFromIncomingDocSuccess(var IncomingDocument: Record "Incoming Document")

Parameters

Name Type Description
IncomingDocument Table Microsoft.EServices.EDocument."Incoming Document"

OnAfterCreateGenJnlLineFromIncomingDocFail

[IntegrationEvent(False,False)]
procedure OnAfterCreateGenJnlLineFromIncomingDocFail(var IncomingDocument: Record "Incoming Document")

Parameters

Name Type Description
IncomingDocument Table Microsoft.EServices.EDocument."Incoming Document"

OnAfterCreateManually

[IntegrationEvent(False,False)]
procedure OnAfterCreateManually(var IncomingDocument: Record "Incoming Document")

Parameters

Name Type Description
IncomingDocument Table Microsoft.EServices.EDocument."Incoming Document"

OnAfterCreateSalesHeaderFromIncomingDoc

[IntegrationEvent(True,False)]
local procedure OnAfterCreateSalesHeaderFromIncomingDoc(var SalesHeader: Record "Sales Header")

Parameters

Name Type Description
SalesHeader Table Microsoft.Sales.Document."Sales Header"

OnAfterCreatePurchHeaderFromIncomingDoc

[IntegrationEvent(True,False)]
local procedure OnAfterCreatePurchHeaderFromIncomingDoc(var PurchHeader: Record "Purchase Header")

Parameters

Name Type Description
PurchHeader Table Microsoft.Purchases.Document."Purchase Header"

OnAfterFindPostedRecord

[IntegrationEvent(False,False)]
local procedure OnAfterFindPostedRecord(var RelatedRecord: Variant; var RecordFound: Boolean; var IncomingDocument: Record "Incoming Document")

Parameters

Name Type Description
RelatedRecord Variant
RecordFound Boolean
IncomingDocument Table Microsoft.EServices.EDocument."Incoming Document"

OnAfterFindUnpostedRecord

[IntegrationEvent(False,False)]
local procedure OnAfterFindUnpostedRecord(var RelatedRecord: Variant; var RecordFound: Boolean; var IncomingDocument: Record "Incoming Document")

Parameters

Name Type Description
RelatedRecord Variant
RecordFound Boolean
IncomingDocument Table Microsoft.EServices.EDocument."Incoming Document"

OnAfterGetRelatedRecordCaption

[IntegrationEvent(False,False)]
local procedure OnAfterGetRelatedRecordCaption(var RelatedRecordRef: RecordRef; var RecCaption: Text)

Parameters

Name Type Description
RelatedRecordRef RecordRef
RecCaption Text

OnAfterUpdateDocumentFields

[IntegrationEvent(False,False)]
local procedure OnAfterUpdateDocumentFields(var IncomingDocument: Record "Incoming Document"; var DocExists: Boolean)

Parameters

Name Type Description
IncomingDocument Table Microsoft.EServices.EDocument."Incoming Document"
DocExists Boolean

OnBeforeCreateManually

[IntegrationEvent(True,False)]
local procedure OnBeforeCreateManually(var IncomingDocument: Record "Incoming Document"; var IsHandled: Boolean)

Parameters

Name Type Description
IncomingDocument Table Microsoft.EServices.EDocument."Incoming Document"
IsHandled Boolean

OnBeforeCreateSalesHeaderFromIncomingDoc

[IntegrationEvent(True,False)]
local procedure OnBeforeCreateSalesHeaderFromIncomingDoc(var SalesHeader: Record "Sales Header")

Parameters

Name Type Description
SalesHeader Table Microsoft.Sales.Document."Sales Header"

OnBeforeDeleteApprovalEntries

[IntegrationEvent(True,False)]
local procedure OnBeforeDeleteApprovalEntries(var IncomingDocument: Record "Incoming Document"; var IsHandled: Boolean)

Parameters

Name Type Description
IncomingDocument Table Microsoft.EServices.EDocument."Incoming Document"
IsHandled Boolean

OnBeforeShowResultMessage

[IntegrationEvent(True,False)]
local procedure OnBeforeShowResultMessage(var IncomingDocument: Record "Incoming Document"; var ErrorMessage: Record "Error Message"; var IsHandled: Boolean)

Parameters

Name Type Description
IncomingDocument Table Microsoft.EServices.EDocument."Incoming Document"
ErrorMessage Table System.Utilities."Error Message"
IsHandled Boolean

OnBeforeFindFromIncomingDocumentEntryNo

[IntegrationEvent(False,False)]
local procedure OnBeforeFindFromIncomingDocumentEntryNo(MainRecordRef: RecordRef; var IncomingDocument: Record "Incoming Document"; var Result: Boolean; var IsHandled: Boolean)

Parameters

Name Type Description
MainRecordRef RecordRef
IncomingDocument Table Microsoft.EServices.EDocument."Incoming Document"
Result Boolean
IsHandled Boolean

OnCreatePurchDocOnBeforePurchHeaderInsert

[IntegrationEvent(True,False)]
local procedure OnCreatePurchDocOnBeforePurchHeaderInsert(var PurchHeader: Record "Purchase Header")

Parameters

Name Type Description
PurchHeader Table Microsoft.Purchases.Document."Purchase Header"

OnCreateGenJnlLineOnBeforeGenJnlLineInsert

[IntegrationEvent(True,False)]
local procedure OnCreateGenJnlLineOnBeforeGenJnlLineInsert(var GenJnlLine: Record "Gen. Journal Line"; LastGenJnlLine: Record "Gen. Journal Line")

Parameters

Name Type Description
GenJnlLine Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line"
LastGenJnlLine Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line"

OnGetDataExchangePath

[IntegrationEvent(False,False)]
local procedure OnGetDataExchangePath(DataExchLineDef: Record "Data Exch. Line Def"; FieldNumber: Integer; var DataExchangePath: Text)

Parameters

Name Type Description
DataExchLineDef Table System.IO."Data Exch. Line Def"
FieldNumber Integer
DataExchangePath Text

OnBeforeGetJournalTemplateAndBatch

[IntegrationEvent(True,False)]
local procedure OnBeforeGetJournalTemplateAndBatch(var JournalTemplate: Code[10]; var JournalBatch: Code[10]; var IsHandled: Boolean)

Parameters

Name Type Description
JournalTemplate Code[10]
JournalBatch Code[10]
IsHandled Boolean

OnCreateGenJnlLineOnBeforeShowRecord

[IntegrationEvent(False,False)]
local procedure OnCreateGenJnlLineOnBeforeShowRecord(var IncomingDocument: Record "Incoming Document"; var IsHandled: Boolean)

Parameters

Name Type Description
IncomingDocument Table Microsoft.EServices.EDocument."Incoming Document"
IsHandled Boolean

OnCreateSalesDocOnBeforeShowRecord

[IntegrationEvent(False,False)]
local procedure OnCreateSalesDocOnBeforeShowRecord(var IncomingDocument: Record "Incoming Document"; var IsHandled: Boolean)

Parameters

Name Type Description
IncomingDocument Table Microsoft.EServices.EDocument."Incoming Document"
IsHandled Boolean

OnCreatePurchDocOnBeforeShowRecord

[IntegrationEvent(False,False)]
local procedure OnCreatePurchDocOnBeforeShowRecord(var IncomingDocument: Record "Incoming Document"; var IsHandled: Boolean)

Parameters

Name Type Description
IncomingDocument Table Microsoft.EServices.EDocument."Incoming Document"
IsHandled Boolean

OnRemoveReferenceToWorkingDocumentOnBeforeModify

[IntegrationEvent(False,False)]
local procedure OnRemoveReferenceToWorkingDocumentOnBeforeModify(var IncomingDocument: Record "Incoming Document")

Parameters

Name Type Description
IncomingDocument Table Microsoft.EServices.EDocument."Incoming Document"

OnAfterSetCreatedDocumentType

[IntegrationEvent(False,False)]
local procedure OnAfterSetCreatedDocumentType(var CreatedDocumentType: Dictionary of [Integer, Integer]; var CreatedDocumentStrMenu: Text)

Parameters

Name Type Description
CreatedDocumentType Dictionary of [Integer, Integer]
CreatedDocumentStrMenu Text

OnAfterCreateDocumentType

[IntegrationEvent(False,False)]
local procedure OnAfterCreateDocumentType(var IncomingDocument: Record "Incoming Document"; DocumentTypeEnum: Integer)

Parameters

Name Type Description
IncomingDocument Table Microsoft.EServices.EDocument."Incoming Document"
DocumentTypeEnum Integer

OnTestIfAlreadyExists

[IntegrationEvent(False,False)]
local procedure OnTestIfAlreadyExists(IncomingRelatedDocumentType: Enum "Incoming Related Document Type"; EntryNo: Integer)

Parameters

Name Type Description
IncomingRelatedDocumentType Enum Microsoft.EServices.EDocument."Incoming Related Document Type"
EntryNo Integer

OnBeforeGetRelatedDocType

[IntegrationEvent(False,False)]
local procedure OnBeforeGetRelatedDocType(PostingDate: Date; DocNo: Code[20]; var IsPosted: Boolean; var IncomingRelatedDocumentType: Enum "Incoming Related Document Type"; var IsHandled: Boolean)

Parameters

Name Type Description
PostingDate Date
DocNo Code[20]
IsPosted Boolean
IncomingRelatedDocumentType Enum Microsoft.EServices.EDocument."Incoming Related Document Type"
IsHandled Boolean

OnAfterClearRelatedRecords

[IntegrationEvent(False,False)]
local procedure OnAfterClearRelatedRecords(IncomingRelatedDocumentType: Enum "Incoming Related Document Type"; EntryNo: Integer)

Parameters

Name Type Description
IncomingRelatedDocumentType Enum Microsoft.EServices.EDocument."Incoming Related Document Type"
EntryNo Integer

OnGetDataExchangePathOnBeforeCase

[IntegrationEvent(False,False)]
local procedure OnGetDataExchangePathOnBeforeCase(DataExchLineDef: Record "Data Exch. Line Def"; FieldNumber: Integer; DataExchangePath: Text)

Parameters

Name Type Description
DataExchLineDef Table System.IO."Data Exch. Line Def"
FieldNumber Integer
DataExchangePath Text

OnBeforeRemoveReferencedRecords

[IntegrationEvent(False,False)]
local procedure OnBeforeRemoveReferencedRecords(var IncomingDocument: Record "Incoming Document"; var IsHandled: Boolean)

Parameters

Name Type Description
IncomingDocument Table Microsoft.EServices.EDocument."Incoming Document"
IsHandled Boolean

OnFindByDocumentNoAndPostingDateOnBeforeFind

[IntegrationEvent(False,False)]
local procedure OnFindByDocumentNoAndPostingDateOnBeforeFind(var IncomingDocument: Record "Incoming Document"; DocumentNo: Text; PostingDate: Date; var IsFound: Boolean; var IsHandled: Boolean)

Parameters

Name Type Description
IncomingDocument Table Microsoft.EServices.EDocument."Incoming Document"
DocumentNo Text
PostingDate Date
IsFound Boolean
IsHandled Boolean

OnCreateSalesDocOnAfterModifySalesHeader

[IntegrationEvent(False,False)]
local procedure OnCreateSalesDocOnAfterModifySalesHeader(var IncomingDocument: Record "Incoming Document"; var SalesHeader: Record "Sales Header")

Parameters

Name Type Description
IncomingDocument Table Microsoft.EServices.EDocument."Incoming Document"
SalesHeader Table Microsoft.Sales.Document."Sales Header"

OnCreatePurchDocOnAfterModifyPurchaseHeader

[IntegrationEvent(False,False)]
local procedure OnCreatePurchDocOnAfterModifyPurchaseHeader(var IncomingDocument: Record "Incoming Document"; var PurchaseHeader: Record "Purchase Header")

Parameters

Name Type Description
IncomingDocument Table Microsoft.EServices.EDocument."Incoming Document"
PurchaseHeader Table Microsoft.Purchases.Document."Purchase Header"

OnBeforeUpdateIncomingDocumentFromPosting

[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateIncomingDocumentFromPosting(IncomingDocumentNo: Integer; PostingDate: Date; DocNo: Code[20]; var IsHandled: Boolean)

Parameters

Name Type Description
IncomingDocumentNo Integer
PostingDate Date
DocNo Code[20]
IsHandled Boolean

OnBeforeShowRecord

[IntegrationEvent(False,False)]
local procedure OnBeforeShowRecord(var IncomingDocument: Record "Incoming Document"; var IsHandled: Boolean)

Parameters

Name Type Description
IncomingDocument Table Microsoft.EServices.EDocument."Incoming Document"
IsHandled Boolean

OnFindUnpostedRecordOnAfterFilterGenJournalLine

[IntegrationEvent(False,False)]
local procedure OnFindUnpostedRecordOnAfterFilterGenJournalLine(var IncomingDocument: Record "Incoming Document"; var GenJournalLine: Record "Gen. Journal Line")

Parameters

Name Type Description
IncomingDocument Table Microsoft.EServices.EDocument."Incoming Document"
GenJournalLine Table Microsoft.Finance.GeneralLedger.Journal."Gen. Journal Line"

OnBeforeCanReplaceMainAttachment

[IntegrationEvent(False,False)]
local procedure OnBeforeCanReplaceMainAttachment(var CanReplaceMainAttachment: Boolean; IncomingDocument: Record "Incoming Document"; var IsHandled: Boolean)

Parameters

Name Type Description
CanReplaceMainAttachment Boolean
IncomingDocument Table Microsoft.EServices.EDocument."Incoming Document"
IsHandled Boolean

OnBeforeTestIfAlreadyExists

[IntegrationEvent(False,False)]
local procedure OnBeforeTestIfAlreadyExists(IncomingDocument: Record "Incoming Document"; var IsHandled: Boolean)

Parameters

Name Type Description
IncomingDocument Table Microsoft.EServices.EDocument."Incoming Document"
IsHandled Boolean

OnUpdateDocumentFieldsOnAfterUpdateDocuments

[IntegrationEvent(False,False)]
local procedure OnUpdateDocumentFieldsOnAfterUpdateDocuments(var IncomingDocument: Record "Incoming Document"; var DocExists: Boolean)

Parameters

Name Type Description
IncomingDocument Table Microsoft.EServices.EDocument."Incoming Document"
DocExists Boolean

OnFindByDocumentNoAndPostingDateOnSetFilters

[IntegrationEvent(False,False)]
local procedure OnFindByDocumentNoAndPostingDateOnSetFilters(var IncomingDocument: Record "Incoming Document"; MainRecordRef: RecordRef)

Parameters

Name Type Description
IncomingDocument Table Microsoft.EServices.EDocument."Incoming Document"
MainRecordRef RecordRef

OnAfterRemoveIncomingDocumentEntryNoFromUnpostedDocument

[IntegrationEvent(False,False)]
local procedure OnAfterRemoveIncomingDocumentEntryNoFromUnpostedDocument(var IncomingDocument: Record "Incoming Document"; RelatedRecord: Variant)

Parameters

Name Type Description
IncomingDocument Table Microsoft.EServices.EDocument."Incoming Document"
RelatedRecord Variant

See also