---
id: object/codeunit/6103
type: object
title: Codeunit 6103 "E-Document Subscribers"
summary: Codeunit 6103 "E-Document Subscribers" in EDocument (Microsoft.eServices.EDocument). 3 public procedures, 46 event subscribers. Introduced in BC29, still in BC30, changed in BC30.
tier: official
language: en
tags:
  - codeunit
  - edocument
versions:
  introduced: "29"
  last_changed: "30"
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-10-11T00:31:51.816Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: 5b6fc9a05f06e8f1b534a1dc80d6dcb07809cb1b61128723f51fbfbd103fcb87
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/EDocument/app/src/Processing/EDocumentSubscribers.Codeunit.al
    title: src/Apps/W1/EDocument/app/src/Processing/EDocumentSubscribers.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes:
    - change/bcapps/12306
    - change/bcapps/11560
    - change/bcapps/12070
    - change/bcapps/11483
    - change/bcapps/11096
    - change/bcapps/9578
    - change/bcapps/9208
    - change/bcapps/8698
    - change/bcapps/8183
object_type: codeunit
object_id: 6103
name: E-Document Subscribers
namespace: Microsoft.eServices.EDocument
app: EDocument
extends: null
first_version: "29"
last_version: "30"
present_in:
  - "29"
  - "30"
changed_in:
  - "30"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 59
  events: 0
  subscribers: 46
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 0
  called_by: 0
  implements: 0
---

# Codeunit 6103 "E-Document Subscribers"

> Codeunit 6103 "E-Document Subscribers" in EDocument (Microsoft.eServices.EDocument). 3 public procedures, 46 event subscribers. Introduced in BC29, still in BC30, changed in BC30.

EDocument · Microsoft.eServices.EDocument · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/EDocument/app/src/Processing/EDocumentSubscribers.Codeunit.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| Access | Internal |
| Permissions | tabledata "E-Document" = m |

## Event subscriptions

- HandleOnRegisterCopilotCapability subscribes to Page "Copilot AI Capabilities" OnRegisterCopilotCapability
- OnAfterValidateDraftPageVendorNo subscribes to Page "E-Document Purchase Draft" OnAfterValidateEvent (Vendor No.)
- OnAfterValidateDraftPageDiscount subscribes to Page "E-Document Purchase Draft" OnAfterValidateEvent (Invoice Discount)
- OnAfterValidateDraftPageVAT subscribes to Page "E-Document Purchase Draft" OnAfterValidateEvent (Total VAT)
- OnAfterValidateDraftPageLineType subscribes to Page "E-Doc. Purchase Draft Subform" OnAfterValidateEvent (Line Type)
- OnAfterValidateDraftPageNo subscribes to Page "E-Doc. Purchase Draft Subform" OnAfterValidateEvent (No.)
- OnAfterValidateDraftPageItemReferenceNo subscribes to Page "E-Doc. Purchase Draft Subform" OnAfterValidateEvent (Item Reference No.)
- OnAfterValidateDraftPageUnitOfMeasure subscribes to Page "E-Doc. Purchase Draft Subform" OnAfterValidateEvent (Unit Of Measure)
- OnAfterValidateDraftPageVariantCode subscribes to Page "E-Doc. Purchase Draft Subform" OnAfterValidateEvent (Variant Code)
- OnAfterValidateDraftPageQuantity subscribes to Page "E-Doc. Purchase Draft Subform" OnAfterValidateEvent (Quantity)
- OnAfterValidateDraftPageDirectUnitCost subscribes to Page "E-Doc. Purchase Draft Subform" OnAfterValidateEvent (Direct Unit Cost)
- OnAfterValidateDraftPageTotalDiscount subscribes to Page "E-Doc. Purchase Draft Subform" OnAfterValidateEvent (Total Discount)
- OnAfterValidateDraftPageDeferralCode subscribes to Page "E-Doc. Purchase Draft Subform" OnAfterValidateEvent (Deferral Code)
- OnAfterValidateDraftPageShortcutDim1 subscribes to Page "E-Doc. Purchase Draft Subform" OnAfterValidateEvent (Shortcut Dimension 1 Code)
- OnAfterValidateDraftPageShortcutDim2 subscribes to Page "E-Doc. Purchase Draft Subform" OnAfterValidateEvent (Shortcut Dimension 2 Code)
- OnBeforeReleaseSalesDoc subscribes to Codeunit "Release Sales Document" OnBeforeReleaseSalesDoc
- OnBeforeReleasePurchaseDoc subscribes to Codeunit "Release Purchase Document" OnBeforeReleasePurchaseDoc
- OnBeforeReleaseServiceDoc subscribes to Codeunit "Release Service Document" OnBeforeReleaseServiceDoc
- OnAfterReleasePurchaseDoc subscribes to Codeunit "Release Purchase Document" OnAfterReleasePurchaseDoc
- OnAfterCheckAndUpdateSales subscribes to Codeunit "Sales-Post" OnAfterCheckAndUpdate
- OnAfterCheckAndUpdatePurch subscribes to Codeunit "Purch.-Post" OnAfterCheckAndUpdate
- OnAfterInitializeService subscribes to Codeunit "Service-Post" OnAfterInitialize
- OnBeforeIssueFinChargeMemo subscribes to Codeunit "FinChrgMemo-Issue" OnBeforeIssueFinChargeMemo
- OnBeforeIssueReminder subscribes to Codeunit "Reminder-Issue" OnBeforeIssueReminder
- OnAfterPostSalesDoc subscribes to Codeunit "Sales-Post" OnAfterPostSalesDoc
- OnAfterPostPurchaseDoc subscribes to Codeunit "Purch.-Post" OnAfterPostPurchaseDoc
- CreateEDocumentFromPostedTransferShipment subscribes to Codeunit "TransferOrder-Post Shipment" OnAfterTransferOrderPostShipment
- OnAfterPostWhseActivityCompleted subscribes to Codeunit "Whse.-Activity-Post" OnAfterPostWhseActivityCompleted
- OnShouldDocumentTotalAmountsBeChecked subscribes to Table "Purchases & Payables Setup" OnAfterShouldDocumentTotalAmountsBeChecked
- OnCanDocumentTotalAmountsBeEditable subscribes to Table "Purchases & Payables Setup" OnCanDocumentTotalAmountsBeEditable
- OnAfterPostServiceDoc subscribes to Codeunit "Service-Post" OnAfterPostServiceDoc
- OnAfterIssueFinChargeMemo subscribes to Codeunit "FinChrgMemo-Issue" OnAfterIssueFinChargeMemo
- OnAfterIssueReminder subscribes to Codeunit "Reminder-Issue" OnAfterIssueReminder
- OnCheckElectronicSendingEnabled subscribes to Table "Document Sending Profile" OnCheckElectronicSendingEnabled
- OnAfterPostGLAcc subscribes to Codeunit "Gen. Jnl.-Post Line" OnAfterPostGLAcc
- OnAfterVendLedgEntryInsert subscribes to Codeunit "Gen. Jnl.-Post Line" OnAfterVendLedgEntryInsert
- OnAfterDeleteEventGenJournalLine subscribes to Table "Gen. Journal Line" OnAfterDeleteEvent
- OnBeforeOnDeletePurchaseHeader subscribes to Table "Purchase Header" OnBeforeOnDelete
- OnDeleteOnBeforeArchiveSalesDocumentSalesHeader subscribes to Table "Sales Header" OnDeleteOnBeforeArchiveSalesDocument
- ClassifyDataSensitivity subscribes to Codeunit "Data Classification Eval. Data" OnCreateEvaluationDataOnAfterClassifyTablesToNormal
- OnBeforeValidateElectronicFormats subscribes to Codeunit "Sales-Post and Send" OnBeforeValidateElectronicFormats
- OnAfterSendEDocument subscribes to Table "Document Sending Profile" OnAfterSend
- OnAfterSendToEMailEDocument subscribes to Table "Document Sending Profile" OnAfterSendToEMail
- OnSendWithReportDistributionManagementDisableIfEDocument subscribes to Table "Document Sending Profile" OnSendWithReportDistributionManagement
- OnAfterSendVendorEDocument subscribes to Table "Document Sending Profile" OnAfterSendVendor
- OnAfterReleaseSalesDoc subscribes to Codeunit "Release Sales Document" OnAfterReleaseSalesDoc

