{"title":"Codeunit 6108 E-Document Processing, procedures","url":"https://jonas-paprotka.de/ref/codeunit/6108-e-document-processing/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-17","object":{"type":"codeunit","id":6108,"name":"E-Document Processing","app":"E-Document Core","versions":"23-29","url":"https://jonas-paprotka.de/ref/codeunit/6108-e-document-processing/","json":"https://jonas-paprotka.de/ref/codeunit/6108-e-document-processing.json"},"aspect":"procedures","total":28,"rows":[{"name":"GetDocSendingProfileForDocRef","sig":"(var RecordRef)","named":"(var RecRef: RecordRef)","returns":"Record Document Sending Profile","kind":"procedure","access":"public","obsolete":null,"range":"23-29","first":23,"last":29,"obsoleteSince":null,"spans":[{"from":23,"to":29,"named":"(var RecRef: RecordRef)","returns":"Record Document Sending Profile","kind":"procedure","access":"public","obsolete":null}]},{"name":"GetLines","sig":"(Record E-Document, var RecordRef)","named":"(EDocument: Record \"E-Document\"; var SourceDocumentLines: RecordRef)","returns":"","kind":"procedure","access":"public","obsolete":null,"range":"23-29","first":23,"last":29,"obsoleteSince":null,"spans":[{"from":23,"to":29,"named":"(EDocument: Record \"E-Document\"; var SourceDocumentLines: RecordRef)","returns":"","kind":"procedure","access":"public","obsolete":null}]},{"name":"GetEDocumentCount","sig":"(Enum E-Document Status, Enum E-Document Direction)","named":"(Status: Enum \"E-Document Status\"; Direction: Enum \"E-Document Direction\")","returns":"Integer","kind":"procedure","access":"public","obsolete":null,"range":"23-29","first":23,"last":29,"obsoleteSince":null,"spans":[{"from":23,"to":29,"named":"(Status: Enum \"E-Document Status\"; Direction: Enum \"E-Document Direction\")","returns":"Integer","kind":"procedure","access":"public","obsolete":null}]},{"name":"OpenEDocuments","sig":"(Enum E-Document Status, Enum E-Document Direction)","named":"(Status: Enum \"E-Document Status\"; Direction: Enum \"E-Document Direction\")","returns":"Integer","kind":"procedure","access":"public","obsolete":null,"range":"23-29","first":23,"last":29,"obsoleteSince":null,"spans":[{"from":23,"to":29,"named":"(Status: Enum \"E-Document Status\"; Direction: Enum \"E-Document Direction\")","returns":"Integer","kind":"procedure","access":"public","obsolete":null}]},{"name":"GetRecordLinkText","sig":"(var Record E-Document)","named":"(var EDocument: Record \"E-Document\")","returns":"Text","kind":"procedure","access":"public","obsolete":null,"range":"23-29","first":23,"last":29,"obsoleteSince":null,"spans":[{"from":23,"to":29,"named":"(var EDocument: Record \"E-Document\")","returns":"Text","kind":"procedure","access":"public","obsolete":null}]},{"name":"GetRecord","sig":"(var Record E-Document, var Variant)","named":"(var EDocument: Record \"E-Document\"; var RelatedRecord: Variant)","returns":"Boolean","kind":"procedure","access":"public","obsolete":null,"range":"23-29","first":23,"last":29,"obsoleteSince":null,"spans":[{"from":23,"to":29,"named":"(var EDocument: Record \"E-Document\"; var RelatedRecord: Variant)","returns":"Boolean","kind":"procedure","access":"public","obsolete":null}]},{"name":"GetTelemetryDimensions","sig":"(Record E-Document Service, var Record E-Document, var Dictionary)","named":"(EDocService: Record \"E-Document Service\"; var EDocument: Record \"E-Document\"; var Dimensions: Dictionary of [Text, Text])","returns":"","kind":"procedure","access":"public","obsolete":null,"range":"23-29","first":23,"last":29,"obsoleteSince":null,"spans":[{"from":23,"to":29,"named":"(EDocService: Record \"E-Document Service\"; var EDocument: Record \"E-Document\"; var Dimensions: Dictionary of [Text, Text])","returns":"","kind":"procedure","access":"public","obsolete":null}]},{"name":"GetTelemetryDimensions","sig":"(Record E-Document Service, var Record E-Document Service Status, var Dictionary)","named":"(EDocService: Record \"E-Document Service\"; var EDocumentServiceStatus: Record \"E-Document Service Status\"; var Dimensions: Dictionary of [Text, Text])","returns":"","kind":"procedure","access":"public","obsolete":null,"range":"23-29","first":23,"last":29,"obsoleteSince":null,"spans":[{"from":23,"to":29,"named":"(EDocService: Record \"E-Document Service\"; var EDocumentServiceStatus: Record \"E-Document Service Status\"; var Dimensions: Dictionary of [Text, Text])","returns":"","kind":"procedure","access":"public","obsolete":null}]},{"name":"GetEDocTok","sig":"()","named":"()","returns":"Text","kind":"procedure","access":"public","obsolete":null,"range":"23-29","first":23,"last":29,"obsoleteSince":null,"spans":[{"from":23,"to":29,"named":"()","returns":"Text","kind":"procedure","access":"public","obsolete":null}]},{"name":"MatchedPurchaseOrdersCount","sig":"()","named":"()","returns":"Integer","kind":"procedure","access":"public","obsolete":null,"range":"24-29","first":24,"last":29,"obsoleteSince":null,"spans":[{"from":24,"to":29,"named":"()","returns":"Integer","kind":"procedure","access":"public","obsolete":null}]},{"name":"MatchedPurchaseEDocumentsCount","sig":"()","named":"()","returns":"Integer","kind":"procedure","access":"public","obsolete":null,"range":"24","first":24,"last":24,"obsoleteSince":null,"spans":[{"from":24,"to":24,"named":"()","returns":"Integer","kind":"procedure","access":"public","obsolete":null}]},{"name":"OpenWaitingPurchaseEDoc","sig":"()","named":"()","returns":"","kind":"procedure","access":"public","obsolete":null,"range":"24-29","first":24,"last":29,"obsoleteSince":null,"spans":[{"from":24,"to":29,"named":"()","returns":"","kind":"procedure","access":"public","obsolete":null}]},{"name":"OpenMatchedPurchaseOrders","sig":"()","named":"()","returns":"","kind":"procedure","access":"public","obsolete":null,"range":"24-29","first":24,"last":29,"obsoleteSince":null,"spans":[{"from":24,"to":29,"named":"()","returns":"","kind":"procedure","access":"public","obsolete":null}]},{"name":"InsertServiceStatus","sig":"(Record E-Document, Record E-Document Service, Enum E-Document Service Status)","named":"(EDocument: Record \"E-Document\"; EDocumentService: Record \"E-Document Service\"; EDocumentStatus: Enum \"E-Document Service Status\")","returns":"","kind":"procedure","access":"public","obsolete":null,"range":"25-29","first":25,"last":29,"obsoleteSince":null,"spans":[{"from":25,"to":29,"named":"(EDocument: Record \"E-Document\"; EDocumentService: Record \"E-Document Service\"; EDocumentStatus: Enum \"E-Document Service Status\")","returns":"","kind":"procedure","access":"public","obsolete":null}]},{"name":"ModifyServiceStatus","sig":"(Record E-Document, Record E-Document Service, Enum E-Document Service Status)","named":"(EDocument: Record \"E-Document\"; EDocumentService: Record \"E-Document Service\"; EDocumentStatus: Enum \"E-Document Service Status\")","returns":"","kind":"procedure","access":"public","obsolete":null,"range":"25-29","first":25,"last":29,"obsoleteSince":null,"spans":[{"from":25,"to":29,"named":"(EDocument: Record \"E-Document\"; EDocumentService: Record \"E-Document Service\"; EDocumentStatus: Enum \"E-Document Service Status\")","returns":"","kind":"procedure","access":"public","obsolete":null}]},{"name":"ModifyEDocumentStatus","sig":"(var Record E-Document, Enum E-Document Service Status)","named":"(var EDocument: Record \"E-Document\"; EDocumentStatus: Enum \"E-Document Service Status\")","returns":"","kind":"procedure","access":"public","obsolete":null,"range":"25","first":25,"last":25,"obsoleteSince":null,"spans":[{"from":25,"to":25,"named":"(var EDocument: Record \"E-Document\"; EDocumentStatus: Enum \"E-Document Service Status\")","returns":"","kind":"procedure","access":"public","obsolete":null}]},{"name":"WaitingPurchaseEDocCount","sig":"()","named":"()","returns":"Integer","kind":"procedure","access":"public","obsolete":null,"range":"25-29","first":25,"last":29,"obsoleteSince":null,"spans":[{"from":25,"to":29,"named":"()","returns":"Integer","kind":"procedure","access":"public","obsolete":null}]},{"name":"ModifyEDocumentStatus","sig":"(var Record E-Document)","named":"(var 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":"(var EDocument: Record \"E-Document\")","returns":"","kind":"procedure","access":"public","obsolete":null}]},{"name":"ModifyEDocumentProcessingStatus","sig":"(Record E-Document, Enum Import E-Doc. Proc. Status)","named":"(EDocument: Record \"E-Document\"; NewStatus: Enum \"Import E-Doc. Proc. Status\")","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\"; NewStatus: Enum \"Import E-Doc. Proc. Status\")","returns":"","kind":"procedure","access":"public","obsolete":null}]},{"name":"GetDocSendingProfileForCust","sig":"(Code[20], var Record Document Sending Profile)","named":"(CustomerNo: Code[20]; var DocumentSendingProfile: Record \"Document Sending Profile\")","returns":"Boolean","kind":"procedure","access":"internal","obsolete":null,"range":"26-29","first":26,"last":29,"obsoleteSince":null,"spans":[{"from":26,"to":29,"named":"(CustomerNo: Code[20]; var DocumentSendingProfile: Record \"Document Sending Profile\")","returns":"Boolean","kind":"procedure","access":"internal","obsolete":null}]},{"name":"RunEDocumentCheck","sig":"(Variant, Enum E-Document Processing Phase)","named":"(Record: Variant; EDocumentProcPhase: Enum \"E-Document Processing Phase\")","returns":"","kind":"procedure","access":"public","obsolete":null,"range":"27-29","first":27,"last":29,"obsoleteSince":null,"spans":[{"from":27,"to":29,"named":"(Record: Variant; EDocumentProcPhase: Enum \"E-Document Processing Phase\")","returns":"","kind":"procedure","access":"public","obsolete":null}]},{"name":"CreateEDocumentFromPostedDocumentPage","sig":"(Variant, Enum E-Document Type)","named":"(PostedRecord: Variant; DocumentType: Enum \"E-Document Type\")","returns":"Boolean","kind":"procedure","access":"public","obsolete":null,"range":"27-29","first":27,"last":29,"obsoleteSince":null,"spans":[{"from":27,"to":29,"named":"(PostedRecord: Variant; DocumentType: Enum \"E-Document Type\")","returns":"Boolean","kind":"procedure","access":"public","obsolete":null}]},{"name":"ProcessEDocumentAsEmail","sig":"(Record Document Sending Profile, Enum Report Selection Usage, Variant, Code[20], Text[150], Code[20], Boolean)","named":"(DocumentSendingProfile: Record \"Document Sending Profile\"; ReportUsage: Enum \"Report Selection Usage\"; RecordVariant: Variant; DocNo: Code[20]; DocName: Text[150]; ToCust: Code[20]; ShowDialog: Boolean)","returns":"","kind":"procedure","access":"public","obsolete":null,"range":"27-29","first":27,"last":29,"obsoleteSince":null,"spans":[{"from":27,"to":29,"named":"(DocumentSendingProfile: Record \"Document Sending Profile\"; ReportUsage: Enum \"Report Selection Usage\"; RecordVariant: Variant; DocNo: Code[20]; DocName: Text[150]; ToCust: Code[20]; ShowDialog: Boolean)","returns":"","kind":"procedure","access":"public","obsolete":null}]},{"name":"GetTypeFromSourceDocument","sig":"(Variant)","named":"(RecordVariant: Variant)","returns":"Enum E-Document Type","kind":"procedure","access":"public","obsolete":null,"range":"27-29","first":27,"last":29,"obsoleteSince":null,"spans":[{"from":27,"to":29,"named":"(RecordVariant: Variant)","returns":"Enum E-Document Type","kind":"procedure","access":"public","obsolete":null}]},{"name":"GetDocSendingProfileForTransferShipment","sig":"(var Record Document Sending Profile, Code[20])","named":"(var DocumentSendingProfile: Record \"Document Sending Profile\"; LocationCode: Code[20])","returns":"Boolean","kind":"procedure","access":"internal","obsolete":null,"range":"27-29","first":27,"last":29,"obsoleteSince":null,"spans":[{"from":27,"to":29,"named":"(var DocumentSendingProfile: Record \"Document Sending Profile\"; LocationCode: Code[20])","returns":"Boolean","kind":"procedure","access":"internal","obsolete":null}]},{"name":"ErrorIfNotAllowedToLinkToExistingDoc","sig":"(Record E-Document, Record E-Document Purchase Header)","named":"(EDocument: Record \"E-Document\"; EDocumentPurchaseHeader: Record \"E-Document Purchase Header\")","returns":"","kind":"procedure","access":"internal","obsolete":null,"range":"28-29","first":28,"last":29,"obsoleteSince":null,"spans":[{"from":28,"to":29,"named":"(EDocument: Record \"E-Document\"; EDocumentPurchaseHeader: Record \"E-Document Purchase Header\")","returns":"","kind":"procedure","access":"internal","obsolete":null}]},{"name":"OpenPurchaseDocumentList","sig":"(Enum E-Document Type, var Record Purchase Header)","named":"(EDocumentType: Enum \"E-Document Type\"; var PurchaseHeader: Record \"Purchase Header\")","returns":"Boolean","kind":"procedure","access":"public","obsolete":null,"range":"28-29","first":28,"last":29,"obsoleteSince":null,"spans":[{"from":28,"to":29,"named":"(EDocumentType: Enum \"E-Document Type\"; var PurchaseHeader: Record \"Purchase Header\")","returns":"Boolean","kind":"procedure","access":"public","obsolete":null}]},{"name":"SendOrderRejection","sig":"(Record E-Document)","named":"(EDocument: Record \"E-Document\")","returns":"","kind":"procedure","access":"public","obsolete":null,"range":"28-29","first":28,"last":29,"obsoleteSince":null,"spans":[{"from":28,"to":29,"named":"(EDocument: Record \"E-Document\")","returns":"","kind":"procedure","access":"public","obsolete":null}]}]}