UserNotification.SetSoundName
-----------------------------

Sets sound name.

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

MBS( "UserNotification.SetSoundName"; UserNotificationReference; SoundName ) 

**MBS**( **"UserNotification.SetSoundName";** /\* Sets sound name. \*/  
**$UserNotificationReference**; /\* An user notification reference.e.g. $ref \*/   
**$SoundName**) /\* The new sound name. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| UserNotificationReference | An user notification reference. | $ref |
| SoundName | The new sound name. |  |

### Result

Returns "OK" on success.

### Description

Sets sound name.  
The name of the sound file in the resources of the application bundle to play when the notification is delivered. "DefaultSoundName" can be used to play the default Notification Center sound. A value of "" means no sound.  
See also [UserNotification.GetSoundName](UserNotificationGetSoundName.md)  
### See also

- [UserNotification.GetSoundName](UserNotificationGetSoundName.md)
- [UserNotification.GetSubTitle](UserNotificationGetSubTitle.md)
- [UserNotification.SetContentImage](UserNotificationSetContentImage.md)
- [UserNotification.SetIdentifier](UserNotificationSetIdentifier.md)
- [UserNotification.SetSubTitle](UserNotificationSetSubTitle.md)

This function is free to use.

Created 18th August 2014 , last changed 17th July 2022

  
[UserNotification.SetResponsePlaceholder](UserNotificationSetResponsePlaceholder.md) - [UserNotification.SetSubTitle](UserNotificationSetSubTitle.md)

[HTML Version](UserNotificationSetSoundName.shtml)