---
id: object/codeunit/6436
type: object
title: Codeunit 6436 "E-Doc. Draft Notif. State"
summary: Codeunit 6436 "E-Doc. Draft Notif. State" 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: 161b1ce555b657a000ad1575bf42472237b3fbf87046e0f1120a29f2d4b18c1b
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/EDocument/app/src/Document/Notification/EDocDraftNotifState.Codeunit.al
    title: src/Apps/W1/EDocument/app/src/Document/Notification/EDocDraftNotifState.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: 6436
name: E-Doc. Draft Notif. State
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: 26
  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 6436 "E-Doc. Draft Notif. State"

> Codeunit 6436 "E-Doc. Draft Notif. State" 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/EDocDraftNotifState.Codeunit.al) · facts from BC29

## Properties

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

## Procedures

- `RefreshSubTotalMismatch(EDocumentPurchaseHeader: Record "E-Document Purchase Header"): Boolean`: Re-evaluates the Sub Total mismatch from the persisted lines and updates the persisted notification. A previously dismissed notification stays dismissed.
- `RefreshSubTotalMismatchAfterHeaderEdit(EDocumentPurchaseHeader: Record "E-Document Purchase Header"): Boolean`: Re-evaluates the Sub Total mismatch after the user changed an amount on the header, re-arming a previously dismissed notification.
- `RefreshSubTotalMismatchAfterLineEdit(EDocumentPurchaseLine: Record "E-Document Purchase Line"): Boolean`: Re-evaluates the Sub Total mismatch after the user changed an amount on a draft line, re-arming a previously dismissed notification. The supplied line is used instead of its persisted version, because page field validation runs before the record is written.
- `RefreshSubTotalMismatchAfterLineDeletion(EDocumentPurchaseLine: Record "E-Document Purchase Line"): Boolean`: Re-evaluates the Sub Total mismatch while a draft line is being deleted, re-arming a previously dismissed notification. The line is still persisted when this runs, so it is excluded explicitly.
- `AddVendorMatchedByNameNotAddress(EDocumentEntryNo: Integer)`: Persists the Vendor Matched By Name Not Address notification for the current user. Gating on My Notifications is the caller's responsibility.
- `AddSubTotalMismatch(EDocumentEntryNo: Integer)`: Persists the Sub Total Mismatch notification for the current user. Gating on My Notifications is the caller's responsibility.
- `RemoveSubTotalMismatch(EDocumentEntryNo: Integer)`: Removes the persisted Sub Total Mismatch notification for the current user, e.g. when the totals re-converge.
- `ReArmSubTotalMismatch(EDocumentEntryNo: Integer)`: Removes a previously dismissed Sub Total Mismatch row so the mismatch can be shown again after an amount edit.
- `MarkDismissed(EDocumentEntryNo: Integer; NotificationId: Guid)`: Marks a persisted notification as dismissed, keeping the row so it is not re-shown to this user.
- `DeleteAllOfType(NotificationType: Enum "E-Document Notification Type")`: Deletes every persisted notification of a type for the current user.
- `GetNotification(EDocumentEntryNo: Integer; NotificationId: Guid; var EDocumentNotification: Record "E-Document Notification"): Boolean`: Reads one persisted notification for the current user.
- `FindPendingDraftNotifications(EDocumentEntryNo: Integer; var EDocumentNotification: Record "E-Document Notification"): Boolean`: Finds the Purchase Document Draft notifications that are pending display for the current user.
- `SubTotalMismatchExists(EDocumentEntryNo: Integer): Boolean`: Returns whether a Sub Total Mismatch row exists for the current user and e-document.
- `IsSubTotalMismatchDismissed(EDocumentEntryNo: Integer): Boolean`: Returns whether the current user has dismissed the Sub Total Mismatch notification for the e-document.
- `VendorMatchedByNameNotAddressNotificationId(): Guid`
- `SubTotalMismatchNotificationId(): Guid`

Plus 10 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, added)

## 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-Doc. Draft Notif. State")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
