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

Name Type Description
TempNotificationContextOut Table System.Environment.Configuration."Notification Context"

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

Name Type Description
RecId RecordId
TempNotificationContextOut Table System.Environment.Configuration."Notification Context"
HandleDelayedInsert Boolean

Returns

Type Description
Boolean

GetNotificationsForRecordWithAdditionalContext

procedure GetNotificationsForRecordWithAdditionalContext(RecId: RecordId, AdditionalContextId: Guid, var TempNotificationContextOut: Record "Notification Context" temporary, HandleDelayedInsert: Boolean): Boolean

Parameters

Name Type Description
RecId RecordId
AdditionalContextId Guid
TempNotificationContextOut Table System.Environment.Configuration."Notification Context"
HandleDelayedInsert Boolean

Returns

Type Description
Boolean

EnableSubscribers

procedure EnableSubscribers()

DisableSubscribers

procedure DisableSubscribers()

AreSubscribersDisabled

procedure AreSubscribersDisabled(): Boolean

Returns

Type Description
Boolean

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

Name Type Description
NotificationContext Table System.Environment.Configuration."Notification Context"

OnAfterDeleteNotificationContext

[IntegrationEvent(False,False)]
local procedure OnAfterDeleteNotificationContext(NotificationContext: Record "Notification Context")

Parameters

Name Type Description
NotificationContext Table System.Environment.Configuration."Notification Context"

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