Hi,
Sending notifications to the Notifications section in BC appear in the bell icon area is for Microsoft only, alternatively you can use this Notification that appears in a Role Centre page using AL code thru Notification data type.
Here’s a clean path forward:
1. Use the Notification Data Type
You can create and send notifications using AL like this:
procedure SendNotification()
var
MyNotification: Notification;
begin
MyNotification.Message := 'Reminder: Please review the latest sales report.';
MyNotification.Scope := NotificationScope::LocalScope;
MyNotification.Send();
end;
2. Customize the Message and Scope
Message: The text shown in the notification panel
Scope: Use LocalScope for current user/session or GlobalScope for all users (requires permissions)
- You can also set
Action to allow users to click and open a page or report
3. Add Actions (Optional)
You can attach a page link or action to the notification:
MyNotification.AddAction('Open Sales Report', Codeunit::"MyReportHandler", 'RunSalesReport');
4. Trigger Notifications from Events
You can send notifications from triggers like OnInsert, OnValidate, or background processes. For example, notify users when a document is overdue or when a batch job completes.
5. Monitor Notification Behavior
Notifications are session-based and do not persist across logins unless you build a custom queue or use Record-based tracking.
Helpful Reference
Dynamics 365 Business Central: Role Center Hooks Using Codeunit 1430 "Role Center Notification Mgt"
Notification data type - Business Central | Microsoft Learn
If you find this helpful, feel free to mark this as the suggested or verified answer.
Cheers
Jeffrey