Feb 28, 2024 05:08 AM
Hi all,
I am using webhooks to catch website request for our services.
On our site we have 6 pages that all have a contact form for their independent service. These are customized to the service. E.g. some will need an amount, some will need a timeframe, e.t.c.
To illustrate and simplify my issue, let's say I have two. One for Coffee and one for Apples.
We also ask the clients e-mail.
Since i am automating our quotation proces as much as possible, we want to automatically catagorize them, so that in the next step a 3rd party software knows which quote layout and text to send.
The automation is as follows.
Now this gives me a problem when I test the automation with a webhook. If i request Coffee, i get a 'fix error' on the 'create record - body amount-apple'. And vice versa.
"Amount-apple is not a valid property of body".
Of course, this is correct. If i request coffee, it will not send that other body. I could also easily fix this issue by renaming the body on the website. Or by making more automations with different webhooks.
My question though is why this should matter when I am using conditional logic? In my mind, since the request comes from the 'coffee' site, it should not flow in to the 'create record - apple' flow and therefor this should not be an issue.
Many thanks.
Feb 28, 2024 05:59 AM
Hmm, any chance you could provide some screenshots of your automation setup? I'm curious to try to recreate this and test it
Feb 28, 2024 06:09 AM - edited Feb 28, 2024 06:10 AM
Are you following all of Airtable’s restrictions for how it expects to receive the parsed JSON for an incoming webhook trigger?
For example, the top level of your JSON-encoded data needs to be an object instead of an array.
You can learn more in Airtable’s support article here.
If you don’t have the right format for Airtable, then your solution is to send your webhook data to Make’s custom webhooks, parse the data there, and then send it onto Airtable from there.