Codeunit "Notification Management"

ID 1510
Namespace: System.Environment.Configuration

Properties

Name Value
Permissions TableData "Overdue Approval Entry" = ri, TableData "Notification Entry" = rimd, TableData "Sent Notification Entry" = rim

Methods

CreateOverdueNotifications

procedure CreateOverdueNotifications(WorkflowStepArgument: Record "Workflow Step Argument")

Parameters

Name Type Description
WorkflowStepArgument Table System.Automation."Workflow Step Argument"

CreateDefaultNotificationTypeSetup

procedure CreateDefaultNotificationTypeSetup(NotificationType: Enum "Notification Entry Type")

Parameters

Name Type Description
NotificationType Enum System.Environment.Configuration."Notification Entry Type"

MoveNotificationEntryToSentNotificationEntries

procedure MoveNotificationEntryToSentNotificationEntries(var NotificationEntry: Record "Notification Entry", NotificationBody: Text, AggregatedNotifications: Boolean, NotificationMethod: Option)

Parameters

Name Type Description
NotificationEntry Table System.Environment.Configuration."Notification Entry"
NotificationBody Text
AggregatedNotifications Boolean
NotificationMethod Option

GetDocumentTypeAndNumber

procedure GetDocumentTypeAndNumber(var RecRef: RecordRef, var DocumentType: Text, var DocumentNo: Text)

Parameters

Name Type Description
RecRef RecordRef
DocumentType Text
DocumentNo Text

GetActionTextFor

procedure GetActionTextFor(var NotificationEntry: Record "Notification Entry"): Text

Parameters

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

Returns

Type Description
Text

Events

OnBeforeGetActionTextFor

[IntegrationEvent(False,False)]
local procedure OnBeforeGetActionTextFor(var NotificationEntry: Record "Notification Entry", var CustomText: Text, var IsHandled: Boolean)

Parameters

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

OnBeforeInsertOverdueEntry

[IntegrationEvent(False,False)]
local procedure OnBeforeInsertOverdueEntry(ApprovalEntry: Record "Approval Entry", var OverdueApprovalEntry: Record "Overdue Approval Entry")

Parameters

Name Type Description
ApprovalEntry Table System.Automation."Approval Entry"
OverdueApprovalEntry Table System.Automation."Overdue Approval Entry"

OnGetDocumentTypeAndNumber

[IntegrationEvent(False,False)]
local procedure OnGetDocumentTypeAndNumber(var RecRef: RecordRef, var DocumentType: Text, var DocumentNo: Text, var IsHandled: Boolean)

Parameters

Name Type Description
RecRef RecordRef
DocumentType Text
DocumentNo Text
IsHandled Boolean

OnCreateOverdueNotificationsOnBeforeCreateNotificationEntry

[IntegrationEvent(False,False)]
local procedure OnCreateOverdueNotificationsOnBeforeCreateNotificationEntry(UserSetup: Record "User Setup", ApprovalEntry: Record "Approval Entry", var OverdueApprovalEntry: Record "Overdue Approval Entry", var IsHandled: Boolean)

Parameters

Name Type Description
UserSetup Table System.Security.User."User Setup"
ApprovalEntry Table System.Automation."Approval Entry"
OverdueApprovalEntry Table System.Automation."Overdue Approval Entry"
IsHandled Boolean

See also