{"title":"Codeunit 6140 E-Doc. Import, procedures","url":"https://jonas-paprotka.de/ref/codeunit/6140-e-doc-import/procedures/","author":"JOP-AL","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/","subject":"Microsoft Dynamics 365 Business Central","checked":"2026-11-20","changed":"2026-10-16","object":{"type":"codeunit","id":6140,"name":"E-Doc. Import","app":"E-Document Core","versions":"23-29","url":"https://jonas-paprotka.de/ref/codeunit/6140-e-doc-import/","json":"https://jonas-paprotka.de/ref/codeunit/6140-e-doc-import.json"},"aspect":"procedures","total":20,"rows":[{"name":"UploadDocument","sig":"(var Record E-Document)","named":"(var EDocument: Record \"E-Document\")","returns":"","kind":"procedure","access":"internal","obsolete":null,"range":"23-29","first":23,"last":29,"obsoleteSince":null,"spans":[{"from":23,"to":29,"named":"(var EDocument: Record \"E-Document\")","returns":"","kind":"procedure","access":"internal","obsolete":null}]},{"name":"GetBasicInfo","sig":"(var Record E-Document)","named":"(var EDocument: Record \"E-Document\")","returns":"","kind":"procedure","access":"internal","obsolete":null,"range":"23-25","first":23,"last":25,"obsoleteSince":null,"spans":[{"from":23,"to":25,"named":"(var EDocument: Record \"E-Document\")","returns":"","kind":"procedure","access":"internal","obsolete":null}]},{"name":"ProcessDocument","sig":"(var Record E-Document, Boolean, Boolean)","named":"(var EDocument: Record \"E-Document\"; UpdateOrder: Boolean; CreateJnlLine: Boolean)","returns":"","kind":"procedure","access":"internal","obsolete":null,"range":"23","first":23,"last":23,"obsoleteSince":null,"spans":[{"from":23,"to":23,"named":"(var EDocument: Record \"E-Document\"; UpdateOrder: Boolean; CreateJnlLine: Boolean)","returns":"","kind":"procedure","access":"internal","obsolete":null}]},{"name":"ReceiveDocument","sig":"(Record E-Document Service)","named":"(EDocService: Record \"E-Document Service\")","returns":"","kind":"procedure","access":"internal","obsolete":null,"range":"23-25","first":23,"last":25,"obsoleteSince":null,"spans":[{"from":23,"to":25,"named":"(EDocService: Record \"E-Document Service\")","returns":"","kind":"procedure","access":"internal","obsolete":null}]},{"name":"ProcessDocument","sig":"(var Record E-Document, Boolean)","named":"(var EDocument: Record \"E-Document\"; CreateJnlLine: Boolean)","returns":"","kind":"procedure","access":"internal","obsolete":null,"range":"24-25","first":24,"last":25,"obsoleteSince":null,"spans":[{"from":24,"to":25,"named":"(var EDocument: Record \"E-Document\"; CreateJnlLine: Boolean)","returns":"","kind":"procedure","access":"internal","obsolete":null}]},{"name":"UpdatePurchaseOrderLink","sig":"(var Record E-Document)","named":"(var EDocument: Record \"E-Document\")","returns":"","kind":"procedure","access":"internal","obsolete":null,"range":"24-29","first":24,"last":29,"obsoleteSince":null,"spans":[{"from":24,"to":29,"named":"(var EDocument: Record \"E-Document\")","returns":"","kind":"procedure","access":"internal","obsolete":null}]},{"name":"ProcessEDocPendingOrderMatch","sig":"(var Record E-Document)","named":"(var EDocument: Record \"E-Document\")","returns":"","kind":"procedure","access":"internal","obsolete":null,"range":"24-25","first":24,"last":25,"obsoleteSince":null,"spans":[{"from":24,"to":25,"named":"(var EDocument: Record \"E-Document\")","returns":"","kind":"procedure","access":"internal","obsolete":null}]},{"name":"SetHideDialogs","sig":"(Boolean)","named":"(Hide: Boolean)","returns":"","kind":"procedure","access":"internal","obsolete":null,"range":"24-29","first":24,"last":29,"obsoleteSince":null,"spans":[{"from":24,"to":29,"named":"(Hide: Boolean)","returns":"","kind":"procedure","access":"internal","obsolete":null}]},{"name":"ReceiveAndProcessAutomatically","sig":"(Record E-Document Service)","named":"(EDocumentService: Record \"E-Document Service\")","returns":"Boolean","kind":"procedure","access":"public","obsolete":null,"range":"26-29","first":26,"last":29,"obsoleteSince":null,"spans":[{"from":26,"to":29,"named":"(EDocumentService: Record \"E-Document Service\")","returns":"Boolean","kind":"procedure","access":"public","obsolete":null}]},{"name":"ProcessAutomaticallyIncomingEDocument","sig":"(Record E-Document)","named":"(EDocument: Record \"E-Document\")","returns":"Boolean","kind":"procedure","access":"public","obsolete":null,"range":"26-29","first":26,"last":29,"obsoleteSince":null,"spans":[{"from":26,"to":29,"named":"(EDocument: Record \"E-Document\")","returns":"Boolean","kind":"procedure","access":"public","obsolete":null}]},{"name":"ProcessIncomingEDocument","sig":"(Record E-Document, Record E-Doc. Import Parameters)","named":"(EDocument: Record \"E-Document\"; EDocImportParameters: Record \"E-Doc. Import Parameters\")","returns":"Boolean","kind":"procedure","access":"public","obsolete":null,"range":"26-29","first":26,"last":29,"obsoleteSince":null,"spans":[{"from":26,"to":29,"named":"(EDocument: Record \"E-Document\"; EDocImportParameters: Record \"E-Doc. Import Parameters\")","returns":"Boolean","kind":"procedure","access":"public","obsolete":null}]},{"name":"ProcessIncomingEDocument","sig":"(Record E-Document, Record E-Document Service, Record E-Doc. Import Parameters)","named":"(EDocument: Record \"E-Document\"; EDocumentService: Record \"E-Document Service\"; EDocImportParameters: Record \"E-Doc. Import Parameters\")","returns":"Boolean","kind":"procedure","access":"internal","obsolete":null,"range":"26-29","first":26,"last":29,"obsoleteSince":null,"spans":[{"from":26,"to":29,"named":"(EDocument: Record \"E-Document\"; EDocumentService: Record \"E-Document Service\"; EDocImportParameters: Record \"E-Doc. Import Parameters\")","returns":"Boolean","kind":"procedure","access":"internal","obsolete":null}]},{"name":"CreateFromType","sig":"(var Record E-Document, Record E-Document Service, Enum E-Doc. File Format, Text, InStream)","named":"(var EDocument: Record \"E-Document\"; EDocumentService: Record \"E-Document Service\"; EDocFileFormat: Enum \"E-Doc. File Format\"; Filename: Text; InStr: InStream)","returns":"","kind":"procedure","access":"internal","obsolete":null,"range":"26-29","first":26,"last":29,"obsoleteSince":null,"spans":[{"from":26,"to":29,"named":"(var EDocument: Record \"E-Document\"; EDocumentService: Record \"E-Document Service\"; EDocFileFormat: Enum \"E-Doc. File Format\"; Filename: Text; InStr: InStream)","returns":"","kind":"procedure","access":"internal","obsolete":null}]},{"name":"V1_GetBasicInfo","sig":"(var Record E-Document)","named":"(var EDocument: Record \"E-Document\")","returns":"","kind":"procedure","access":"internal","obsolete":null,"range":"26-29","first":26,"last":29,"obsoleteSince":null,"spans":[{"from":26,"to":29,"named":"(var EDocument: Record \"E-Document\")","returns":"","kind":"procedure","access":"internal","obsolete":null}]},{"name":"V1_ProcessEDocument","sig":"(var Record E-Document, Boolean, Boolean)","named":"(var EDocument: Record \"E-Document\"; CreateJnlLine: Boolean; AutoProcessDocument: Boolean)","returns":"","kind":"procedure","access":"internal","obsolete":null,"range":"26-29","first":26,"last":29,"obsoleteSince":null,"spans":[{"from":26,"to":29,"named":"(var EDocument: Record \"E-Document\"; CreateJnlLine: Boolean; AutoProcessDocument: Boolean)","returns":"","kind":"procedure","access":"internal","obsolete":null}]},{"name":"ViewExtractedData","sig":"(Record E-Document)","named":"(EDocument: Record \"E-Document\")","returns":"","kind":"procedure","access":"public","obsolete":null,"range":"26-29","first":26,"last":29,"obsoleteSince":null,"spans":[{"from":26,"to":29,"named":"(EDocument: Record \"E-Document\")","returns":"","kind":"procedure","access":"public","obsolete":null}]},{"name":"V1_ProcessImportedDocument","sig":"(var Record E-Document, var Record E-Document Service, var Codeunit Temp Blob, Boolean, Boolean)","named":"(var EDocument: Record \"E-Document\"; var EDocService: Record \"E-Document Service\"; var TempBlob: Codeunit \"Temp Blob\"; CreateJnlLine: Boolean; AutoProcessDocument: Boolean)","returns":"","kind":"procedure","access":"internal","obsolete":null,"range":"26-29","first":26,"last":29,"obsoleteSince":null,"spans":[{"from":26,"to":29,"named":"(var EDocument: Record \"E-Document\"; var EDocService: Record \"E-Document Service\"; var TempBlob: Codeunit \"Temp Blob\"; CreateJnlLine: Boolean; AutoProcessDocument: Boolean)","returns":"","kind":"procedure","access":"internal","obsolete":null}]},{"name":"V1_ProcessEDocPendingOrderMatch","sig":"(var Record E-Document)","named":"(var EDocument: Record \"E-Document\")","returns":"","kind":"procedure","access":"internal","obsolete":null,"range":"26-29","first":26,"last":29,"obsoleteSince":null,"spans":[{"from":26,"to":29,"named":"(var EDocument: Record \"E-Document\")","returns":"","kind":"procedure","access":"internal","obsolete":null}]},{"name":"V1_AfterInsertImportedEdocument","sig":"(var Record E-Document, var Record E-Document Service, var Codeunit Temp Blob, Integer, var HttpRequestMessage, var HttpResponseMessage)","named":"(var EDocument: Record \"E-Document\"; var EDocumentService: Record \"E-Document Service\"; var TempBlob: Codeunit \"Temp Blob\"; EDocCount: Integer; var HttpRequest: HttpRequestMessage; var HttpResponse: HttpResponseMessage)","returns":"","kind":"procedure","access":"internal","obsolete":null,"range":"26-29","first":26,"last":29,"obsoleteSince":null,"spans":[{"from":26,"to":29,"named":"(var EDocument: Record \"E-Document\"; var EDocumentService: Record \"E-Document Service\"; var TempBlob: Codeunit \"Temp Blob\"; EDocCount: Integer; var HttpRequest: HttpRequestMessage; var HttpResponse: HttpResponseMessage)","returns":"","kind":"procedure","access":"internal","obsolete":null}]},{"name":"V1_BeforeInsertImportedEdocument","sig":"(var Record E-Document, var Record E-Document Service, var Codeunit Temp Blob, Integer, var HttpRequestMessage, var HttpResponseMessage, var Boolean, var Boolean)","named":"(var EDocument: Record \"E-Document\"; var EDocumentService: Record \"E-Document Service\"; var TempBlob: Codeunit \"Temp Blob\"; EDocCount: Integer; var HttpRequest: HttpRequestMessage; var HttpResponse: HttpResponseMessage; var IsCreated: Boolean; var IsProcessed: Boolean)","returns":"","kind":"procedure","access":"internal","obsolete":null,"range":"26-29","first":26,"last":29,"obsoleteSince":null,"spans":[{"from":26,"to":29,"named":"(var EDocument: Record \"E-Document\"; var EDocumentService: Record \"E-Document Service\"; var TempBlob: Codeunit \"Temp Blob\"; EDocCount: Integer; var HttpRequest: HttpRequestMessage; var HttpResponse: HttpResponseMessage; var IsCreated: Boolean; var IsProcessed: Boolean)","returns":"","kind":"procedure","access":"internal","obsolete":null}]}]}