Notification.AddAction(Text, Integer, Text, Text) Method
Version: Available or changed with runtime version 12.0.
Specifies an action for the notification.
Syntax
Notification.AddAction(Caption: Text, CodeunitID: Integer, MethodName: Text, Description: Text)
Parameters
Notification
Type: Notification
An instance of the Notification data type.
Caption
Type: Text
The text string that appears as the caption of the action in the notification UI. The string can be a label that is enabled for multilanguage functionality.
CodeunitID
Type: Integer
The ID of the Codeunit to run when the action is initiated from the notification UI. The codeunit should contain at least one global method to be called by the notification action. The global method must have a Notification data type parameter for accepting the notification object.
MethodName
Type: Text
The name of the method in the Codeunit, which is specified by the CodeunitID parameter, that you want to run for the action.
Description
Type: Text
The text that appears as the tooltip of the action in the notification UI.
Related information
Notification Data Type
Getting Started with AL
Developing Extensions