Codeunit "Notification Entry Dispatcher"

ID 1509
Namespace: System.Environment.Configuration

Properties

Name Value
Permissions TableData "User Setup" = r, TableData "Notification Entry" = rimd, TableData "Sent Notification Entry" = rimd, TableData "Email Item" = rimd
TableNo Table System.Threading."Job Queue Entry"

Methods

GetTargetRecRef

procedure GetTargetRecRef(var NotificationEntry: Record "Notification Entry", var TargetRecRefOut: RecordRef)

Parameters

Name Type Description
NotificationEntry Table System.Environment.Configuration."Notification Entry"
TargetRecRefOut RecordRef

Events

OnAfterCreateMailAndDispatch

[IntegrationEvent(False,False)]
local procedure OnAfterCreateMailAndDispatch(var NotificationEntry: Record "Notification Entry", Email: Text, IsEmailedSuccessfully: Boolean)

Parameters

Name Type Description
NotificationEntry Table System.Environment.Configuration."Notification Entry"
Email Text
IsEmailedSuccessfully Boolean

OnAfterDispatchForNotificationType

[IntegrationEvent(False,False)]
local procedure OnAfterDispatchForNotificationType(NotificationSetup: Record "Notification Setup", var NotificationEntry: Record "Notification Entry")

Parameters

Name Type Description
NotificationSetup Table System.Environment.Configuration."Notification Setup"
NotificationEntry Table System.Environment.Configuration."Notification Entry"

OnAddNoteOnAfterGetUrl

[IntegrationEvent(False,False)]
local procedure OnAddNoteOnAfterGetUrl(var Link: Text, NotificationEntry: Record "Notification Entry", RecRefLink: RecordRef)

Parameters

Name Type Description
Link Text
NotificationEntry Table System.Environment.Configuration."Notification Entry"
RecRefLink RecordRef

OnBeforeCreateMailAndDispatch

[IntegrationEvent(False,False)]
local procedure OnBeforeCreateMailAndDispatch(var NotificationEntry: Record "Notification Entry", var MailSubject: Text, var Email: Text, var IsHandled: Boolean)

Parameters

Name Type Description
NotificationEntry Table System.Environment.Configuration."Notification Entry"
MailSubject Text
Email Text
IsHandled Boolean

OnBeforeCreateAndDispatch

[IntegrationEvent(False,False)]
local procedure OnBeforeCreateAndDispatch(NotificationSetup: Record "Notification Setup", var NotificationEntry: Record "Notification Entry")

Parameters

Name Type Description
NotificationSetup Table System.Environment.Configuration."Notification Setup"
NotificationEntry Table System.Environment.Configuration."Notification Entry"

OnBeforeGetTargetRecRef

[IntegrationEvent(False,False)]
local procedure OnBeforeGetTargetRecRef(var NotificationEntry: Record "Notification Entry", var TargetRecRefOut: RecordRef, var IsHandled: Boolean)

Parameters

Name Type Description
NotificationEntry Table System.Environment.Configuration."Notification Entry"
TargetRecRefOut RecordRef
IsHandled Boolean

OnBeforeGetHTMLBodyText

[IntegrationEvent(False,False)]
local procedure OnBeforeGetHTMLBodyText(var NotificationEntry: Record "Notification Entry", var BodyTextOut: Text, var Result: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
NotificationEntry Table System.Environment.Configuration."Notification Entry"
BodyTextOut Text
Result Boolean
IsHandled Boolean

OnCreateNoteBodyOnAfterGetActionTextFor

[IntegrationEvent(False,False)]
local procedure OnCreateNoteBodyOnAfterGetActionTextFor(var NotificationEntry: Record "Notification Entry", var ActionText: Text)

Parameters

Name Type Description
NotificationEntry Table System.Environment.Configuration."Notification Entry"
ActionText Text

OnBeforeDispatchNotificationTypeForUser

[IntegrationEvent(False,False)]
local procedure OnBeforeDispatchNotificationTypeForUser(Parameter: Text, var IsHandled: Boolean)

Parameters

Name Type Description
Parameter Text
IsHandled Boolean

OnBeforeGetTempNotificationEntryFromTo

[IntegrationEvent(False,False)]
local procedure OnBeforeGetTempNotificationEntryFromTo(var NotificationEntry: Record "Notification Entry", var TempNotificationEntryFromTo: Record "Notification Entry" temporary, var IsHandled: Boolean)

Parameters

Name Type Description
NotificationEntry Table System.Environment.Configuration."Notification Entry"
TempNotificationEntryFromTo Table System.Environment.Configuration."Notification Entry"
IsHandled Boolean

OnGetHTMLBodyTextOnAfterSetTempLayoutCode

[IntegrationEvent(False,False)]
local procedure OnGetHTMLBodyTextOnAfterSetTempLayoutCode(var NotificationEntry: Record "Notification Entry", var BodyTextOut: Text, var TempLayoutCode: Code[20])

Parameters

Name Type Description
NotificationEntry Table System.Environment.Configuration."Notification Entry"
BodyTextOut Text
TempLayoutCode Code[20]

OnBeforeApprovalNotificationEntryIsOutdated

[IntegrationEvent(False,False)]
local procedure OnBeforeApprovalNotificationEntryIsOutdated(var NotificationEntry: Record "Notification Entry", var IsOutdated: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
NotificationEntry Table System.Environment.Configuration."Notification Entry"
IsOutdated Boolean
IsHandled Boolean

OnCreateMailAndDispatchOnBeforeLogError

[IntegrationEvent(False,False)]
local procedure OnCreateMailAndDispatchOnBeforeLogError(var NotificationEntry: Record "Notification Entry", Email: Text, BodyText: Text, var IsHandled: Boolean)

Parameters

Name Type Description
NotificationEntry Table System.Environment.Configuration."Notification Entry"
Email Text
BodyText Text
IsHandled Boolean

OnBeforeDispatchForNotificationType

[IntegrationEvent(False,False)]
local procedure OnBeforeDispatchForNotificationType(NotificationType: Enum "Notification Entry Type", UserSetup: Record "User Setup", SenderUserID: Code[50], var IsHandled: Boolean)

Parameters

Name Type Description
NotificationType Enum System.Environment.Configuration."Notification Entry Type"
UserSetup Table System.Security.User."User Setup"
SenderUserID Code[50]
IsHandled Boolean

See also