Artboard
OttoFMS Features

FileMaker File Redirect

Generate links that open a FileMaker file and run a script with custom arguments, ideal for OAuth redirects and web-triggered actions.

OttoFMS exposes a url to redirect a user to a FileMaker file and to run a script upon opening that file. This can be useful for OAuth redirects within FileMaker, kicking off a specific action from an external link, or for anything where you may need to pass dynamic arguments to FileMaker from the web.

The FileMaker File Redirect feature is available in OttoFMS 4.7.0 and later.

Usage

The Redirect URL has the following format:

https://<server>/otto/redirect/fm/[filename]/[script]?arg1=[value1]&arg2=[value2]&...

Example:
https://my.server.com/otto/redirect/fm/Invoices/ShowInvoice?id=24

To run a script upon opening a file from the redirect url, the user must have the fmurlscript extended privilege.

Arguments

  • filename: The name of the FileMaker file to open.
  • script: The name of the script to run.
  • arg: The arguments to pass to the script. These values are passed into the script as variables with the name of the parameter in the query (eg. ?token=abc123 in the url becomes $token="abc123" in the script).

The script argument is optional. A redirect link with just a filename and no script (eg. https://my.server.com/otto/redirect/fm/Invoices) will simply open the file without running a script.

If the file doesn't open automatically

If the automatic open doesn't work, the redirect takes you to a landing page where you can try opening the link again. You can also specify your FileMaker Pro version (eg. 19, 20, or 21) so the link opens using the matching version-specific URL scheme. Leaving the version field blank uses the default fmp:// link.

Was this page helpful?

On this page