UNNotification.SetCategoryIdentifier
------------------------------------

Sets the category identifier.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [UNNotification](component_UNNotification.md) | [7.2](newinversion72.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |

MBS( "UNNotification.SetCategoryIdentifier"; UNNotificationRef; CategoryIdentifier ) 

**MBS**( **"UNNotification.SetCategoryIdentifier";** /\* Sets the category identifier. \*/  
**$UNNotificationRef**; /\* The reference number of the notification.e.g. $Notification \*/   
**$CategoryIdentifier**) /\* The new category identifier. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| UNNotificationRef | The reference number of the notification. | $Notification |
| CategoryIdentifier | The new category identifier. |  |

### Result

Returns OK or error.

### Description

Sets the category identifier.  
### Examples

Try category identifier:

 # Create a new notification   
Set Variable \[$notification ; Value:MBS ("[UNNotification.New](UNNotificationNew.md)")\]  
\# Set category identifier:   
Set Variable \[$r ; Value:MBS ("UNNotification.SetCategoryIdentifier"; $notification ; "Hello")\]  
\# and query back values   
Set Variable \[$value ; Value:MBS ("[UNNotification.CategoryIdentifier](UNNotificationCategoryIdentifier.md)"; $notification )\]  
\# and schedule   
Set Variable \[$r ; Value:MBS ("[UNNotification.Schedule](UNNotificationSchedule.md)"; $notification ; "test")\]  
### See also

- [UNNotification.CategoryIdentifier](UNNotificationCategoryIdentifier.md)
- [UNNotification.New](UNNotificationNew.md)
- [UNNotification.Schedule](UNNotificationSchedule.md)
- [UNNotification.SetThreadIdentifier](UNNotificationSetThreadIdentifier.md)

This function is free to use.

Created 15th April 2017 , last changed 17th April 2017

  
[UNNotification.SetCalendarTrigger](UNNotificationSetCalendarTrigger.md) - [UNNotification.SetLaunchImageName](UNNotificationSetLaunchImageName.md)

[HTML Version](UNNotificationSetCategoryIdentifier.shtml)