{"title":"Notification.Id([Guid]) Method","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/methods-auto/notification/notification-id-method/","by":"JOP-AL","license":"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.","credit":"Microsoft Corporation, CC BY 4.0","origin":"https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/notification/notification-id-method","source":{"name":"Business Central developer and IT pro docs","repo":"https://github.com/MicrosoftDocs/dynamics365smb-devitpro-pb","commit":"828b6ee72fcd75755627cd6011f3d20899217ab2","date":"2026-11-19"},"checked":"2026-11-19","description":"Specifies the identifier for a notification.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":1,"title":"Notification.Id([Guid]) Method","slug":"notificationidguid-method","at":0,"chars":1454},{"level":2,"title":"Syntax","slug":"syntax","at":138,"chars":124},{"level":2,"title":"Parameters","slug":"parameters","at":262,"chars":154},{"level":2,"title":"Return Value","slug":"return-value","at":416,"chars":61},{"level":2,"title":"Remarks","slug":"remarks","at":477,"chars":132},{"level":2,"title":" Example","slug":"example","at":609,"chars":705},{"level":2,"title":"Related information","slug":"related-information","at":1314,"chars":140}],"text":"# Notification.Id([Guid]) Method\n> Version: _Available or changed with runtime version 1.0._\nSpecifies the identifier for a notification.\n## Syntax\n```al\n[Id := ]  Notification.Id([Id: Guid])\n```\n> NOTE\n> This method can be invoked using property access syntax.\n## Parameters\nNotification\nType: notification-data-type\nAn instance of the notification-data-type data type.\n*[Optional] Id*\nType: ../guid/guid-data-type\n## Return Value\n*[Optional] Id*\nType: ../guid/guid-data-type\n## Remarks\nIf left unassigned the notification will be assigned an ID when the Send method is called. See notification-send-method.\n##  Example\nThe 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.\nThe example uses a pre-defined ID so that the notification can be recalled.\n```al\nMyNotification.ID := '00000000-0000-0000-0000-000000000001';\nIF NewBallance > Rec. \"Credit Limit\" THEN begin\n  MyNotification.Message := 'The customer's current balance exceeds their credit limit.';\n  MyNotification.Scope := NotificationScope::LocalScope;\n  MyNotification.AddAction('Fix it.', 50001, 'FixCustomerCreditLimit');\n  MyNotification.SetData('CustomerNo.', Rec.\"No.\");\n  MyNotification.Send;\nEND ELSE\n  MyNotification.Recall;\n```\n## Related information\nnotification-data-type\nGet Started with AL<../../devenv-get-started>\nDeveloping Extensions<../../devenv-dev-overview>"}