WindowsUserNotification.SetImagePath
------------------------------------

Sets image path for the image to show.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [WindowsUserNotification](component_WindowsUserNotification.md) [UserNotification](component_UserNotification.md) | [7.2](newinversion72.md) | ❌ No | ✅ Yes | ❌ No | ❌ No | ❌ No |

MBS( "WindowsUserNotification.SetImagePath"; Notification; Path ) 

**MBS**( **"WindowsUserNotification.SetImagePath";** /\* Sets image path for the image to show. \*/  
**$Notification**; /\* The reference number for the Windows User Notification. \*/   
**$Path**) /\* Native file path for the image.e.g. "C:\\MyApp\\test.png" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Notification | The reference number for the Windows User Notification. | $Notification |
| Path | Native file path for the image. | "C:\\MyApp\\test.png" |

### Result

Returns OK or error.

### Description

Sets image path for the image to show.  
May not be a network path as system needs to load it independent of your permissions.   
Maybe better use image coming with application or put one in temp folder.  
  
This function requires a native path. Use [Path.FileMakerPathToNativePath](PathFileMakerPathToNativePath.md) to convert a FileMaker path to a native path if required. If you like to have the user choose the path, you can use [FileDialog](component_FileDialog.md) functions.  
### See also

- [Path.FileMakerPathToNativePath](PathFileMakerPathToNativePath.md)
- [WindowsUserNotification.GetImagePath](WindowsUserNotificationGetImagePath.md)
- [WindowsUserNotification.NewNotification](WindowsUserNotificationNewNotification.md)
- [WindowsUserNotification.ReleaseAll](WindowsUserNotificationReleaseAll.md)
- [WindowsUserNotification.SetFileName](WindowsUserNotificationSetFileName.md)
- [WindowsUserNotification.SetPriority](WindowsUserNotificationSetPriority.md)
- [WindowsUserNotification.SetRemoteId](WindowsUserNotificationSetRemoteId.md)
- [WindowsUserNotification.SetScriptName](WindowsUserNotificationSetScriptName.md)
- [WindowsUserNotification.SetTag](WindowsUserNotificationSetTag.md)
- [WindowsUserNotification.Setting](WindowsUserNotificationSetting.md)

### Example Databases

- [Win Only/Windows User Notifications](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Win%20Only/Windows%20User%20Notifications.shtml#2ScriptAnchor_)

### 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)

This function is free to use.

Created 2nd April 2017 , last changed 17th August 2017

  
[WindowsUserNotification.SetGroup](WindowsUserNotificationSetGroup.md) - [WindowsUserNotification.SetNotificationMirroring](WindowsUserNotificationSetNotificationMirroring.md)

[HTML Version](WindowsUserNotificationSetImagePath.shtml)