---
title: "Codeunit 1509 Notification Entry Dispatcher, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/1509-notification-entry-dispatcher/points/
object: https://jonas-paprotka.de/ref/codeunit/1509-notification-entry-dispatcher/
app: "Base Application"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/1509-notification-entry-dispatcher/source/
checked: 2026-11-20
changed: 2026-11-06
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 1509 Notification Entry Dispatcher, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/1509-notification-entry-dispatcher/points/

16 procedures and triggers with a step in src/Layers/W1/BaseApp/System/Notifications/NotificationEntryDispatcher.Codeunit.al, in source order, read from the text, not from a run.

## OnRun

[Line 20](https://jonas-paprotka.de/ref/codeunit/1509-notification-entry-dispatcher/source/#L20), trigger.

- [23](https://jonas-paprotka.de/ref/codeunit/1509-notification-entry-dispatcher/source/#L23) calls `DispatchInstantNotifications`
- [25](https://jonas-paprotka.de/ref/codeunit/1509-notification-entry-dispatcher/source/#L25) calls `DispatchNotificationTypeForUser`

## DispatchInstantNotifications

[Line 50](https://jonas-paprotka.de/ref/codeunit/1509-notification-entry-dispatcher/source/#L50), local.

- [59](https://jonas-paprotka.de/ref/codeunit/1509-notification-entry-dispatcher/source/#L59) calls `GetTempNotificationEntryFromTo`
- [63](https://jonas-paprotka.de/ref/codeunit/1509-notification-entry-dispatcher/source/#L63) calls [Codeunit 28 Error Message Management](https://jonas-paprotka.de/ref/codeunit/28-error-message-management/) `Activate`
- [64](https://jonas-paprotka.de/ref/codeunit/1509-notification-entry-dispatcher/source/#L64) calls [Codeunit 28 Error Message Management](https://jonas-paprotka.de/ref/codeunit/28-error-message-management/) `PushContext`
- [69](https://jonas-paprotka.de/ref/codeunit/1509-notification-entry-dispatcher/source/#L69) calls `ScheduledInstantly`
- [70](https://jonas-paprotka.de/ref/codeunit/1509-notification-entry-dispatcher/source/#L70) calls `DispatchForNotificationType`
- [73](https://jonas-paprotka.de/ref/codeunit/1509-notification-entry-dispatcher/source/#L73) calls `NotifyAboutForegroundDispatchErrors`
- [76](https://jonas-paprotka.de/ref/codeunit/1509-notification-entry-dispatcher/source/#L76) calls [Codeunit 28 Error Message Management](https://jonas-paprotka.de/ref/codeunit/28-error-message-management/) `Finish`

## NotifyAboutForegroundDispatchErrors

[Line 84](https://jonas-paprotka.de/ref/codeunit/1509-notification-entry-dispatcher/source/#L84), local.

- [86](https://jonas-paprotka.de/ref/codeunit/1509-notification-entry-dispatcher/source/#L86) calls [Codeunit 29 Error Message Handler](https://jonas-paprotka.de/ref/codeunit/29-error-message-handler/) `HasErrors`
- [91](https://jonas-paprotka.de/ref/codeunit/1509-notification-entry-dispatcher/source/#L91) calls [Codeunit 29 Error Message Handler](https://jonas-paprotka.de/ref/codeunit/29-error-message-handler/) `NotifyAboutErrors`

## DispatchNotificationTypeForUser

[Line 94](https://jonas-paprotka.de/ref/codeunit/1509-notification-entry-dispatcher/source/#L94), local.

- [101](https://jonas-paprotka.de/ref/codeunit/1509-notification-entry-dispatcher/source/#L101) raises `OnBeforeDispatchNotificationTypeForUser`, IsHandled
- [107](https://jonas-paprotka.de/ref/codeunit/1509-notification-entry-dispatcher/source/#L107) calls `DispatchForNotificationType`

## DispatchForNotificationType

[Line 110](https://jonas-paprotka.de/ref/codeunit/1509-notification-entry-dispatcher/source/#L110), local.

- [117](https://jonas-paprotka.de/ref/codeunit/1509-notification-entry-dispatcher/source/#L117) raises `OnBeforeDispatchForNotificationType`, IsHandled
- [124](https://jonas-paprotka.de/ref/codeunit/1509-notification-entry-dispatcher/source/#L124) calls `DeleteOutdatedApprovalNotificationEntires`
- [129](https://jonas-paprotka.de/ref/codeunit/1509-notification-entry-dispatcher/source/#L129) calls `FilterToActiveNotificationEntries`
- [131](https://jonas-paprotka.de/ref/codeunit/1509-notification-entry-dispatcher/source/#L131) calls [Table 1512 Notification Setup](https://jonas-paprotka.de/ref/table/1512-notification-setup/) `GetNotificationTypeSetupForUser`
- [133](https://jonas-paprotka.de/ref/codeunit/1509-notification-entry-dispatcher/source/#L133) calls `CreateAndDispatch`
- [136](https://jonas-paprotka.de/ref/codeunit/1509-notification-entry-dispatcher/source/#L136) raises `OnAfterDispatchForNotificationType`

## CreateAndDispatch

[Line 139](https://jonas-paprotka.de/ref/codeunit/1509-notification-entry-dispatcher/source/#L139), local.

- [141](https://jonas-paprotka.de/ref/codeunit/1509-notification-entry-dispatcher/source/#L141) raises `OnBeforeCreateAndDispatch`
- [144](https://jonas-paprotka.de/ref/codeunit/1509-notification-entry-dispatcher/source/#L144) calls `CreateMailAndDispatch`
- [146](https://jonas-paprotka.de/ref/codeunit/1509-notification-entry-dispatcher/source/#L146) calls `CreateNoteAndDispatch`

## CreateMailAndDispatch

[Line 160](https://jonas-paprotka.de/ref/codeunit/1509-notification-entry-dispatcher/source/#L160), local.

- [179](https://jonas-paprotka.de/ref/codeunit/1509-notification-entry-dispatcher/source/#L179) calls `GetHTMLBodyText`
- [184](https://jonas-paprotka.de/ref/codeunit/1509-notification-entry-dispatcher/source/#L184) raises `OnBeforeCreateMailAndDispatch`, IsHandled
- [188](https://jonas-paprotka.de/ref/codeunit/1509-notification-entry-dispatcher/source/#L188) calls [Codeunit 4100 Temp Blob](https://jonas-paprotka.de/ref/codeunit/4100-temp-blob/) `CreateInStream`
- [200](https://jonas-paprotka.de/ref/codeunit/1509-notification-entry-dispatcher/source/#L200) calls `GetTargetRecRef`
- [206](https://jonas-paprotka.de/ref/codeunit/1509-notification-entry-dispatcher/source/#L206) calls `MaximumRelatedEntries`
- [209](https://jonas-paprotka.de/ref/codeunit/1509-notification-entry-dispatcher/source/#L209) calls [Codeunit 260 Document-Mailing](https://jonas-paprotka.de/ref/codeunit/260-document-mailing/) `EmailFile`
- [213](https://jonas-paprotka.de/ref/codeunit/1509-notification-entry-dispatcher/source/#L213) calls [Codeunit 1510 Notification Management](https://jonas-paprotka.de/ref/codeunit/1510-notification-management/) `MoveNotificationEntryToSentNotificationEntries`
- [217](https://jonas-paprotka.de/ref/codeunit/1509-notification-entry-dispatcher/source/#L217) raises `OnCreateMailAndDispatchOnBeforeLogError`, IsHandled
- [221](https://jonas-paprotka.de/ref/codeunit/1509-notification-entry-dispatcher/source/#L221) calls [Codeunit 9520 Mail Management](https://jonas-paprotka.de/ref/codeunit/9520-mail-management/) `IsEnabled`
- [225](https://jonas-paprotka.de/ref/codeunit/1509-notification-entry-dispatcher/source/#L225) writes [Table 1511 Notification Entry](https://jonas-paprotka.de/ref/table/1511-notification-entry/) Modify(true)
- [226](https://jonas-paprotka.de/ref/codeunit/1509-notification-entry-dispatcher/source/#L226) calls [Codeunit 28 Error Message Management](https://jonas-paprotka.de/ref/codeunit/28-error-message-management/) `LogError`
- [230](https://jonas-paprotka.de/ref/codeunit/1509-notification-entry-dispatcher/source/#L230) raises `OnAfterCreateMailAndDispatch`

## CreateNoteAndDispatch

[Line 233](https://jonas-paprotka.de/ref/codeunit/1509-notification-entry-dispatcher/source/#L233), local.

- [239](https://jonas-paprotka.de/ref/codeunit/1509-notification-entry-dispatcher/source/#L239) calls `AddNote`
- [240](https://jonas-paprotka.de/ref/codeunit/1509-notification-entry-dispatcher/source/#L240) calls [Codeunit 1510 Notification Management](https://jonas-paprotka.de/ref/codeunit/1510-notification-management/) `MoveNotificationEntryToSentNotificationEntries`

## AddNote

[Line 245](https://jonas-paprotka.de/ref/codeunit/1509-notification-entry-dispatcher/source/#L245), local.

- [256](https://jonas-paprotka.de/ref/codeunit/1509-notification-entry-dispatcher/source/#L256) calls `GetTargetRecRef`
- [260](https://jonas-paprotka.de/ref/codeunit/1509-notification-entry-dispatcher/source/#L260) calls [Codeunit 700 Page Management](https://jonas-paprotka.de/ref/codeunit/700-page-management/) `GetPageID`
- [261](https://jonas-paprotka.de/ref/codeunit/1509-notification-entry-dispatcher/source/#L261) raises `OnAddNoteOnAfterGetUrl`
- [265](https://jonas-paprotka.de/ref/codeunit/1509-notification-entry-dispatcher/source/#L265) calls `CreateNoteBody`
- [266](https://jonas-paprotka.de/ref/codeunit/1509-notification-entry-dispatcher/source/#L266) calls [Codeunit 447 Record Link Management](https://jonas-paprotka.de/ref/codeunit/447-record-link-management/) `WriteNote`
- [272](https://jonas-paprotka.de/ref/codeunit/1509-notification-entry-dispatcher/source/#L272) writes [Table 2000000068 Record Link](https://jonas-paprotka.de/ref/table/2000000068-record-link/) Insert(true)
- [273](https://jonas-paprotka.de/ref/codeunit/1509-notification-entry-dispatcher/source/#L273) calls [Codeunit 28 Error Message Management](https://jonas-paprotka.de/ref/codeunit/28-error-message-management/) `LogError`

## ConvertHtmlFileToText

[Line 288](https://jonas-paprotka.de/ref/codeunit/1509-notification-entry-dispatcher/source/#L288), local.

- [292](https://jonas-paprotka.de/ref/codeunit/1509-notification-entry-dispatcher/source/#L292) calls [Codeunit 4100 Temp Blob](https://jonas-paprotka.de/ref/codeunit/4100-temp-blob/) `CreateInStream`

## CreateNoteBody

[Line 296](https://jonas-paprotka.de/ref/codeunit/1509-notification-entry-dispatcher/source/#L296), local.

- [304](https://jonas-paprotka.de/ref/codeunit/1509-notification-entry-dispatcher/source/#L304) calls `GetTargetRecRef`
- [305](https://jonas-paprotka.de/ref/codeunit/1509-notification-entry-dispatcher/source/#L305) calls [Codeunit 1510 Notification Management](https://jonas-paprotka.de/ref/codeunit/1510-notification-management/) `GetDocumentTypeAndNumber`
- [307](https://jonas-paprotka.de/ref/codeunit/1509-notification-entry-dispatcher/source/#L307) calls [Codeunit 1510 Notification Management](https://jonas-paprotka.de/ref/codeunit/1510-notification-management/) `GetActionTextFor`
- [308](https://jonas-paprotka.de/ref/codeunit/1509-notification-entry-dispatcher/source/#L308) raises `OnCreateNoteBodyOnAfterGetActionTextFor`

## GetHTMLBodyText

[Line 313](https://jonas-paprotka.de/ref/codeunit/1509-notification-entry-dispatcher/source/#L313).

- [323](https://jonas-paprotka.de/ref/codeunit/1509-notification-entry-dispatcher/source/#L323) raises `OnBeforeGetHTMLBodyText`, IsHandled
- [329](https://jonas-paprotka.de/ref/codeunit/1509-notification-entry-dispatcher/source/#L329) raises `OnGetHTMLBodyTextOnAfterSetTempLayoutCode`
- [330](https://jonas-paprotka.de/ref/codeunit/1509-notification-entry-dispatcher/source/#L330) calls [Table 9651 Report Layout Selection](https://jonas-paprotka.de/ref/table/9651-report-layout-selection/) `SetTempLayoutSelected`
- [332](https://jonas-paprotka.de/ref/codeunit/1509-notification-entry-dispatcher/source/#L332) calls [Codeunit 4100 Temp Blob](https://jonas-paprotka.de/ref/codeunit/4100-temp-blob/) `CreateOutStream`
- [333](https://jonas-paprotka.de/ref/codeunit/1509-notification-entry-dispatcher/source/#L333) runs [Report 1320 Notification Email](https://jonas-paprotka.de/ref/report/1320-notification-email/)
- [335](https://jonas-paprotka.de/ref/codeunit/1509-notification-entry-dispatcher/source/#L335) writes [Table 1511 Notification Entry](https://jonas-paprotka.de/ref/table/1511-notification-entry/) Modify(true)
- [336](https://jonas-paprotka.de/ref/codeunit/1509-notification-entry-dispatcher/source/#L336) calls [Codeunit 28 Error Message Management](https://jonas-paprotka.de/ref/codeunit/28-error-message-management/) `LogError`
- [341](https://jonas-paprotka.de/ref/codeunit/1509-notification-entry-dispatcher/source/#L341) calls `ConvertHtmlFileToText`

## GetTargetRecRef

[Line 345](https://jonas-paprotka.de/ref/codeunit/1509-notification-entry-dispatcher/source/#L345).

- [354](https://jonas-paprotka.de/ref/codeunit/1509-notification-entry-dispatcher/source/#L354) raises `OnBeforeGetTargetRecRef`, IsHandled
- [358](https://jonas-paprotka.de/ref/codeunit/1509-notification-entry-dispatcher/source/#L358) calls [Codeunit 701 Data Type Management](https://jonas-paprotka.de/ref/codeunit/701-data-type-management/) `GetRecordRef`

## DeleteOutdatedApprovalNotificationEntires

[Line 376](https://jonas-paprotka.de/ref/codeunit/1509-notification-entry-dispatcher/source/#L376), local.

- [380](https://jonas-paprotka.de/ref/codeunit/1509-notification-entry-dispatcher/source/#L380) calls `ApprovalNotificationEntryIsOutdated`
- [381](https://jonas-paprotka.de/ref/codeunit/1509-notification-entry-dispatcher/source/#L381) writes [Table 1511 Notification Entry](https://jonas-paprotka.de/ref/table/1511-notification-entry/) Delete

## ApprovalNotificationEntryIsOutdated

[Line 385](https://jonas-paprotka.de/ref/codeunit/1509-notification-entry-dispatcher/source/#L385), local.

- [395](https://jonas-paprotka.de/ref/codeunit/1509-notification-entry-dispatcher/source/#L395) raises `OnBeforeApprovalNotificationEntryIsOutdated`, IsHandled
- [399](https://jonas-paprotka.de/ref/codeunit/1509-notification-entry-dispatcher/source/#L399) calls [Codeunit 701 Data Type Management](https://jonas-paprotka.de/ref/codeunit/701-data-type-management/) `GetRecordRef`

## GetTempNotificationEntryFromTo

[Line 418](https://jonas-paprotka.de/ref/codeunit/1509-notification-entry-dispatcher/source/#L418), local.

- [424](https://jonas-paprotka.de/ref/codeunit/1509-notification-entry-dispatcher/source/#L424) raises `OnBeforeGetTempNotificationEntryFromTo`, IsHandled
- [435](https://jonas-paprotka.de/ref/codeunit/1509-notification-entry-dispatcher/source/#L435) writes [Table 1511 Notification Entry](https://jonas-paprotka.de/ref/table/1511-notification-entry/) Insert

## Source

AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at 4303e5e584d3aa5d9e98cbc615525a5396ad6ed7.

JOP-AL, 2026-11-20.
