SharingService.ShareValues
--------------------------

Shares text or containers with services.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [SharingService](component_SharingService.md) | [15.3](newinversion153.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ❌ No |

MBS( "SharingService.ShareValues"; ServiceName; Item... ) 

**MBS**( **"SharingService.ShareValues";** /\* Shares text or containers with services. \*/  
**$ServiceName**; /\* The service name to use.  
Pass empty text to show menu at mouse cursor and let the user choose.e.g. "" \*/   
**$Item...**) /\* Pass one parameter for each item.  
An item may be a container with an image or styled text.e.g. "Hello World" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| ServiceName | The service name to use.   Pass empty text to show menu at mouse cursor and let the user choose. | "" |
| Item... | Pass one parameter for each item.   An item may be a container with an image or styled text. | "Hello World" |

### Result

Returns OK or error.

### Description

Shares text or containers with services.  
You can let the user pick the service or pass it as service name.  
Pass as many parameters as needed to include all URLs, native file paths, styled text or container values with images to the function as needed.  
  
Below a few sample service names, but there may be more installed on your computer.  
  
| Name | Title |
|---|---|
| com.apple.messages.ShareExtension | Messages |
| com.apple.Notes.SharingExtension | Notes |
| com.apple.reminders.sharingextension | Reminders |
| com.apple.share.AirDrop.send | AirDrop |
| com.apple.share.Mail.compose | Mail |
| com.apple.share.System.add-to-iphoto | Add to Photos |

  
Same as [SharingService.ShareItems](SharingServiceShareItems.md), but doesn't accept file paths or URLs.  
  
This function takes variable number of parameters. Pass as much parameters as needed separated by the semicolon in FileMaker.  
Please repeat Item parameter as often as you need.  
### Examples

Send text to Apple Mail:

 Set Variable \[ $r ; Value: MBS ( "[SharingService.SetEmailSubject](SharingServiceSetEmailSubject.md)"; "Hello World" )  
Set Variable \[ $r ; Value: MBS ( "[SharingService.SetEmailRecipients](SharingServiceSetEmailRecipients.md)"; "test@tester.test¶other@other.test")  
Set Variable \[ $r ; Value: MBS ( "SharingService.ShareValues"; "com.apple.share.Mail.compose"; "Hello World" ) \]  
### See also

- [SharingService.SetEmailRecipients](SharingServiceSetEmailRecipients.md)
- [SharingService.SetEmailSubject](SharingServiceSetEmailSubject.md)
- [SharingService.ShareHTML](SharingServiceShareHTML.md)
- [SharingService.ShareItems](SharingServiceShareItems.md)

### Release notes

- **Version 15.3**
    - Added [SharingService.ShareValues](https://www.mbsplugins.eu/SharingServiceShareValues.shtml) function to pass text, that looks like an URL.

### Blog Entries

- [MBS FileMaker Plugin 15.3 News](https://www.mbsplugins.de/archive/2025-07-29/MBS_FileMaker_Plugin_153_News/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 15.3pr1](https://www.mbsplugins.de/archive/2025-06-01/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 21st May 2025 , last changed 29th July 2025

  
[SharingService.ShareItems](SharingServiceShareItems.md) - [Shell.AddArgument](ShellAddArgument.md)

[HTML Version](SharingServiceShareValues.shtml)