UNNotification.SetTitle
-----------------------

Sets title of notification.

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

MBS( "UNNotification.SetTitle"; UNNotificationRef; Title ) 

**MBS**( **"UNNotification.SetTitle";** /\* Sets title of notification. \*/  
**$UNNotificationRef**; /\* The reference number of the notification.e.g. $Notification \*/   
**$Title**) /\* The new title.e.g. "Hello" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| UNNotificationRef | The reference number of the notification. | $Notification |
| Title | The new title. | "Hello" |

### Result

Returns OK or error.

### Description

Sets title of notification.  
### Examples

Create new notification and set title:

 Set Variable \[$notification ; Value:MBS ("[UNNotification.New](UNNotificationNew.md)")\]  
Set Variable \[$r ; Value:MBS ("UNNotification.SetTitle"; $notification ; "Hello")\]  
Try title:

 # Create a new notification   
Set Variable \[$notification ; Value:MBS ("[UNNotification.New](UNNotificationNew.md)")\]  
\# set a title   
Set Variable \[$r ; Value:MBS ("UNNotification.SetTitle"; $notification ; "Hello")\]  
\# and query back   
Set Variable \[$title ; Value:MBS ("[UNNotification.Title](UNNotificationTitle.md)"; $notification )\]  
\# free memory   
Set Variable \[$r ; Value:MBS ("[UNNotification.Release](UNNotificationRelease.md)"; $notification )\]  
### See also

- [UNNotification.Release](UNNotificationRelease.md)
- [UNNotification.SetBody](UNNotificationSetBody.md)
- [UNNotification.SetCalendarTrigger](UNNotificationSetCalendarTrigger.md)
- [UNNotification.SetScript](UNNotificationSetScript.md)
- [UNNotification.SetSound](UNNotificationSetSound.md)
- [UNNotification.SetSubTitle](UNNotificationSetSubTitle.md)
- [UNNotification.SetTimeIntervalTrigger](UNNotificationSetTimeIntervalTrigger.md)
- [UserNotification.GetTitle](UserNotificationGetTitle.md)
- [UserNotification.SetSubTitle](UserNotificationSetSubTitle.md)
- [UserNotification.SetTitle](UserNotificationSetTitle.md)

### Example Databases

- [Mac and iOS/UNNotification](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20and%20iOS/UNNotification.shtml#1ScriptAnchor_)

### Blog Entries

- [MBS FileMaker Advent calendar - Door 17 - User Notifications](https://www.mbsplugins.de/archive/2024-12-17/MBS_FileMaker_Advent_calendar_/monkeybreadsoftware_blog_filemaker)
- [Schedule Notifications with MBS Plugin in iOS](https://www.mbsplugins.de/archive/2019-01-04/Schedule_Notifications_with_MB/monkeybreadsoftware_blog_filemaker)

### FileMaker Magazin

- [Ausgabe 4/2022, Seite 22](https://filemaker-magazin.de/neuigkeit/4191-Appetithappen-FMM_202204)

This function is free to use.

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

  
[UNNotification.SetTimeIntervalTrigger](UNNotificationSetTimeIntervalTrigger.md) - [UNNotification.SubTitle](UNNotificationSubTitle.md)

[HTML Version](UNNotificationSetTitle.shtml)