Hello Everyone,

In this article, we would discuss about Notifications topic in Dynamics 365 Business Central. 

Learning Objectives :


1. Introduction
2.Create Notification
3. Identity difference between model and non-model messages.
4. Send notifications
5. Add actions to a notification.
6. Pass data by using notifications.


1. In Microsoft Dynamics 365 Business Central, you can use interaction functions, such as Message, Error, and Confirm statements, to interact with other users. These interactions are always modal, meaning that the user is temporarily blocked and that they must first select the message before the process continues
.

2. Notifications are a way to inform the user, without having to block them, about a situation that takes place.
I wrote below code according to my requirement. 

Fig 2.1 Created Variable with datatype Notification.


Fig 2.2

3. 
Model : User will be temporarily blocked meaning user can’t continue without responding to Message or confirm.
Non-Model:
- User will not be blocked in fact user can continue process.
- User can check this notification after execution of process.

4. we can send notifications by using .message() and .send() as below,



5. As I added action using AddAction() to my notification, 



6. Using SetData() i am passing data to my function called Myfunction() which is created in codeunit,
 
Fig 6.1

Inside MyFunction() i am using GetData() to get the data from page which we passed using SetData and after filter displaying data on page using SetTableView(). then finally running the page to show the filtered data Fig.6.3


Fig 6.2


Fig 6.3


Additional points about notifications:

 1. Multiple notifications can exist concurrently and will appear in chronological order from top to             bottom.
 2. Notifications remain for the duration of the page instance or until the user dismisses or acts on them.
 3. Notifications that are defined on subpages, for example in parts and FactBoxes, appear in the same         notification bar.
 4. Validation errors on the page will be shown first.


Thank you 😊

Comments