---
id: object/codeunit/6123
type: object
title: Codeunit 6123 "E-Document Notification"
summary: Codeunit 6123 "E-Document Notification" in EDocument (Microsoft.eServices.EDocument). 16 public procedures. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - codeunit
  - edocument
versions:
  introduced: "29"
  last_changed: null
  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: 3442e58c785f9be5d403131f644b7e64e5424376f4b0ede39c17ea2c03ab9d6f
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/EDocument/app/src/Document/Notification/EDocumentNotification.Codeunit.al
    title: src/Apps/W1/EDocument/app/src/Document/Notification/EDocumentNotification.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/9711
object_type: codeunit
object_id: 6123
name: E-Document Notification
namespace: Microsoft.eServices.EDocument
app: EDocument
extends: null
first_version: "29"
last_version: "30"
present_in:
  - "29"
  - "30"
changed_in: []
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 19
  events: 0
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 0
  called_by: 0
  implements: 0
---

# Codeunit 6123 "E-Document Notification"

> Codeunit 6123 "E-Document Notification" in EDocument (Microsoft.eServices.EDocument). 16 public procedures. Introduced in BC29, still in BC30.

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

## Properties

| Property | Value |
|---|---|
| Access | Internal |

## Procedures

- `AddVendorMatchedByNameNotAddressNotification(EDocumentEntryNo: Integer)`: Persists a notification that informs a user of Purchase Document Draft that a vendor is matched by name but not by address. Does not display anything.
- `AddSubTotalMismatchNotification(EDocumentEntryNo: Integer)`: Persists a notification that informs a user of Purchase Document Draft that the header Sub Total no longer matches the sum of the lines. Does not display anything.
- `RemoveSubTotalMismatchNotification(EDocumentEntryNo: Integer)`: Removes the persisted Sub Total Mismatch notification for the current user and e-document, e.g. when the totals re-converge.
- `RefreshSubTotalMismatch(EDocumentPurchaseHeader: Record "E-Document Purchase Header")`: Re-evaluates the Sub Total mismatch and updates the persisted notification. Does not display anything.
- `RefreshAndShowPendingDraftNotifications(EDocumentEntryNo: Integer)`: Refreshes the Sub Total mismatch state and then shows every pending Purchase Document Draft notification once.
- `SendPurchaseDocumentDraftNotifications(EDocumentEntryNo: Integer)`: Shows every pending Purchase Document Draft notification for the current user.
- `RefreshAndShowSubTotalMismatchAfterHeaderEdit(EDocumentPurchaseHeader: Record "E-Document Purchase Header")`: Re-evaluates the Sub Total mismatch after a header amount edit, re-arming a dismissal, and shows the notification if it applies.
- `RefreshAndShowSubTotalMismatchAfterLineEdit(EDocumentPurchaseLine: Record "E-Document Purchase Line")`: Re-evaluates the Sub Total mismatch after a line amount edit, re-arming a dismissal, and shows the notification if it applies.
- `RefreshAndShowSubTotalMismatchAfterLineDeletion(EDocumentPurchaseLine: Record "E-Document Purchase Line")`: Re-evaluates the Sub Total mismatch while a line is being deleted, re-arming a dismissal, and shows the notification if it applies.
- `ShowSubTotalMismatchNotification(EDocumentEntryNo: Integer)`: Shows the Sub Total Mismatch notification for the e-document, if it is persisted and not dismissed.
- `IsSubTotalMismatchNotificationEnabled(): Boolean`: Returns whether the current user has the Sub Total Mismatch notification enabled.
- `IsSubTotalMismatchDismissed(EDocumentEntryNo: Integer): Boolean`: Returns whether the current user has dismissed the Sub Total Mismatch notification for the e-document.
- `DismissVendorMatchedByNameNotAddressNotification(Notification: Notification)`: Dismisses the notification of the certain Purchase Document Draft that informs a user about a vendor that is matched by name but not by address. The persisted notification row is kept and marked as dismissed so it is not re-shown to this user.
- `DisableVendorMatchedByNameNotAddressNotification(Notification: Notification)`: Disables the notification that informs a user of Purchase Document Draft that a vendor is matched by name but not by address.
- `DismissSubTotalMismatchNotification(Notification: Notification)`: Dismisses the Sub Total Mismatch notification for the current Purchase Document Draft. The persisted notification row is kept and marked as dismissed so the mismatch is not re-shown to this user until an amount edit re-arms it.
- `DisableSubTotalMismatchNotification(Notification: Notification)`: Disables the Sub Total Mismatch notification for the current user.

Plus 3 local procedures.

## Recent changes

- 2026-08-14 [#9711 Fix E-Document purchase draft header Sub Total overwrite; notify on mismatch](../../changes/bcapps/9711.md) (main, BC30, fix)

## Across versions

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

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 Notification")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