## Procedures

- `CreateEDocumentFromPostedDocument(PostedRecord: Variant; DocumentSendingProfile: Record "Document Sending Profile"): Boolean`: Creates a new E-Document for the provided posted document if possible.
- `CreateEDocumentFromPostedDocument(PostedRecord: Variant; DocumentSendingProfile: Record "Document Sending Profile"; DocumentType: Enum "E-Document Type"): Boolean`: Creates a new E-Document of specified type for the provided posted document if possible.
- `CreateEDocumentFromPostedDocument(PostedRecord: Variant; DocumentSendingProfile: Record "Document Sending Profile"; DocumentType: Enum "E-Document Type"; AllowReExport: Boolean): Boolean`: Creates a new E-Document of specified type for the provided posted document if possible.

Plus 10 local procedures.

## Recent changes

- 2026-10-07 [#12306 Warn before releasing a purchase order that was already sent electronically](../../changes/bcapps/12306.md) (main, BC30, feature)
- 2026-10-07 [#11560 [E-Documents Core] [Peppol] - Enabling EDI capabilities with E-Documents. Send path (Self-Billed Purchase Invoice/Credit Memo → E-Document)](../../changes/bcapps/11560.md) (main, BC30, feature)
- 2026-09-30 [#12070 Fix inconsistent CLEAN27/CLEAN28 tags in E-Document apps](../../changes/bcapps/12070.md) (main, BC30, fix)
- 2026-09-24 [#11483 [E-Documents Core] - Linkage & Traceability](../../changes/bcapps/11483.md) (main, BC30, feature)
- 2026-09-10 [#11096 PEPPOL FR improvements](../../changes/bcapps/11096.md) (main, BC30, feature)
- 2026-08-11 [#9578 [E-Documents Core] - Enabling remittance advice export via E-Documents (payment journal + posted payments)](../../changes/bcapps/9578.md) (main, BC30, feature)
- 2026-08-11 [#9208 [Enforced Digital Vouchers] - Attaching EDocuments when using Digital Vouchers](../../changes/bcapps/9208.md) (main, BC30, feature)
- 2026-07-27 [#8698 [E-Documents Core] [Peppol] - Enabling EDI capabilities with E-Documents. PEPPOL Order Response Message Handling](../../changes/bcapps/8698.md) (main, BC30, feature)
- 2026-07-14 [#8183 Handle failure to manually create E-Document from posted doc with no …](../../changes/bcapps/8183.md) (main, BC30, fix)

## Across versions

- Present in: BC29-30
- Changed (declaration) in: BC30

Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).

## Ask your agent

Procedure bodies are not stored here (D10). For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: `bcatlas_resolve_node(object_type: "codeunit", object_name: "E-Document Subscribers")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
