UserNotification.GetIdentifier
------------------------------

Queries the identifier used to uniquely identify a notification.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [UserNotification](component_UserNotification.md) | [3.5](newinversion35.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ❌ No |

MBS( "UserNotification.GetIdentifier"; UserNotificationReference ) 

**MBS**( **"UserNotification.GetIdentifier";** /\* Queries the identifier used to uniquely identify a notification. \*/  
**$UserNotificationReference**) /\* An user notification reference.e.g. $ref \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| UserNotificationReference | An user notification reference. | $ref |

### Result

Returns identifier or error.

### Description

Queries the identifier used to uniquely identify a notification.   
A notification delivered with the same identifier as an existing notification will replace that notification, rather than display a new one.  
Requires macOS 10.9.  
### See also

- [UNNotification.Identifier](UNNotificationIdentifier.md)
- [UNNotification.ThreadIdentifier](UNNotificationThreadIdentifier.md)
- [UserNotification.GetResponse](UserNotificationGetResponse.md)
- [UserNotification.GetSoundName](UserNotificationGetSoundName.md)
- [UserNotification.GetSubTitle](UserNotificationGetSubTitle.md)
- [UserNotification.GetUserInfo](UserNotificationGetUserInfo.md)
- [UserNotification.SetIdentifier](UserNotificationSetIdentifier.md)

This function is free to use.

Created 18th August 2014 , last changed 10th August 2020

  
[UserNotification.GetDescription](UserNotificationGetDescription.md) - [UserNotification.GetInformativeText](UserNotificationGetInformativeText.md)

[HTML Version](UserNotificationGetIdentifier.shtml)