---
title: "Codeunit 1509 Notification Entry Dispatcher"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/1509-notification-entry-dispatcher/
type: codeunit
id: 1509
name: "Notification Entry Dispatcher"
app: "Base Application"
namespace: System.Environment.Configuration
versions: "17-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/codeunit/1509-notification-entry-dispatcher/source/29/"
checked: 2026-09-20
subject: "Microsoft Dynamics 365 Business Central"
license: "Content © 2026 Jonas Paprotka. Quote freely with attribution and a link."
---

# Codeunit 1509 Notification Entry Dispatcher

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/1509-notification-entry-dispatcher/

| | |
| --- | --- |
| App | Base Application |
| Namespace | System.Environment.Configuration |
| Versions | 17-28 |
| Source file | System/Notifications/NotificationEntryDispatcher.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| GetHTMLBodyText | (var Record Notification Entry, var Text) | Boolean | public | 17-28 | - | - |
| GetTargetRecRef | (var Record Notification Entry, var RecordRef) | - | public | 18-28 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnAfterCreateMailAndDispatch | (var Record Notification Entry, Text, Boolean) | 17-28 | - | - |
| Integration event | OnBeforeCreateMailAndDispatch | (var Record Notification Entry, var Text, var Text, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeGetTargetRecRef | (var Record Notification Entry, var RecordRef, var Boolean) | 17-28 | - | - |
| Integration event | OnAddNoteOnAfterGetUrl | (var Text, Record Notification Entry, RecordRef) | 19-28 | - | - |
| Integration event | OnAfterDispatchForNotificationType | (Record Notification Setup, var Record Notification Entry) | 20-28 | - | - |
| Integration event | OnBeforeGetHTMLBodyText | (var Record Notification Entry, var Text, var Boolean, var Boolean) | 20-28 | - | - |
| Integration event | OnCreateNoteBodyOnAfterGetActionTextFor | (var Record Notification Entry, var Text) | 20-28 | - | - |
| Integration event | OnBeforeDispatchNotificationTypeForUser | (Text, Boolean) | 20 | - | - |
| Integration event | OnBeforeGetTempNotificationEntryFromTo | (var Record Notification Entry, var Record Notification Entry, var Boolean) | 20-28 | - | - |
| Integration event | OnBeforeCreateAndDispatch | (Record Notification Setup, var Record Notification Entry) | 21-28 | - | - |
| Integration event | OnBeforeDispatchNotificationTypeForUser | (Text, var Boolean) | 21-28 | - | - |
| Integration event | OnGetHTMLBodyTextOnAfterSetTempLayoutCode | (var Record Notification Entry, var Text, var Code[20]) | 22-28 | - | - |
| Integration event | OnBeforeApprovalNotificationEntryIsOutdated | (var Record Notification Entry, var Boolean, var Boolean) | 22-28 | - | - |
| Integration event | OnCreateMailAndDispatchOnBeforeLogError | (var Record Notification Entry, Text, Text, var Boolean) | 23-28 | - | - |
| Integration event | OnBeforeDispatchForNotificationType | (Enum Notification Entry Type, Record User Setup, Code[50], var Boolean) | 23-28 | - | - |

## Source

Symbols: Microsoft.BaseApplication.symbols.437dbf0e-84ff-417a-965d-ed2bb9650972, https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json, highest build per major on 2026-09-20.
AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at a66254c3b8b5bb1cea290dc8f9d097aec4381153.

Jonas Paprotka, 2026-09-20.
