Codeunit 1509 Notification Entry Dispatcher

Base Application, System.Environment.Configuration

Source AL, 516 lines

src/Layers/W1/BaseApp/System/Notifications/NotificationEntryDispatcher.Codeunit.allines 12 to 27 of 516, Copyright (c) Microsoft Corporation. MIT

codeunit 1509 "Notification Entry Dispatcher"{    Permissions = TableData "User Setup" = r,                  TableData "Notification Entry" = rimd,                  TableData "Sent Notification Entry" = rimd,                  TableData "Email Item" = rimd;    TableNo = "Job Queue Entry";    trigger OnRun()    begin        if Rec."Parameter String" = '' then            DispatchInstantNotifications()        else            DispatchNotificationTypeForUser(Rec."Parameter String");    end;

All 516 lines

Events 14 in 29

[IntegrationEvent] OnAfterCreateMailAndDispatch(var NotificationEntry: Record "Notification Entry"; Email: Text; IsEmailedSuccessfully: Boolean)17-29
[IntegrationEvent] OnBeforeCreateMailAndDispatch(var NotificationEntry: Record "Notification Entry"; var MailSubject: Text; var Email: Text; var IsHandled: Boolean)17-29
[IntegrationEvent] OnBeforeGetTargetRecRef(var NotificationEntry: Record "Notification Entry"; var TargetRecRefOut: RecordRef; var IsHandled: Boolean)17-29
[IntegrationEvent] OnAddNoteOnAfterGetUrl(var Link: Text; NotificationEntry: Record "Notification Entry"; RecRefLink: RecordRef)new in 19
[IntegrationEvent] OnAfterDispatchForNotificationType(NotificationSetup: Record "Notification Setup"; var NotificationEntry: Record "Notification Entry")new in 20
[IntegrationEvent] OnBeforeGetHTMLBodyText(var NotificationEntry: Record "Notification Entry"; var BodyTextOut: Text; var Result: Boolean; var IsHandled: Boolean)new in 20
[IntegrationEvent] OnCreateNoteBodyOnAfterGetActionTextFor(var NotificationEntry: Record "Notification Entry"; var ActionText: Text)new in 20

All 15 events in 17-29

Public procedures 2 in 29

GetHTMLBodyText(var NotificationEntry: Record "Notification Entry"; var BodyTextOut: Text): Boolean17-29
GetTargetRecRef(var NotificationEntry: Record "Notification Entry"; var TargetRecRefOut: RecordRef)new in 18

Changes 2 in 23

List17181920212223242526272829
Procedures1
Events15322
[IntegrationEvent] OnCreateMailAndDispatchOnBeforeLogError(var NotificationEntry: Record "Notification Entry"; Email: Text; BodyText: Text; var IsHandled: Boolean)new in 23
added
[IntegrationEvent] OnBeforeDispatchForNotificationType(NotificationType: Enum "Notification Entry Type"; UserSetup: Record "User Setup"; SenderUserID: Code[50]; var IsHandled: Boolean)new in 23
added

All 14 changes in 17-29