Starting a Claris Connect Flow from Inside FileMaker

By March 6, 2020 3 Comments

Claris Connect is a new offering from Claris that allows you to quickly and efficiently build automated workflows between different apps. Mostly those are cloud apps such as QuickBooks Online, Mailchimp, Asana,, and the like.

But Claris Connect also supports Claris FileMaker.

Claris Connect has two built-in connectors: one for its FileMaker Cloud cloud-hosted platform and one for regular FileMaker Server 18.

Built-in connectors for FileMaker Cloud and FileMaker Server 18

Figure 1. Built-in connectors for FileMaker Cloud and FileMaker Server 18

Most connectors have both Triggers and Actions. Triggers are the events that can start a flow. Actions are steps you can take as part of a flow.

The Actions are fairly straightforward to configure, and we’ll cover those in another blog post. But to trigger a flow from inside your FileMaker app is a little more involved.

Start a new flow and choose one of the two FileMaker connectors. For this walkthrough, it will be the “FileMaker Server 18v3” connector since this particular FileMaker Server is one of our AWS instances.

Since this is a new flow, the first step is always the trigger, the event that will start the flow. And as we have seen from the screenshot above, the only trigger available is a script executed by FileMaker Pro or Server, so there is only one thing to choose. Other connectors have more than one available trigger event and would show more options here.

Claris Connect Flows

Figure 2. Starting a new flow

Note that the name “Script Trigger” can be a little misleading for us FileMaker developers since we tend to use that name for FileMaker native events that can trigger a script such as OnLayoutChange or OnExit. “Script Trigger” in the context of Claris Connect just means that the flow is triggered by running the script in FileMaker.

Clicking on “Continue” brings you to the screen where you will set up the account.

Setting up the account

Figure 3. Set up the account

This really means specifying where your FileMaker Server is (its DNS name), what file the script is in and what the credentials are for accessing that FileMaker file.

Screenshot showing where the FileMaker Server wil be

Figure 4. Specify where your FileMaker Server is located

Note that back on the flow, you can hover over the name of the connection and click the little pencil icon to rename that particular connection to something meaningful in case you will set up multiple connections to different FileMaker files on different servers.

Click on the pencil icon to rename the connection

Figure 5. Click on the pencil icon to rename the connection

Claris Connect will next display some information on how to create the FileMaker Script that can trigger this flow.

Step 7 is a bit misleading since it seems to imply that you need to set up a layout event trigger to run the script. That’s not necessary; you can just run the script from the Script Workspace and use it as any regular FileMaker script as part of your normal FileMaker workflows. It certainly does not mean that you can only trigger Claris Connect flows from FileMaker layout events.

Configure the script trigger

Figure 6. Configure the script trigger

The URL at the bottom will be used in an “Insert from URL” script step. In essence, you will be calling Claris Connect like you would call any other API.

The script would look something like this. Line 6 is important: Claris Connect expects to receive a JSON; it needs to contain a key named “action” with the value of “script.” The rest of the JSON can be whatever you need it to be, any data you need for the flow. However, Claris Connect will only process the incoming request if it finds that “action” key with the proper value.

Screenshot of adding some data to the JSON

Figure 7. Adding some data to the JSON

Line 8 adds some data to the JSON: three keys named “who,” “message,” and “due_date” so that the full JSON that is sent to Claris Connect looks like this:

Full JSON that sent to Claris Connect

Figure 8. Full JSON that is sent to Claris Connect

Back in Claris Connect, when you add an action to the flow, you can then pick from those JSON data elements and guide that data through the rest of your business logic.

In short, starting a Claris Connect flow from inside FileMaker is very much like calling any other API. The process targets the unique URL that Claris Connect generates for your flow and sends it JSON with all the data you will need for your flow plus the one “action” key that Claris Connect needs.

Starting a Claris Connect flow

Figure 9. Starting a Claris Connect flow from inside FileMaker

Next Steps for Your FileMaker Solution

If you have any questions about how to leverage Claris Connect for your FileMaker solution or on the new Claris offering in general, please reach out to our team. We’re happy to help you make your applications more robust and effective for your business.

Wim Decorte

Wim Decorte

Wim is a Senior Technical Solution Architect at Soliant. He is a FileMaker 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17 and 18 Certified FileMaker Developer and the author of numerous Tech Briefs and articles on FileMaker Server. Wim is one of the very few multiple FileMaker Excellence Award winners and was most recently awarded the FileMaker Community Leader of the Year award at the 2015 FileMaker Developer Conference. He is also a frequent speaker at the FileMaker Developer Conference and at FileMaker Developer groups throughout the world. In addition to being a renowned expert on FileMaker Server, Wim also specializes in integrating FileMaker with other applications and systems. His pet project is the open source fmDotNet connector class that he created.


  • Avatar joost kingma says:

    Hi Wim,
    I am trying to follow these instructions, but get stuck at connecting to the FileMaker server. I get an error message Invalid credentials. Please verify your credentials.
    I have setup a test server on AWS for this purpose. FileMaker Data api is enabled on the server. I have the FM default SSL certifcate installed. I do use the ip adres in the domain field, since the server does not have a domain name. Can that be a problem?
    For testing I use the FM Contacts template. Credentials for this file are correct.
    Any thoughts are appreciated.
    Thanks, Joost

    • Wim Decorte Wim Decorte says:

      The Data API – which is what Claris Connect uses – does not work unless there is a valid custom SSL certificate. The default FMI certificate does not encrypt client-to-server communications anymore (it used to a few versions ago, but not anymore). So you cannot use the IP address or rely on the default cert. You have to get a real SSL cert.

  • Avatar joost kingma says:

    Thanks Wim, installed a custom SSL certificate. connection is working now.

Leave a Reply

Need to adjust your business processes quickly? We're helping clients use technology to keep their teams productive and running smoothly in these times of uncertainty. Our team can guide yours if you need help in these areas.

Talk to a Consultant