Codeunit 1509 "Notification Entry Dispatcher"
Base Application · System.Environment.Configuration
Across versions
- BC23-26present
- BC271 procedures added, 1 procedures removed
- BC282 procedures added
- BC29-30unchanged
Neighbourhood 11 connected objects and pages
Base Application · System.Environment.Configuration · BC23-30 · source at 4e6a307c · 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
SetRunInForeground(NewRunInForeground: Boolean)+ BC28 (internal): Specifies that the instant notifications are dispatched in the foreground, as part of the caller’s transaction (for example, while a workflow response runs). In that case, a notification that cannot be delivered must not stop the caller’s transaction. The errors are reported to the user and the noti…GetHTMLBodyText(var NotificationEntry: Record "Notification Entry"; var BodyTextOut: Text): BooleanGetTargetRecRef(var NotificationEntry: Record "Notification Entry"; var TargetRecRefOut: RecordRef)
Plus 16 local procedures.
Triggers
OnRun
Relations
- runs on Table 472 “Job Queue Entry”
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” (6 calls:
AddNote → LogError,CreateMailAndDispatch → LogError,DispatchInstantNotifications → Activate, …) - Codeunit 1510 “Notification Management” (4 calls:
CreateMailAndDispatch → MoveNotificationEntryToSentNotificationEntries,CreateNoteAndDispatch → MoveNotificationEntryToSentNotificationEntries,CreateNoteBody → GetActionTextFor, …) - Codeunit 4100 “Temp Blob” (3 calls:
ConvertHtmlFileToText → CreateInStream,CreateMailAndDispatch → CreateInStream,GetHTMLBodyText → CreateOutStream) - Codeunit 29 “Error Message Handler” (2 calls:
NotifyAboutForegroundDispatchErrors → HasErrors,NotifyAboutForegroundDispatchErrors → NotifyAboutErrors) - Codeunit 701 “Data Type Management” (2 calls:
ApprovalNotificationEntryIsOutdated → GetRecordRef,GetTargetRecRef → GetRecordRef) - Codeunit 260 “Document-Mailing” (1 call:
CreateMailAndDispatch → EmailFile) - Codeunit 447 “Record Link Management” (1 call:
AddNote → WriteNote) - Codeunit 700 “Page Management” (1 call:
AddNote → GetPageID) - Codeunit 9520 “Mail Management” (1 call:
CreateMailAndDispatch → IsEnabled)
Called by
- Table 1513 “Notification Schedule” (2 calls:
SendNotificationInForeground → (object),SendNotificationInForeground → SetRunInForeground)
Recent changes
- 2026-10-08 #12308 Don’t block approval workflow when foreground notification email fails (main, BC30, fix)
Possibly related
No source states these links: they share an object, a model read them, or a person found the same subject.
- Notification Email report — possibly related: Notification Entry Dispatcher builds notification emails using Notification Entry table (model-linked)
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.