Codeunit "Notification Lifecycle Mgt."
ID 1511
Namespace: System.Environment.Configuration
Properties
| Name |
Value |
| SingleInstance |
True
|
Methods
SendNotification
procedure SendNotification(NotificationToSend: Notification, RecId: RecordId)
Parameters
| Name |
Type |
Description |
|
NotificationToSend
|
Notification
|
|
|
RecId
|
RecordId
|
|
SendNotificationWithAdditionalContext
procedure SendNotificationWithAdditionalContext(NotificationToSend: Notification, RecId: RecordId, AdditionalContextId: Guid)
Parameters
| Name |
Type |
Description |
|
NotificationToSend
|
Notification
|
|
|
RecId
|
RecordId
|
|
|
AdditionalContextId
|
Guid
|
|
RecallNotificationsForRecord
procedure RecallNotificationsForRecord(RecId: RecordId, HandleDelayedInsert: Boolean)
Parameters
| Name |
Type |
Description |
|
RecId
|
RecordId
|
|
|
HandleDelayedInsert
|
Boolean
|
|
RecallNotificationsForRecordWithAdditionalContext
procedure RecallNotificationsForRecordWithAdditionalContext(RecId: RecordId, AdditionalContextId: Guid, HandleDelayedInsert: Boolean)
Parameters
| Name |
Type |
Description |
|
RecId
|
RecordId
|
|
|
AdditionalContextId
|
Guid
|
|
|
HandleDelayedInsert
|
Boolean
|
|
RecallAllNotifications
procedure RecallAllNotifications()
GetTmpNotificationContext
procedure GetTmpNotificationContext(var TempNotificationContextOut: Record "Notification Context" temporary)
Parameters
SetRecordID
procedure SetRecordID(RecId: RecordId)
Parameters
| Name |
Type |
Description |
|
RecId
|
RecordId
|
|
UpdateRecordID
procedure UpdateRecordID(CurrentRecId: RecordId, NewRecId: RecordId)
Parameters
| Name |
Type |
Description |
|
CurrentRecId
|
RecordId
|
|
|
NewRecId
|
RecordId
|
|
GetNotificationsForRecord
procedure GetNotificationsForRecord(RecId: RecordId, var TempNotificationContextOut: Record "Notification Context" temporary, HandleDelayedInsert: Boolean): Boolean
Parameters
Returns
GetNotificationsForRecordWithAdditionalContext
procedure GetNotificationsForRecordWithAdditionalContext(RecId: RecordId, AdditionalContextId: Guid, var TempNotificationContextOut: Record "Notification Context" temporary, HandleDelayedInsert: Boolean): Boolean
Parameters
Returns
EnableSubscribers
procedure EnableSubscribers()
DisableSubscribers
procedure DisableSubscribers()
AreSubscribersDisabled
procedure AreSubscribersDisabled(): Boolean
Returns
Events
OnAfterNotificationSent
[IntegrationEvent(False,False)]
local procedure OnAfterNotificationSent(CurrentNotification: Notification, TableNo: Integer)
Parameters
| Name |
Type |
Description |
|
CurrentNotification
|
Notification
|
|
|
TableNo
|
Integer
|
|
OnAfterInsertNotificationContext
[IntegrationEvent(False,False)]
local procedure OnAfterInsertNotificationContext(NotificationContext: Record "Notification Context")
Parameters
OnAfterDeleteNotificationContext
[IntegrationEvent(False,False)]
local procedure OnAfterDeleteNotificationContext(NotificationContext: Record "Notification Context")
Parameters
OnBeforeSendNotification
[IntegrationEvent(False,False)]
local procedure OnBeforeSendNotification(var NotificationToSend: Notification, RecId: RecordId, AdditionalContextId: Guid)
Parameters
| Name |
Type |
Description |
|
NotificationToSend
|
Notification
|
|
|
RecId
|
RecordId
|
|
|
AdditionalContextId
|
Guid
|
|
See also