Codeunit 1509 Notification Entry Dispatcher

Base Application, System.Environment.Configuration

src/Layers/W1/BaseApp/System/Notifications/NotificationEntryDispatcher.Codeunit.al16 procedures and triggers, in source order. Copyright (c) Microsoft Corporation. MIT

OnRun line 20, trigger

  1. 23callsDispatchInstantNotifications
  2. 25callsDispatchNotificationTypeForUser

DispatchInstantNotifications line 50, local

  1. 59callsGetTempNotificationEntryFromTo
  2. 63callsCodeunit 28 Error Message Management Activate
  3. 64callsCodeunit 28 Error Message Management PushContext
  4. 69callsScheduledInstantly
  5. 70callsDispatchForNotificationType
  6. 73callsNotifyAboutForegroundDispatchErrors
  7. 76callsCodeunit 28 Error Message Management Finish

NotifyAboutForegroundDispatchErrors line 84, local

  1. 86callsCodeunit 29 Error Message Handler HasErrors
  2. 91callsCodeunit 29 Error Message Handler NotifyAboutErrors

DispatchNotificationTypeForUser line 94, local

  1. 101raisesOnBeforeDispatchNotificationTypeForUserIsHandled
  2. 107callsDispatchForNotificationType

DispatchForNotificationType line 110, local

  1. 117raisesOnBeforeDispatchForNotificationTypeIsHandled
  2. 124callsDeleteOutdatedApprovalNotificationEntires
  3. 129callsFilterToActiveNotificationEntries
  4. 131callsTable 1512 Notification Setup GetNotificationTypeSetupForUser
  5. 133callsCreateAndDispatch
  6. 136raisesOnAfterDispatchForNotificationType

CreateAndDispatch line 139, local

  1. 141raisesOnBeforeCreateAndDispatch
  2. 144callsCreateMailAndDispatch
  3. 146callsCreateNoteAndDispatch

CreateMailAndDispatch line 160, local

  1. 179callsGetHTMLBodyText
  2. 184raisesOnBeforeCreateMailAndDispatchIsHandled
  3. 188callsCodeunit 4100 Temp Blob CreateInStream
  4. 200callsGetTargetRecRef
  5. 206callsMaximumRelatedEntries
  6. 209callsCodeunit 260 Document-Mailing EmailFile
  7. 213callsCodeunit 1510 Notification Management MoveNotificationEntryToSentNotificationEntries
  8. 217raisesOnCreateMailAndDispatchOnBeforeLogErrorIsHandled
  9. 221callsCodeunit 9520 Mail Management IsEnabled
  10. 225writesTable 1511 Notification Entry Modify(true)
  11. 226callsCodeunit 28 Error Message Management LogError
  12. 230raisesOnAfterCreateMailAndDispatch

CreateNoteAndDispatch line 233, local

  1. 239callsAddNote
  2. 240callsCodeunit 1510 Notification Management MoveNotificationEntryToSentNotificationEntries

AddNote line 245, local

  1. 256callsGetTargetRecRef
  2. 260callsCodeunit 700 Page Management GetPageID
  3. 261raisesOnAddNoteOnAfterGetUrl
  4. 265callsCreateNoteBody
  5. 266callsCodeunit 447 Record Link Management WriteNote
  6. 272writesTable 2000000068 Record Link Insert(true)
  7. 273callsCodeunit 28 Error Message Management LogError

ConvertHtmlFileToText line 288, local

  1. 292callsCodeunit 4100 Temp Blob CreateInStream

CreateNoteBody line 296, local

  1. 304callsGetTargetRecRef
  2. 305callsCodeunit 1510 Notification Management GetDocumentTypeAndNumber
  3. 307callsCodeunit 1510 Notification Management GetActionTextFor
  4. 308raisesOnCreateNoteBodyOnAfterGetActionTextFor

GetHTMLBodyText line 313

  1. 323raisesOnBeforeGetHTMLBodyTextIsHandled
  2. 329raisesOnGetHTMLBodyTextOnAfterSetTempLayoutCode
  3. 330callsTable 9651 Report Layout Selection SetTempLayoutSelected
  4. 332callsCodeunit 4100 Temp Blob CreateOutStream
  5. 333runsReport 1320 Notification Email
  6. 335writesTable 1511 Notification Entry Modify(true)
  7. 336callsCodeunit 28 Error Message Management LogError
  8. 341callsConvertHtmlFileToText

GetTargetRecRef line 345

  1. 354raisesOnBeforeGetTargetRecRefIsHandled
  2. 358callsCodeunit 701 Data Type Management GetRecordRef

DeleteOutdatedApprovalNotificationEntires line 376, local

  1. 380callsApprovalNotificationEntryIsOutdated
  2. 381writesTable 1511 Notification Entry Delete

ApprovalNotificationEntryIsOutdated line 385, local

  1. 395raisesOnBeforeApprovalNotificationEntryIsOutdatedIsHandled
  2. 399callsCodeunit 701 Data Type Management GetRecordRef

GetTempNotificationEntryFromTo line 418, local

  1. 424raisesOnBeforeGetTempNotificationEntryFromToIsHandled
  2. 435writesTable 1511 Notification Entry Insert