---
id: object/codeunit/1511
type: object
title: Codeunit 1511 "Notification Lifecycle Mgt."
summary: Codeunit 1511 "Notification Lifecycle Mgt." in Base Application (System.Environment.Configuration). 13 public procedures, 4 events, 1 event subscribers. Present since at least BC23, still in BC30.
tier: official
language: en
tags:
  - codeunit
  - base application
versions:
  introduced: null
  last_changed: null
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-10-11T00:31:51.816Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: d49a2c73776eb02e28527cf4da9a48153f22dcae8523b9ed8858933e88dd94bf
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Modules/System/Notifications/NotificationLifecycleMgt.Codeunit.al
    title: src/Layers/W1/BaseApp/Modules/System/Notifications/NotificationLifecycleMgt.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: codeunit
object_id: 1511
name: Notification Lifecycle Mgt.
namespace: System.Environment.Configuration
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in: []
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 25
  events: 4
  subscribers: 1
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 1
  calls: 0
  called_by: 43
  implements: 0
---

# Codeunit 1511 "Notification Lifecycle Mgt."

> Codeunit 1511 "Notification Lifecycle Mgt." in Base Application (System.Environment.Configuration). 13 public procedures, 4 events, 1 event subscribers. Present since at least BC23, still in BC30.

Base Application · System.Environment.Configuration · BC23-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Modules/System/Notifications/NotificationLifecycleMgt.Codeunit.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| SingleInstance | true |

## Events published

- `OnAfterNotificationSent(CurrentNotification: Notification; TableNo: Integer)` (integration)
  - subscribers: [Codeunit 1511 "Notification Lifecycle Mgt."](../codeunit/1511.md) LogNotificationSentSubscriber
- `OnAfterInsertNotificationContext(NotificationContext: Record "Notification Context")` (integration)
- `OnAfterDeleteNotificationContext(NotificationContext: Record "Notification Context")` (integration)
- `OnBeforeSendNotification(var NotificationToSend: Notification; RecId: RecordID; AdditionalContextId: Guid)` (integration)

## Event subscriptions

- LogNotificationSentSubscriber subscribes to Codeunit "Notification Lifecycle Mgt." OnAfterNotificationSent

## Procedures

- `SendNotification(NotificationToSend: Notification; RecId: RecordID)`
- `SendNotificationWithAdditionalContext(NotificationToSend: Notification; RecId: RecordID; AdditionalContextId: Guid)`
- `RecallNotificationsForRecord(RecId: RecordID; HandleDelayedInsert: Boolean)`
- `RecallNotificationsForRecordWithAdditionalContext(RecId: RecordID; AdditionalContextId: Guid; HandleDelayedInsert: Boolean)`
- `RecallAllNotifications()`
- `GetTmpNotificationContext(var TempNotificationContextOut: Record "Notification Context" temporary)`
- `SetRecordID(RecId: RecordID)`
- `UpdateRecordID(CurrentRecId: RecordID; NewRecId: RecordID)`
- `GetNotificationsForRecord(RecId: RecordID; var TempNotificationContextOut: Record "Notification Context" temporary; HandleDelayedInsert: Boolean): Boolean`
- `GetNotificationsForRecordWithAdditionalContext(RecId: RecordID; AdditionalContextId: Guid; var TempNotificationContextOut: Record "Notification Context" temporary; HandleDelayedInsert: Boolean): Boolean`
- `EnableSubscribers()`
- `DisableSubscribers()`
- `AreSubscribersDisabled(): Boolean`

Plus 7 local procedures.

## Triggers

OnRun

## Called by

From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an `Object::"Name"` argument. Interface dispatch and calls through events are not counted, so the list is not complete.

