# Notification.HasData(Text) Method
> Version: _Available or changed with runtime version 1.0._
Checks if data was passed to a notification instance as specified by a SETDATA method call.
## Syntax
```al
Value :=   Notification.HasData(Name: Text)
```
## Parameters
Notification
Type: notification-data-type
An instance of the notification-data-type data type.
Name
Type: ../text/text-data-type
The name of the data item that is specified by the SETDATA method call.
## Return Value
Value
Type: ../boolean/boolean-data-type
true, if there is data; otherwise false.
## 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-hasdata-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-hasdata-method/
