UNNotification.SetBody
----------------------

Sets the body of the notification.

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

MBS( "UNNotification.SetBody"; UNNotificationRef; Body ) 

**MBS**( **"UNNotification.SetBody";** /\* Sets the body of the notification. \*/  
**$UNNotificationRef**; /\* The reference number of the notification.e.g. $Notification \*/   
**$Body**) /\* The new body text.e.g. "Greetings from FileMaker" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| UNNotificationRef | The reference number of the notification. | $Notification |
| Body | The new body text. | "Greetings from FileMaker" |

### Result

Returns OK or error.

### Description

Sets the body of the notification.  
### Examples

Test body property:

 # Create a new notification   
Set Variable \[$notification ; Value:MBS ("[UNNotification.New](UNNotificationNew.md)")\]  
\# set a body   
Set Variable \[$r ; Value:MBS ("UNNotification.SetBody"; $notification ; "Hello World")\]  
\# and query back   
Set Variable \[$value ; Value:MBS ("[UNNotification.Body](UNNotificationBody.md)"; $notification )\]  
\# free memory   
Set Variable \[$r ; Value:MBS ("[UNNotification.Release](UNNotificationRelease.md)"; $notification )\]  
### See also

- [UNNotification.Action](UNNotificationAction.md)
- [UNNotification.Deliver](UNNotificationDeliver.md)
- [UNNotification.Region](UNNotificationRegion.md)
- [UNNotification.Repeats](UNNotificationRepeats.md)
- [UNNotification.Schedule](UNNotificationSchedule.md)
- [UNNotification.SetLocationTrigger](UNNotificationSetLocationTrigger.md)
- [UNNotification.SetScript](UNNotificationSetScript.md)
- [UNNotification.SetSound](UNNotificationSetSound.md)
- [UNNotification.SetTimeIntervalTrigger](UNNotificationSetTimeIntervalTrigger.md)
- [UNNotification.SetTitle](UNNotificationSetTitle.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)

This function is free to use.

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

  
[UNNotification.SetBadge](UNNotificationSetBadge.md) - [UNNotification.SetCalendarDateTrigger](UNNotificationSetCalendarDateTrigger.md)

[HTML Version](UNNotificationSetBody.shtml)