# Notification.Id([Guid]) Method
> Version: _Available or changed with runtime version 1.0._
Specifies the identifier for a notification.
## Syntax
```al
[Id := ]  Notification.Id([Id: Guid])
```
> NOTE
> This method can be invoked using property access syntax.
## Parameters
Notification
Type: notification-data-type
An instance of the notification-data-type data type.
*[Optional] Id*
Type: ../guid/guid-data-type
## Return Value
*[Optional] Id*
Type: ../guid/guid-data-type
## Remarks
If left unassigned the notification will be assigned an ID when the Send method is called. See notification-send-method.
##  Example
The following code creates a notification and sends it if NewBalance is greater than the credit limit. If it is lower than the credit limit, it recalls the notification.
The example uses a pre-defined ID so that the notification can be recalled.
```al
MyNotification.ID := '00000000-0000-0000-0000-000000000001';
IF NewBallance > Rec. "Credit Limit" THEN begin
  MyNotification.Message := 'The customer's current balance exceeds their credit limit.';
  MyNotification.Scope := NotificationScope::LocalScope;
  MyNotification.AddAction('Fix it.', 50001, 'FixCustomerCreditLimit');
  MyNotification.SetData('CustomerNo.', Rec."No.");
  MyNotification.Send;
END ELSE
  MyNotification.Recall;
```
## Related information
notification-data-type
Get 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-id-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-id-method/
