Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Calling Scripts with Data Api

Featured Replies

  • Newbies

Good day 

I'm trying to figure out how I can trigger a data dump script via the data api.

Quote

/fmi/data/version/databases/database-name/layouts/layout-name/script/script-name

version – the FileMaker Data API version requested, either v1 or vLatest
database-name – the name of the hosted database
layout-name – the name of the layout to use as the context for running the script
script-name - the script that you want to run

I checked the documentation, but couldn't quite wrap my head around the layout part. The script I want to run basically runs an ExecuteSQL statement and dumps the data to csv. Do I need to add it to a layout somehow?  

Any assistance would be greatly appreciated!

My understanding is that the ExecuteSQL statement will not rely upon the context of the layout, so any layout will do.

FileMaker layouts are all about context, and you must be on a layout to do anything; but not everything needs context.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.