- [Codeunit 1508 "Notification Lifecycle Handler"](../codeunit/1508.md) (87 calls: `OnAfterAssemblyLineDeleteRecall → AreSubscribersDisabled`, `OnAfterAssemblyLineDeleteRecall → RecallNotificationsForRecord`, `OnAfterAssemblyLineInsertSetRecId → AreSubscribersDisabled`, …)
- [Codeunit 6460 "Serv. Notification Mgt."](../codeunit/6460.md) (14 calls: `OnAfterServiceContractHeaderInsertSetRecId → AreSubscribersDisabled`, `OnAfterServiceContractHeaderInsertSetRecId → SetRecordID`, `OnAfterServiceLineDeleteRecall → AreSubscribersDisabled`, …)
- [Codeunit 311 "Item-Check Avail."](../codeunit/311.md) (7 calls: `AssemblyLineCheck → RecallNotificationsForRecordWithAdditionalContext`, `CreateAndSendNotification → SendNotificationWithAdditionalContext`, `InvtDocCheckLine → RecallNotificationsForRecordWithAdditionalContext`, …)
- [Codeunit 18 "Financial Report Mgt."](../codeunit/18.md) (4 calls: `CheckStatus → RecallNotificationsForRecord`, `CheckStatus → SendNotification`, `NotifyUpdateFinancialReport → SendNotification`, …)
- [Table 36 "Sales Header"](../table/36.md) (3 calls: `RecallExternalDocAlreadyExistsNotification → RecallNotificationsForRecordWithAdditionalContext`, `ShowExternalDocAlreadyExistNotification → SendNotificationWithAdditionalContext`, `ShowModifyAddressNotification → SendNotification`)
- [Table 37 "Sales Line"](../table/37.md) (3 calls: `SendBlockedItemNotification → SendNotification`, `SendBlockedItemVariantNotification → SendNotification`, `SendLineInvoiceDiscountResetNotification → SendNotification`)
- [Table 38 "Purchase Header"](../table/38.md) (3 calls: `RecallExternalDocAlreadyExistsNotification → RecallNotificationsForRecordWithAdditionalContext`, `ShowExternalDocAlreadyExistNotification → SendNotificationWithAdditionalContext`, `ShowModifyAddressNotification → SendNotification`)
- [Table 39 "Purchase Line"](../table/39.md) (3 calls: `SendBlockedItemNotification → SendNotification`, `SendBlockedItemVariantNotification → SendNotification`, `SendLineInvoiceDiscountResetNotification → SendNotification`)
- [Codeunit 1173 "Document Attachment Mgmt"](../codeunit/1173.md) (2 calls: `ShowDocPrintedToAttachmentNotification → SendNotificationWithAdditionalContext`, `ShowNotFoundPrintableReportsNotification → SendNotification`)
- [Codeunit 1393 "Cancel Issued Reminder"](../codeunit/1393.md) (2 calls: `ShowAppliedCustomerLedgerEntryNotification → SendNotificationWithAdditionalContext`, `ShowNextLevelReminderNotification → SendNotificationWithAdditionalContext`)
- [Codeunit 170 "Standard Codes Mgt."](../codeunit/170.md) (2 calls: `ShowGetPurchRecurringLinesNotification → SendNotificationWithAdditionalContext`, `ShowGetSalesRecurringLinesNotification → SendNotificationWithAdditionalContext`)
- [Codeunit 29 "Error Message Handler"](../codeunit/29.md) (2 calls: `ShowNotification → RecallNotificationsForRecord`, `ShowNotification → SendNotification`)
- [Codeunit 4591 "SOA Item Search"](../codeunit/4591.md) (2 calls: `OnAfterCheckItemAvailable → RecallNotificationsForRecordWithAdditionalContext`, `OnAfterCheckItemAvailable → SendNotificationWithAdditionalContext`)
- [Codeunit 65 "Discount Notification Mgt."](../codeunit/65.md) (2 calls: `RecallNotification → RecallNotificationsForRecord`, `SendNotification → SendNotification`)
- [Codeunit 8510 "Over-Receipt Mgt."](../codeunit/8510.md) (2 calls: `RecallOverReceiptNotification → RecallNotificationsForRecord`, `ShowOverReceiptNotification → SendNotification`)
- [Codeunit 905 "Assembly Line Management"](../codeunit/905.md) (2 calls: `CreateAndSendNotification → RecallNotificationsForRecordWithAdditionalContext`, `CreateAndSendNotification → SendNotificationWithAdditionalContext`)
- [Page 6325 "Power BI Embedded Report Part"](../page/6325.md) (2 calls: `ClearNotifications → RecallNotificationsForRecord`, `ShowError → SendNotification`)
- [Page 9170 "Profile Card"](../page/9170.md) (2 calls: `ShowOrRecallDuplicateProfileIDNotification → RecallNotificationsForRecord`, `ShowOrRecallDuplicateProfileIDNotification → SendNotification`)
- [Page 9199 "Profile Import Wizard"](../page/9199.md) (2 calls: `HideNotifications → RecallAllNotifications`, `OnInitializeStep → SendNotification`)
- [Table 5600 "Fixed Asset"](../table/5600.md) (2 calls: `RecallNotificationForCurrentUser → RecallNotificationsForRecord`, `ShowAcquireWizardNotification → SendNotification`)
- [Table 5902 "Service Line"](../table/5902.md) (2 calls: `SendBlockedItemNotification → SendNotification`, `SendBlockedItemVariantNotification → SendNotification`)
- [Table 81 "Gen. Journal Line"](../table/81.md) (2 calls: `RecallSetDimFiltersNotification → RecallNotificationsForRecord`, `SendSetDimFiltersNotification → SendNotification`)
- [Codeunit 104 "Update Name In Ledger Entries"](../codeunit/104.md) (1 call: `NotifyAboutBlankNamesInLedgerEntries → SendNotification`)
- [Codeunit 11 "Gen. Jnl.-Check Line"](../codeunit/11.md) (1 call: `TestSpendRequest → SendNotification`)
- [Codeunit 1303 "Correct Posted Sales Invoice"](../codeunit/1303.md) (1 call: `ShowInvoiceAppliedNotification → SendNotification`)
- [Codeunit 1313 "Correct Posted Purch. Invoice"](../codeunit/1313.md) (1 call: `ShowInvoiceAppliedNotification → SendNotification`)
- [Codeunit 1395 "Cancel Issued Fin. Charge Memo"](../codeunit/1395.md) (1 call: `ShowAppliedCustomerLedgerEntryNotification → SendNotificationWithAdditionalContext`)
- [Codeunit 312 "Cust-Check Cr. Limit"](../codeunit/312.md) (1 call: `CreateAndSendNotification → SendNotificationWithAdditionalContext`)
- [Codeunit 5060 "DuplicateManagement"](../codeunit/5060.md) (1 call: `Notify → SendNotification`)
- [Codeunit 5714 "Copy Location"](../codeunit/5714.md) (1 call: `ShowNotification → SendNotification`)
- [Codeunit 6453 "Serv. Item Check Avail."](../codeunit/6453.md) (1 call: `ServiceInvLineCheck → RecallNotificationsForRecordWithAdditionalContext`)
- [Codeunit 6489 "Serv. Check Credit Limit"](../codeunit/6489.md) (1 call: `CreateAndSendNotification → SendNotificationWithAdditionalContext`)
- [Codeunit 7017 "Price List Management"](../codeunit/7017.md) (1 call: `VerifySourceGroupInLines → SendNotification`)
- [Codeunit 730 "Copy Item"](../codeunit/730.md) (1 call: `ShowNotification → SendNotification`)
- [Codeunit 9041 "Data Admin. Page Notification"](../codeunit/9041.md) (1 call: `ShowRefreshNotification → SendNotification`)
- [Codeunit 9173 "Profile Helper"](../codeunit/9173.md) (1 call: `ShowProfileDiagnostics → SendNotification`)
- [Page 6324 "Power BI Element Addin Host"](../page/6324.md) (1 call: `ShowError → SendNotification`)
- [Page 7498 "Item From Picture"](../page/7498.md) (1 call: `OnAfterGetCurrRecord → SendNotification`)
- [Table 570 "G/L Account Category"](../table/570.md) (1 call: `ShowNotificationAccSchedUpdateNeeded → SendNotification`)
- [Table 5767 "Warehouse Activity Line"](../table/5767.md) (1 call: `SendDeleteWarehouseActivityLineNotification → SendNotification`)
- [Table 6840 "Spend Request"](../table/6840.md) (1 call: `CheckSpendRequestAmount → SendNotification`)
- [Table 6905 "Expense Per Diem"](../table/6905.md) (1 call: `SendMissingExpenseLocationNotification → SendNotification`)
- [Table 6909 "Expense Report Line Per Diem"](../table/6909.md) (1 call: `SendMissingExpenseLocationNotification → SendNotification`)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: none

Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).

## Ask your agent

Procedure bodies are not stored here (D10). The call sections above are our own, per object, from the BC29 call graph. For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: `bcatlas_resolve_node(object_type: "codeunit", object_name: "Notification Lifecycle Mgt.")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
