WindowsUserNotification.SetTag
------------------------------

Sets the unique identifier of this notification within the notification Group.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [WindowsUserNotification](component_WindowsUserNotification.md) | [13.1](newinversion131.md) | ❌ No | ✅ Yes | ❌ No | ❌ No | ❌ No |

MBS( "WindowsUserNotification.SetTag"; Notification; Value ) 

**MBS**( **"WindowsUserNotification.SetTag";** /\* Sets the unique identifier of this notification within the notification Group. \*/  
**$Notification**; /\* The reference number for the Windows User Notification. \*/   
**$Value**) /\* The new tag value.e.g. 123456 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Notification | The reference number for the Windows User Notification. | $Notification |
| Value | The new tag value. | 123456 |

### Result

Returns OK or error.

### Description

Sets the unique identifier of this notification within the notification Group.  
This API returns an error if the property is set to null or the empty string.  
The tag can be maximum 16 characters long. However, the Creators Update (15063) extends this limit to 64 characters.  
e.g. could be the record ID for the notification in your database.  
### Examples

Fill tag with name of table and record ID, so we can find it later:

 Set Variable \[$r ; Value: MBS ( "WindowsUserNotification.SetTag"; $Notification ; "Person¶" &amp; Get(RecordID) )\]  
### See also

- [WindowsUserNotification.GetTag](WindowsUserNotificationGetTag.md)
- [WindowsUserNotification.GetText](WindowsUserNotificationGetText.md)
- [WindowsUserNotification.Release](WindowsUserNotificationRelease.md)
- [WindowsUserNotification.SetGroup](WindowsUserNotificationSetGroup.md)
- [WindowsUserNotification.SetImagePath](WindowsUserNotificationSetImagePath.md)
- [WindowsUserNotification.SetPriority](WindowsUserNotificationSetPriority.md)
- [WindowsUserNotification.SetRemoteId](WindowsUserNotificationSetRemoteId.md)
- [WindowsUserNotification.SetText](WindowsUserNotificationSetText.md)
- [WindowsUserNotification.Setting](WindowsUserNotificationSetting.md)
- [WindowsUserNotification.XMLUsed](WindowsUserNotificationXMLUsed.md)

### Release notes

- **Version 13.1**
    - Added [WindowsUserNotification.SetTag](https://www.mbsplugins.eu/WindowsUserNotificationSetTag.shtml) and [WindowsUserNotification.GetTag](https://www.mbsplugins.eu/WindowsUserNotificationGetTag.shtml) functions.

### Blog Entries

- [New in MBS FileMaker Plugin 13.1](https://www.mbsplugins.de/archive/2023-03-15/New_in_MBS_FileMaker_Plugin_13/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 13.1pr1](https://www.mbsplugins.de/archive/2023-02-01/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 21st January 2023 , last changed 25th February 2026

  
[WindowsUserNotification.SetSuppressPopup](WindowsUserNotificationSetSuppressPopup.md) - [WindowsUserNotification.SetText](WindowsUserNotificationSetText.md)

[HTML Version](WindowsUserNotificationSetTag.shtml)