Jump to content

Calling Scripts with Data Api


This topic is 1355 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • 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!

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This topic is 1355 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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