UserNotification.SetUserInfo
----------------------------

Stores Application-specific user info that may be retrieved later.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [UserNotification](component_UserNotification.md) | [2.8](newinversion28.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ❌ No |

MBS( "UserNotification.SetUserInfo"; UserNotificationReference; Key; Value ) 

**MBS**( **"UserNotification.SetUserInfo";** /\* Stores Application-specific user info that may be retrieved later. \*/  
**$UserNotificationReference**; /\* An user notification reference.e.g. $ref \*/   
**$Key**; /\* The key for the new entry.e.g. "RecordID" \*/   
**$Value**) /\* The value for the new entry.e.g. $RecordID \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| UserNotificationReference | An user notification reference. | $ref |
| Key | The key for the new entry. | "RecordID" |
| Value | The value for the new entry. | $RecordID |

### Result

Returns "OK" on success.

### Description

Stores Application-specific user info that may be retrieved later.   
You can store several text values with different keys.  
The userInfo should be of reasonable serialized size (less than 1k) or an exception will be thrown.  
This way you can pass details to the activation/deliver scripts.  
See also [UserNotification.GetUserInfo](UserNotificationGetUserInfo.md)  
### See also

- [UNNotification.AddUserInfo](UNNotificationAddUserInfo.md)
- [UserNotification.GetResponse](UserNotificationGetResponse.md)
- [UserNotification.GetUserInfo](UserNotificationGetUserInfo.md)
- [UserNotification.SetDidActivateNotificationScript](UserNotificationSetDidActivateNotificationScript.md)
- [UserNotification.SetDidDeliverNotificationScript](UserNotificationSetDidDeliverNotificationScript.md)
- [UserNotification.SetIdentifier](UserNotificationSetIdentifier.md)
- [UserNotification.SetSubTitle](UserNotificationSetSubTitle.md)

This function is free to use.

Created 18th August 2014 , last changed 18th August 2014

  
[UserNotification.SetTitle](UserNotificationSetTitle.md) - [UserNotification.deliverNotification](UserNotificationdeliverNotification.md)

[HTML Version](UserNotificationSetUserInfo.shtml)