Ach, on second examination that does not seem to be the solution! I’ve cleaned up the email field name and still getting the same error. I’m not sure what they body.filter.or[0].email.equals
etc. notation means.
Here are the various outputs as
@samliew suggested:
Full scenario:
blueprint of current version of Wix Bookings webhook to Notion CRM scenario.json (358.4 KB)
Webhook payload (JSON passthru enabled):
[ { "value": "{\"data\":{\"amount_due\":\"0.0\",\"staff_member_name\":\"Robert McKay\",\"start_date\":\"{\\\"timeZone\\\":\\\"America/Los_Angeles\\\",\\\"timestamp\\\":\\\"2023-12-21T02:25:00Z\\\"}\",\"contact.Name.Last\":\"McTest\",\"orderId\":\"39a391f3-adb2-4603-801f-484a9967ca0e\",\"contact.Address[0].City\":\"\",\"service_url\":\"https://www.igniteacademic.coach/service-page/coffee-chat\",\"service_name\":\"Coffee Chat\",\"contact.Email[0]\":\"testy@mctest.com\",\"contact.Address[1].Street\":\"\",\"60d33f60-c797-4be9-8dbf-2eca65483efd\":\"\",\"contact.Address[1].Zip\":\"05491\",\"staff_member_email\":\"rjmckayiv@gmail.com\",\"end_date\":\"{\\\"timeZone\\\":\\\"America/Los_Angeles\\\",\\\"timestamp\\\":\\\"2023-12-21T02:40:00Z\\\"}\",\"currency\":\"USD\",\"contact.Name.First\":\"Testy\",\"contact.Address[0].Street\":\"\",\"service_id\":\"27c712bf-0241-4d5a-ae03-e2a9f3f8ec65\",\"online_conference_url\":\"https://meet.google.com/mhk-oymf-qwk\",\"contact.Address[1].Country\":\"US\",\"contact.Phone[0]\":\"18027934459\",\"contact.Address[0].Zip\":\"\",\"online_conference_password\":\"\",\"contact.Id\":\"6bf338bd-7120-471b-a868-59565e21d330\",\"contact.Address[1].City\":\"\",\"metaSiteId\":\"32b7b09c-c620-4105-a72b-811a75adf055\"}}" } ]
JSON module output (restructured after text parser cleans email field key of “[0]” portion):
[ { "data": { "amount_due": "0.0", "staff_member_name": "Robert McKay", "start_date": "{\"timeZone\":\"America/Los_Angeles\",\"timestamp\":\"2023-12-21T02:25:00Z\"}", "contact.Name.Last": "McTest", "orderId": "39a391f3-adb2-4603-801f-484a9967ca0e", "contact.Address[0].City": "", "service_url": "https://www.igniteacademic.coach/service-page/coffee-chat", "service_name": "Coffee Chat", "contact.Email": "testy@mctest.com", "contact.Address[1].Street": "", "60d33f60-c797-4be9-8dbf-2eca65483efd": "", "contact.Address[1].Zip": "05491", "staff_member_email": "rjmckayiv@gmail.com", "end_date": "{\"timeZone\":\"America/Los_Angeles\",\"timestamp\":\"2023-12-21T02:40:00Z\"}", "currency": "USD", "contact.Name.First": "Testy", "contact.Address[0].Street": "", "service_id": "27c712bf-0241-4d5a-ae03-e2a9f3f8ec65", "online_conference_url": "https://meet.google.com/mhk-oymf-qwk", "contact.Address[1].Country": "US", "contact.Phone[0]": "18027934459", "contact.Address[0].Zip": "", "online_conference_password": "", "contact.Id": "6bf338bd-7120-471b-a868-59565e21d330", "contact.Address[1].City": "", "metaSiteId": "32b7b09c-c620-4105-a72b-811a75adf055" } } ]
As you can see, other fields also have these weird square brackets on them, so those could be cleaned too if necessary.
Since I’m only processing the email field though in the subsequent Notion module, it doesn’t seem that the “[0]” is in fact the problem.
Other thoughts welcome! I seem to be well out of my depth here.