UNNotification.AddImage
-----------------------

Adds an attachment to the notification.

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

MBS( "UNNotification.AddImage"; UNNotificationRef; Image ) 

**MBS**( **"UNNotification.AddImage";** /\* Adds an attachment to the notification. \*/  
**$UNNotificationRef**; /\* The reference number of the notification.e.g. $Notification \*/   
**$Image**) /\* The container value with the image data.e.g. MyTable::MyImage \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| UNNotificationRef | The reference number of the notification. | $Notification |
| Image | The container value with the image data. | MyTable::MyImage |

### Result

Returns OK or error.

### Description

Adds an attachment to the notification.  
If you have a picture file on disk, please use [UNNotification.AddFile](UNNotificationAddFile.md) function instead.  
Writes a temp picture file to the temporary folder.  
### Examples

Add an image:

 Set Variable \[ $result ; Value: MBS ("UNNotification.AddImage"; $UserNotification ; $MyImage ) \]  
### See also

- [UNNotification.AddFile](UNNotificationAddFile.md)
- [UNNotification.Badge](UNNotificationBadge.md)
- [UNNotification.Release](UNNotificationRelease.md)
- [UNNotification.SetBadge](UNNotificationSetBadge.md)

### Release notes

- **Version 10.4**
    - Added [UNNotification.AddFile](https://www.mbsplugins.eu/UNNotificationAddFile.shtml) and [UNNotification.AddImage](https://www.mbsplugins.eu/UNNotificationAddImage.shtml) functions.

### Blog Entries

- [MBS FileMaker Plugin, version 10.4pr4](https://www.mbsplugins.de/archive/2020-08-17/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 11st August 2020 , last changed 20th August 2020

  
[UNNotification.AddFile](UNNotificationAddFile.md) - [UNNotification.AddUserInfo](UNNotificationAddUserInfo.md)

[HTML Version](UNNotificationAddImage.shtml)