Summary

Completed

In this module, you learned how to work with notifications. Notifications are non-modal and, therefore, non-blocking for the user. You need to create a variable of the notification data type and use the Message function to set the appropriate message. Additionally, you need to call the Send function; otherwise, nothing happens with your notification.

You can add one or multiple actions to a notification by using the AddAction function. In this function, you need to specify which codeunit will be called, and which function within that codeunit, when a user selects the action link. The function in the codeunit can only accept one parameter of data type notification.

To pass other values to the codeunit, you need to use the SetData and GetData functions. These functions are key/value pairs where you can only provide text values. If you need to pass a DateTime or an Integer value, you need to convert them with the Format function and, in the codeunit, convert them back with an Evaluate function.