Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4   13.5    Statistic    FMM    Blog  

SharingService.SetTrigger

Sets a trigger to call for the share.

Component Version macOS Windows Linux Server iOS SDK
SharingService 10.3 ✅ Yes ❌ No ❌ No ❌ No ❌ No
MBS( "SharingService.SetTrigger"; Filename; ScriptName )   More

Parameters

Parameter Description Example
Filename The database file name where the script is located. "test.fmp12"
ScriptName The script name. "MyScript"

Result

Returns OK or error.

Description

Sets a trigger to call for the share.
This is called once after you call SharingService.ShareItems to report the result, but only if SharingService.ShareItems returns OK.
You get a script parameter with a JSON containing a status key with the status, either success, cancel or failed. We include error dictionary with details on a failure and service key with details on the service.

See also

Example Databases

Blog Entries

This function checks for a license.

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


SharingService.SetEmailSubject - SharingService.ShareItems

💬 Ask a question or report a problem