Codeunit 1511 Notification Lifecycle Mgt.

Base Application, System.Environment.Configuration

Source AL, 236 lines

src/Layers/W1/BaseApp/Modules/System/Notifications/NotificationLifecycleMgt.Codeunit.allines 3 to 18 of 236, Copyright (c) Microsoft Corporation. MIT

codeunit 1511 "Notification Lifecycle Mgt."{    SingleInstance = true;    trigger OnRun()    begin    end;    var        TempNotificationContext: Record "Notification Context" temporary;        NotificationSentCategoryTxt: Label 'AL Notification Sent', Locked = true;        NotificationSentTelemetryMsg: Label 'A notification with ID %1 was sent for a record of table %2.', Locked = true;        SubscribersDisabled: Boolean;    procedure SendNotification(NotificationToSend: Notification; RecId: RecordID)    begin

All 236 lines

Events 4 in 29

[IntegrationEvent] OnAfterNotificationSent(CurrentNotification: Notification; TableNo: Integer)17-29
[IntegrationEvent] OnAfterInsertNotificationContext(NotificationContext: Record "Notification Context")17-29
[IntegrationEvent] OnAfterDeleteNotificationContext(NotificationContext: Record "Notification Context")17-29
[IntegrationEvent] OnBeforeSendNotification(var NotificationToSend: Notification; RecId: RecordId; AdditionalContextId: Guid)17-29

Public procedures 13 in 29

SendNotification(NotificationToSend: Notification; RecId: RecordId)17-29
SendNotificationWithAdditionalContext(NotificationToSend: Notification; RecId: RecordId; AdditionalContextId: Guid)17-29
RecallNotificationsForRecord(RecId: RecordId; HandleDelayedInsert: Boolean)17-29
RecallNotificationsForRecordWithAdditionalContext(RecId: RecordId; AdditionalContextId: Guid; HandleDelayedInsert: Boolean)17-29
RecallAllNotifications()17-29
GetTmpNotificationContext(var TempNotificationContextOut: Record "Notification Context" temporary)17-29

All 13 procedures