ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] CU 1509 OnBeforeSendNotificationEmail

Open SteveyN opened this issue 7 years ago • 0 comments

In Codeunit 1509 Notification Entry Dispatcher, we would like the following bolded event: OnBeforeSendNotificationEmail(var NotificationEntry,BodyText,var Email) After "IF GetHTMLBodyText(NotificationEntry,BodyText) THEN"

In context: We've added a new Approval Workflow notification that notifies the requestee that their request was approved. The user defines a BCC Email in setup, and wants the Approved Documents to be attached to the Notification Email as pdfs.

At the moment, we are having to construct the email manually when an Approval Request is Approved. This bypasses the Notification functionality, which is not ideal.

We need a way of Binding an event subscriber to the OnBeforeSendEmail function in CU260 Document Mailing, so we can get information set on the Notification Entry and use it to add the BCC Email and Attachments to the Notification Email. We could use this new OnBeforeSendNotificationEmail to manually bind an event to OnBeforeSendEmail, then unbind the event OnAfterEmailSendSuccesfully.

The information we need can be stored on the Notification Entry table as a table extension.

SteveyN avatar Mar 11 '19 15:03 SteveyN