UNNotification.AddUserInfo
--------------------------

Adds user info.

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

MBS( "UNNotification.AddUserInfo"; UNNotificationRef; Key; Value ) 

**MBS**( **"UNNotification.AddUserInfo";** /\* Adds user info. \*/  
**$UNNotificationRef**; /\* The reference number of the notification.e.g. $Notification \*/   
**$Key**; /\* The key to use.e.g. "RecordID" \*/   
**$Value**) /\* The value to use.e.g. Get(RecordID) \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| UNNotificationRef | The reference number of the notification. | $Notification |
| Key | The key to use. | "RecordID" |
| Value | The value to use. | Get(RecordID) |

### Result

Returns OK or error.

### Description

Adds user info.  
This allows you to include any data you like with the notification and later query it.  
### Examples

Add record ID to notification:

 MBS ( "UNNotification.AddUserInfo"; $Notification ; "RecordID"; Get(RecordID) )  
### See also

- [UNNotification.SetActionScript](UNNotificationSetActionScript.md)
- [UNNotification.SetScript](UNNotificationSetScript.md)
- [UNNotification.UserInfoKeys](UNNotificationUserInfoKeys.md)
- [UserNotification.GetUserInfo](UserNotificationGetUserInfo.md)
- [UserNotification.SetUserInfo](UserNotificationSetUserInfo.md)

### Example Databases

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

### 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.AddImage](UNNotificationAddImage.md) - [UNNotification.AuthorizationError](UNNotificationAuthorizationError.md)

[HTML Version](UNNotificationAddUserInfo.shtml)