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.
- Webhook
- If body Page Url = mywebsite.com/coffee
- Create record
- Workflow: Coffee (Static)
- E-mail (Dynamic, 'body e-mail')
- Amount (Dynamic, 'body amount-coffee')
- Otherwise if body Page Url = mywebsite.com/apple
- Create record
- Workflow: Apples (Static)
- E-mail (Dynamic, 'body e-mail')
- Amount (Dynamic, 'body amount-apple')
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.