So, I littarly have no idea why I cant parse data correctly from a backend webhook.
Here is the JSON:
{
"eventId": "980e3145-a7c8-4e93-b613-d0d78ec6fe09",
"eventType": "FORM_RESPONSE",
"createdAt": "2023-02-02T10:39:55.322Z",
"data": {
"responseId": "W2aXAe",
"submissionId": "W2aXAe",
"respondentId": "OQjBDp",
"formId": "wkboXe",
"formName": "Dweller Search",
"createdAt": "2023-02-02T10:39:55.000Z",
"fields": [
{
"key": "question_wMqWjl",
"label": "Först, hur ser ditt kontorsbehov ut idag?",
"type": "MULTIPLE_CHOICE",
"value": "dc791805-2217-4cf5-b738-2678c90c9971",
"options": [
{
"id": "dc791805-2217-4cf5-b738-2678c90c9971",
"text": "Jag söker ett permanent privat kontor eller dedikerade platser"
},
{
"id": "66d86429-cde4-49a1-b1a3-b64af24543f8",
"text": "Jag söker kontorsplatser och/eller mötesrum vid behov"
},
{
"id": "bd578bc4-27d2-4728-9d83-36b455ccdd7c",
"text": "En kombination av båda"
}
]
},
{
"key": "question_mBlMxK",
"label": "",
"type": "INPUT_TEXT",
"value": null
},
{
"key": "question_m6ya5A",
"label": "",
"type": "INPUT_TEXT",
"value": null
},
{
"key": "question_mBlMge",
"label": "Vad för typ av mer permanent kontorslösning är mest intressant för dig?",
"type": "MULTIPLE_CHOICE",
"value": "0c23427e-5965-41a4-a90d-0482a095ab88",
"options": [
{
"id": "5119da83-cf59-48c5-97a6-436a5c51f71e",
"text": "Öppna eller permanenta platser i landskap"
},
{
"id": "0c23427e-5965-41a4-a90d-0482a095ab88",
"text": "Privat kontor eller rum"
}
]
},
{
"key": "question_nPWjl0",
"label": "Vid behov, vad söker du för typ av kontor då?",
"type": "CHECKBOXES",
"value": null,
"options": [
{
"id": "969762e7-1c76-4cfa-9ac1-7aeb01a1aedd",
"text": "Coworking per dag"
},
{
"id": "b97b196f-e433-46cc-b445-874de94872aa",
"text": "Privat kontor per dag"
},
{
"id": "7a29e45e-2d24-4832-834d-a29f4e976c03",
"text": "Mötesrum vid behov"
},
{
"id": "c3cc74df-8722-4df3-be3f-571a8a81c20b",
"text": "Event vid behov"
}
]
},
{
"key": "question_nPWjl0_969762e7-1c76-4cfa-9ac1-7aeb01a1aedd",
"label": "Vid behov, vad söker du för typ av kontor då? (Coworking per dag)",
"type": "CHECKBOXES",
"value": null
},
{
"key": "question_nPWjl0_b97b196f-e433-46cc-b445-874de94872aa",
"label": "Vid behov, vad söker du för typ av kontor då? (Privat kontor per dag)",
"type": "CHECKBOXES",
"value": null
},
{
"key": "question_nPWjl0_7a29e45e-2d24-4832-834d-a29f4e976c03",
"label": "Vid behov, vad söker du för typ av kontor då? (Mötesrum vid behov)",
"type": "CHECKBOXES",
"value": null
},
{
"key": "question_nPWjl0_c3cc74df-8722-4df3-be3f-571a8a81c20b",
"label": "Vid behov, vad söker du för typ av kontor då? (Event vid behov)",
"type": "CHECKBOXES",
"value": null
},
{
"key": "question_3ErzLL",
"label": "Vad för typ av kontorsplatser är det ni eftersöker vid behov?",
"type": "CHECKBOXES",
"value": null,
"options": [
{
"id": "ebfa2aab-6c9e-47ae-afe2-9e25c6c8eb3e",
"text": "Coworking per dag"
},
{
"id": "c4debc01-e61b-4b3c-82d6-346dcf65a340",
"text": "Privat kontor per dag"
},
{
"id": "99883caa-73c9-4bc6-a764-f2cd749d11d8",
"text": "Mötesrum vid behov"
},
{
"id": "c78f876b-ae50-4642-84fa-263632f7778f",
"text": "Event vid behov"
}
]
},
{
"key": "question_3ErzLL_ebfa2aab-6c9e-47ae-afe2-9e25c6c8eb3e",
"label": "Vad för typ av kontorsplatser är det ni eftersöker vid behov? (Coworking per dag)",
"type": "CHECKBOXES",
"value": null
},
{
"key": "question_3ErzLL_c4debc01-e61b-4b3c-82d6-346dcf65a340",
"label": "Vad för typ av kontorsplatser är det ni eftersöker vid behov? (Privat kontor per dag)",
"type": "CHECKBOXES",
"value": null
},
{
"key": "question_3ErzLL_99883caa-73c9-4bc6-a764-f2cd749d11d8",
"label": "Vad för typ av kontorsplatser är det ni eftersöker vid behov? (Mötesrum vid behov)",
"type": "CHECKBOXES",
"value": null
},
{
"key": "question_3ErzLL_c78f876b-ae50-4642-84fa-263632f7778f",
"label": "Vad för typ av kontorsplatser är det ni eftersöker vid behov? (Event vid behov)",
"type": "CHECKBOXES",
"value": null
},
{
"key": "question_mKZdVV",
"label": "För ungefär hur många söker personer söker du kontor?",
"type": "INPUT_NUMBER",
"value": 33
},
{
"key": "question_m6ya7k",
"label": "När önskar du tillträda ert nya kontor?",
"type": "MULTIPLE_CHOICE",
"value": "34971944-109f-451c-88b8-b6634ef1ea7e",
"options": [
{
"id": "b9a6768c-47d0-439b-9a70-a6604a3f8958",
"text": "Så snart som möjligt"
},
{
"id": "0bf20ff4-2c02-4ac4-8282-71d0e625311a",
"text": "Inom 1 månad"
},
{
"id": "9599446e-0b22-405c-8509-addfa885e112",
"text": "Inom 3 månader"
},
{
"id": "34971944-109f-451c-88b8-b6634ef1ea7e",
"text": "Inom 6 månader"
},
{
"id": "160b93c3-a95b-48e3-9b90-9033459fd26c",
"text": "Jag vet inte riktigt"
},
{
"id": "9d5a80c4-94e3-4a82-a78b-eca7c6920020",
"text": ""
}
]
},
{
"key": "question_w7z6WZ",
"label": "Vart söker du kontor?",
"type": "MULTIPLE_CHOICE",
"value": "5e3ac7f9-ca95-41b6-9da8-8633c4b76ce8",
"options": [
{
"id": "b48ed9a0-bda6-4122-af97-69167e2fbcad",
"text": "Stockholm"
},
{
"id": "0a78b0c0-4344-4e94-8e7a-900c0ae9c49b",
"text": "Göteborg"
},
{
"id": "c694bece-3b5c-4847-9342-97587beca321",
"text": "Malmö"
},
{
"id": "3d8d41e2-09d9-4f1e-ac8f-4a4c00f88671",
"text": "Uppsala"
},
{
"id": "3ee488f3-28ba-47df-9868-8ecefc332aa1",
"text": "Västerås"
},
{
"id": "66277a35-57b2-477a-9f01-ddc879ef27d5",
"text": "Örebro"
},
{
"id": "5e3ac7f9-ca95-41b6-9da8-8633c4b76ce8",
"text": "Linköping"
},
{
"id": "54fe3f3f-72c7-4531-be62-4e963f3ecbc4",
"text": "Annan plats"
}
]
},
{
"key": "question_mVA2lJ",
"label": "Okej, vilken stad är det du söker kontor i?",
"type": "INPUT_TEXT",
"value": null
},
{
"key": "question_nPeVE5",
"label": "Är det något eller några områden i @Vart söker du kontor? där du specifikt söker kontor?",
"type": "TEXTAREA",
"value": "fdsgsdf"
},
{
"key": "question_wAG1dD",
"label": "Är det något eller några områden i @Okej, vilken stad är det du... där du specifikt söker kontor?",
"type": "TEXTAREA",
"value": null
},
{
"key": "question_nWBxoj",
"label": "Vad är din ungefärliga budget per månad??",
"type": "INPUT_NUMBER",
"value": 534534
},
{
"key": "question_3qM0v8",
"label": "Finns det något mer som vi behöver veta?",
"type": "TEXTAREA",
"value": "fdgsg"
},
{
"key": "question_wQWPkl",
"label": "Vad heter du?",
"type": "INPUT_TEXT",
"value": "gfdgs"
},
{
"key": "question_n9ybMK",
"label": "Efternamn",
"type": "INPUT_TEXT",
"value": "dsfgsdf"
},
{
"key": "question_melkvJ",
"label": "Vad har du för e-post?",
"type": "INPUT_EMAIL",
"value": "gkfjdldf@gmail.com"
},
{
"key": "question_nWBx1L",
"label": "Om du vill att vi ska ringa dig, vad för telefonummer har du?",
"type": "INPUT_PHONE_NUMBER",
"value": "+46123123123"
},
{
"key": "question_wag7vW",
"label": "Vad heter ditt företag?",
"type": "INPUT_TEXT",
"value": "fgfdsg"
},
{
"key": "question_m6yaMo",
"label": "Vad har ditt företag för organisations-nummer?",
"type": "INPUT_NUMBER",
"value": 34534534
}
]
}
}
The call is as initialised:
I can get data from top level fields:
But as soon as I try to drill down nothing is saved on creating a thing.
Issues at hand:
I cant select ‘field’ by ‘key’ and then ‘value’. :filtered (key = “”) does not work and is always returned empty. :first item or :last item works fine tho. Since ‘value’ can be an array I even user :first item there, no dice.
How shall I handle key/value setups as seen in in key question_m6ya7k where the value is the ID and I want to fetch the text?
I’m I missing something. I have tried a million setups including filtered, contains, filtered in multiple layers, nothing seems to work.