EDAPI script step's new actions (for JS in FM)

In the last release of FileMaker Pro, we got the ability to use the Execute Data API script step for more than just ‘read’. We now can ‘create’, ‘update’, and ‘delete’.

https://help.claris.com/en/pro-help/content/execute-filemaker-data-api.html


There are great posts from content creators about this new functionality. You can review them here:
https://www.soliantconsulting.com/blog/filemaker-21-write-operations-execute-filemaker-data-api/ (Soliant Consulting)

https://youtu.be/_55O5ZUfCW0?si=zY6t4sjZELcvkQp8 (FIleMaker Training Videos)

https://scarpettagroup.com/execute-filemaker-data-api-part-1-create/ (Scarpetta Group)


In the early days of this new feature, I explored it in our weekly #Office Hours . I’ll try and find the video and post it on the YouTube channel.

But it got me thinking: would using a form in HTML be useful in creating a record in a table?


You have the extra set up of creating that form (though not too much of a problem for us, huh?), and you’d have to write scripting to do that.

But would this work?

Here are some key points:

  1. You need to tell the script step the

    1. layout (where the record will be created)

    2. action: “create”

    3. the data from the form.

  2. You need to construct a form that identifies each input field as matching to the corresponding FileMaker field.

  3. A JS function, for the ‘submit’ action of the form would need to collect the data from the form and run a FileMaker script that will perform this script step.

  4. Handle validation inside the Web viewer.

and more.


I’ve got some thoughts on this and want to share them, and will explore these ideas over the week here. But my question still stands: Would this be useful?

We will explore the idea of using an HTML form in #Office Hours this week. Come and learn more.

What are your thoughts? Are you already using this new functionality and a WV form?