Creating something purpose-built in FileMaker? You can sent data off to Mechanic for processing, allowing you to tightly integrate your database application with Shopify.
1. Create a Mechanic task, and a webhook to match.
See our tutorial on this subject: Getting started with webhooks
2. Format your FileMaker data as a querystring.
To send along these values...
... create a string that looks like this:
3. Adapt this FileMaker script as needed.
Append your querystring of data to the Mechanic webhook URL. When finished, your script should look something like this:
Here's a text version that you can copy/paste:
Set Variable [ $~Data ;
Value: "https://firstname.lastname@example.org&id=12345" ]
Insert from URL [ Select ; With dialog: Off ; $$~CURLValue ; $-Data ; CURL options: "-I -X POST " & $-Data ;
Do not automatically encode URL ]
Show Custom Dialog [ "Result" ;
"Result: " & $$-CURLValue &¶& "Errors:¶" & Get( LastError ) & "¶" & Get( LastExternalErrorDetail ) ]