---
id: object/codeunit/1509
type: object
title: Codeunit 1509 "Notification Entry Dispatcher"
summary: Codeunit 1509 "Notification Entry Dispatcher" in Base Application (System.Environment.Configuration). 2 public procedures, 14 events. Present since at least BC23, still in BC30, changed in BC27.
tier: official
language: en
tags:
  - codeunit
  - base application
versions:
  introduced: null
  last_changed: "27"
  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: 0e5b0b53c5bd779e02b934086f5b4b8ca696f3ed21648a17b1a20e4982965af6
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/System/Notifications/NotificationEntryDispatcher.Codeunit.al
    title: src/Layers/W1/BaseApp/System/Notifications/NotificationEntryDispatcher.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: codeunit
object_id: 1509
name: Notification Entry Dispatcher
namespace: System.Environment.Configuration
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "27"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 31
  events: 14
  subscribers: 0
relations:
  out: 1
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 8
  called_by: 1
  implements: 0
---

# Codeunit 1509 "Notification Entry Dispatcher"

> Codeunit 1509 "Notification Entry Dispatcher" in Base Application (System.Environment.Configuration). 2 public procedures, 14 events. Present since at least BC23, still in BC30, changed in BC27.

Base Application · System.Environment.Configuration · BC23-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/System/Notifications/NotificationEntryDispatcher.Codeunit.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| TableNo | Job Queue Entry |
| Permissions | TableData "User Setup" = r, TableData "Notification Entry" = rimd, TableData "Sent Notification Entry" = rimd, TableData "Email Item" = rimd |

## Events published

- `OnAfterCreateMailAndDispatch(var NotificationEntry: Record "Notification Entry"; Email: Text; IsEmailedSuccessfully: Boolean)` (integration)
- `OnAfterDispatchForNotificationType(NotificationSetup: Record "Notification Setup"; var NotificationEntry: Record "Notification Entry")` (integration)
- `OnAddNoteOnAfterGetUrl(var Link: Text; NotificationEntry: Record "Notification Entry"; RecRefLink: RecordRef)` (integration)
- `OnBeforeCreateMailAndDispatch(var NotificationEntry: Record "Notification Entry"; var MailSubject: Text; var Email: Text; var IsHandled: Boolean)` (integration)
- `OnBeforeCreateAndDispatch(NotificationSetup: Record "Notification Setup"; var NotificationEntry: Record "Notification Entry")` (integration)
- `OnBeforeGetTargetRecRef(var NotificationEntry: Record "Notification Entry"; var TargetRecRefOut: RecordRef; var IsHandled: Boolean)` (integration)
- `OnBeforeGetHTMLBodyText(var NotificationEntry: Record "Notification Entry"; var BodyTextOut: Text; var Result: Boolean; var IsHandled: Boolean)` (integration)
- `OnCreateNoteBodyOnAfterGetActionTextFor(var NotificationEntry: Record "Notification Entry"; var ActionText: Text)` (integration)
- `OnBeforeDispatchNotificationTypeForUser(Parameter: Text; var IsHandled: Boolean)` (integration)
- `OnBeforeGetTempNotificationEntryFromTo(var NotificationEntry: Record "Notification Entry"; var TempNotificationEntryFromTo: Record "Notification Entry" temporary; var IsHandled: Boolean)` (integration)
- `OnGetHTMLBodyTextOnAfterSetTempLayoutCode(var NotificationEntry: Record "Notification Entry"; var BodyTextOut: Text; var TempLayoutCode: Code[20])` (integration)
- `OnBeforeApprovalNotificationEntryIsOutdated(var NotificationEntry: Record "Notification Entry"; var IsOutdated: Boolean; var IsHandled: Boolean)` (integration)
- `OnCreateMailAndDispatchOnBeforeLogError(var NotificationEntry: Record "Notification Entry"; Email: Text; BodyText: Text; var IsHandled: Boolean)` (integration)
- `OnBeforeDispatchForNotificationType(NotificationType: Enum "Notification Entry Type"; UserSetup: Record "User Setup"; SenderUserID: Code[50]; var IsHandled: Boolean)` (integration)

## Procedures

- `GetHTMLBodyText(var NotificationEntry: Record "Notification Entry"; var BodyTextOut: Text): Boolean`
- `GetTargetRecRef(var NotificationEntry: Record "Notification Entry"; var TargetRecRefOut: RecordRef)`

Plus 15 local procedures.

## Triggers

OnRun

## Relations

- runs on [Table 472 "Job Queue Entry"](../table/472.md)

## Calls

From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an `Object::"Name"` argument. Interface dispatch and calls through events are not counted, so the list is not complete.

- [Codeunit 28 "Error Message Management"](../codeunit/28.md) (6 calls: `AddNote → LogError`, `CreateMailAndDispatch → LogError`, `DispatchInstantNotifications → Activate`, …)
- [Codeunit 1510 "Notification Management"](../codeunit/1510.md) (4 calls: `CreateMailAndDispatch → MoveNotificationEntryToSentNotificationEntries`, `CreateNoteAndDispatch → MoveNotificationEntryToSentNotificationEntries`, `CreateNoteBody → GetActionTextFor`, …)
- [Codeunit 4100 "Temp Blob"](../codeunit/4100.md) (3 calls: `ConvertHtmlFileToText → CreateInStream`, `CreateMailAndDispatch → CreateInStream`, `GetHTMLBodyText → CreateOutStream`)
- [Codeunit 701 "Data Type Management"](../codeunit/701.md) (2 calls: `ApprovalNotificationEntryIsOutdated → GetRecordRef`, `GetTargetRecRef → GetRecordRef`)
- [Codeunit 260 "Document-Mailing"](../codeunit/260.md) (1 call: `CreateMailAndDispatch → EmailFile`)
- [Codeunit 447 "Record Link Management"](../codeunit/447.md) (1 call: `AddNote → WriteNote`)
- [Codeunit 700 "Page Management"](../codeunit/700.md) (1 call: `AddNote → GetPageID`)
- [Codeunit 9520 "Mail Management"](../codeunit/9520.md) (1 call: `CreateMailAndDispatch → IsEnabled`)

## Called by

- [Table 1513 "Notification Schedule"](../table/1513.md) (1 call: `SendNotificationInForeground → (object)`)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: BC27

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). The call sections above are our own, per object, from the BC29 call graph. 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: "Notification Entry Dispatcher")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
