---
title: "Codeunit 6108 E-Document Processing"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/6108-e-document-processing/
type: codeunit
id: 6108
name: "E-Document Processing"
app: "E-Document Core"
namespace: Microsoft.eServices.EDocument
versions: "23-29"
build: 29.0.54011.55644
countries: "W1, DE, US"
source: "https://jonas-paprotka.de/ref/codeunit/6108-e-document-processing/source/?v=28 https://jonas-paprotka.de/ref/codeunit/6108-e-document-processing/source/"
checked: 2026-11-20
changed: 2026-10-17
subject: "Microsoft Dynamics 365 Business Central"
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/"
---

# Codeunit 6108 E-Document Processing

JOP-AL, https://jonas-paprotka.de/ref/codeunit/6108-e-document-processing/

| | |
| --- | --- |
| App | E-Document Core |
| Namespace | Microsoft.eServices.EDocument |
| Versions | 23-29 |
| Minors | W1 23.0-29.0; DE 23.0-29.0; US 23.0-29.0, [every minor](https://jonas-paprotka.de/ref/codeunit/6108-e-document-processing/editions.json) |
| Source file | src/Processing/EDocumentProcessing.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| GetDocSendingProfileForDocRef | (var RecRef: RecordRef) | Record Document Sending Profile | public | 23-29 | - | - |
| GetLines | (EDocument: Record "E-Document"; var SourceDocumentLines: RecordRef) | - | public | 23-29 | - | - |
| GetEDocumentCount | (Status: Enum "E-Document Status"; Direction: Enum "E-Document Direction") | Integer | public | 23-29 | - | - |
| OpenEDocuments | (Status: Enum "E-Document Status"; Direction: Enum "E-Document Direction") | Integer | public | 23-29 | - | - |
| GetRecordLinkText | (var EDocument: Record "E-Document") | Text | public | 23-29 | - | - |
| GetRecord | (var EDocument: Record "E-Document"; var RelatedRecord: Variant) | Boolean | public | 23-29 | - | - |
| GetTelemetryDimensions | (EDocService: Record "E-Document Service"; var EDocument: Record "E-Document"; var Dimensions: Dictionary of [Text, Text]) | - | public | 23-29 | - | - |
| GetTelemetryDimensions | (EDocService: Record "E-Document Service"; var EDocumentServiceStatus: Record "E-Document Service Status"; var Dimensions: Dictionary of [Text, Text]) | - | public | 23-29 | - | - |
| GetEDocTok | () | Text | public | 23-29 | - | - |
| MatchedPurchaseOrdersCount | () | Integer | public | 24-29 | - | - |
| MatchedPurchaseEDocumentsCount | () | Integer | public | 24 | - | - |
| OpenWaitingPurchaseEDoc | () | - | public | 24-29 | - | - |
| OpenMatchedPurchaseOrders | () | - | public | 24-29 | - | - |
| InsertServiceStatus | (EDocument: Record "E-Document"; EDocumentService: Record "E-Document Service"; EDocumentStatus: Enum "E-Document Service Status") | - | public | 25-29 | - | - |
| ModifyServiceStatus | (EDocument: Record "E-Document"; EDocumentService: Record "E-Document Service"; EDocumentStatus: Enum "E-Document Service Status") | - | public | 25-29 | - | - |
| ModifyEDocumentStatus | (var EDocument: Record "E-Document"; EDocumentStatus: Enum "E-Document Service Status") | - | public | 25 | - | - |
| WaitingPurchaseEDocCount | () | Integer | public | 25-29 | - | - |
| ModifyEDocumentStatus | (var EDocument: Record "E-Document") | - | public | 26-29 | - | - |
| ModifyEDocumentProcessingStatus | (EDocument: Record "E-Document"; NewStatus: Enum "Import E-Doc. Proc. Status") | - | public | 26-29 | - | - |
| GetDocSendingProfileForCust | (CustomerNo: Code[20]; var DocumentSendingProfile: Record "Document Sending Profile") | Boolean | internal | 26-29 | - | - |
| RunEDocumentCheck | (Record: Variant; EDocumentProcPhase: Enum "E-Document Processing Phase") | - | public | 27-29 | - | - |
| CreateEDocumentFromPostedDocumentPage | (PostedRecord: Variant; DocumentType: Enum "E-Document Type") | Boolean | public | 27-29 | - | - |
| ProcessEDocumentAsEmail | (DocumentSendingProfile: Record "Document Sending Profile"; ReportUsage: Enum "Report Selection Usage"; RecordVariant: Variant; DocNo: Code[20]; DocName: Text[150]; ToCust: Code[20]; ShowDialog: Boolean) | - | public | 27-29 | - | - |
| GetTypeFromSourceDocument | (RecordVariant: Variant) | Enum E-Document Type | public | 27-29 | - | - |
| GetDocSendingProfileForTransferShipment | (var DocumentSendingProfile: Record "Document Sending Profile"; LocationCode: Code[20]) | Boolean | internal | 27-29 | - | - |
| ErrorIfNotAllowedToLinkToExistingDoc | (EDocument: Record "E-Document"; EDocumentPurchaseHeader: Record "E-Document Purchase Header") | - | internal | 28-29 | - | - |
| OpenPurchaseDocumentList | (EDocumentType: Enum "E-Document Type"; var PurchaseHeader: Record "Purchase Header") | Boolean | public | 28-29 | - | - |
| SendOrderRejection | (EDocument: Record "E-Document") | - | public | 28-29 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnAfterGetTypeFromSourceDocument | (RecordVariant: Variant; var EDocumentType: Enum "E-Document Type") | 27-29 | - | - |
| Internal event | OnAfterModifyEDocumentStatus | (var EDocument: Record "E-Document"; var EDocumentServiceStatus: Record "E-Document Service Status") | 27-29 | - | - |
| Internal event | OnAfterModifyServiceStatus | (var EDocument: Record "E-Document"; var EDocumentService: Record "E-Document Service"; var EDocumentServiceStatus: Record "E-Document Service Status") | 27-29 | - | - |

## Source

Symbols: Microsoft.E-DocumentCore.symbols.e1d97edc-c239-46b4-8d84-6368bdf67c8b, https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json, highest build per major on 2026-11-20.
AL source 28: https://github.com/microsoft/BCApps, MIT, releases/28.x at 408a4cc8d3a4c54b60464cc14c964479facb9ba0.
AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at 4303e5e584d3aa5d9e98cbc615525a5396ad6ed7.

JOP-AL, 2026-11-20.
