# Notification.AddAction(Text, Integer, Text, Text) Method
> Version: _Available or changed with runtime version 12.0._
Specifies an action for the notification.
## Syntax
```al
 Notification.AddAction(Caption: Text, CodeunitID: Integer, MethodName: Text, Description: Text)
```
## Parameters
Notification
Type: notification-data-type
An instance of the notification-data-type data type.
Caption
Type: ../text/text-data-type
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/integer-data-type
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/text-data-type
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/text-data-type
The text that appears as the tooltip of the action in the notification UI.
## Related information
notification-data-type
Getting Started with AL<../../devenv-get-started>
Developing Extensions<../../devenv-dev-overview>

Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/notification/notification-addaction-string-integer-string-string-method, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact. https://jonas-paprotka.de/docs/dev-itpro/developer/methods-auto/notification/notification-addaction-string-integer-string-string-method/
