Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples
New in version: 9.0   9.1   9.2   9.3   9.4   9.5   10.0   10.1   10.2   10.3    Statistic  


Queries available services for some items.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
SharingService 10.3 Yes No No No No
MBS( "SharingService.ServicesForItems"; Flags; Item )   More


Parameter Description Example value
Flags Various flags.
Pass 1 to include images for the sharing as base64 encoded PNGs, which you can show in the GUI.
Item Pass one parameter for each item.
An item may be a container with an image, a list of URLs, a list of native file paths or styled text.
"Hello World"


Returns OK or error.


Queries available services for some items.
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.


Fill field with list of services available for items:

Set Variable [ $json ; Value: MBS("SharingService.ServicesForItems";
0; // flags, no images
// pass as many parameter with items. Empty ones will be ignore.
Sharing Services::URLs;
Sharing Services::Text;
Sharing Services::Image;
Sharing Services::File Paths) ]

If [ MBS("IsError") = 0 ]
    Set Variable [ $json ; Value: MBS("JSON.Colorize"; $json) ]
End If
Set Field [ Sharing Services::ServiceNames ; $json ]

Query services for text:

MBS( "SharingService.ServicesForItems"; 0; "Hello World" )

Example result:
"menuItemTitle" : "Mail",
"title" : "Mail",
"name" : ""
"menuItemTitle" : "Messages",
"title" : "Messages",
"name" : ""
"menuItemTitle" : "Notes",
"title" : "Notes",
"name" : ""
"menuItemTitle" : "Reminders",
"title" : "Reminders",
"name" : ""

See also

Blog Entries

Created 27th June 2020, last changed 27th June 2020

SharingService.GetEmailSubject   -   SharingService.SetEmailRecipients

Feedback: Report problem or ask question.

MBS Xojo PDF Plugins