Sep 07, 2022 02:57 AM
Hi.
i have a webhook to polly API to get poll responses. Every time a new response is filled in, I want to add the vote to airtable. It worked nicely using inputConfig when there was just one response, but when I have multiple responses - I can’t access any item in the results array from the inputConfig UI drop down.
Unsure how to access the body received by the webhook, I was. using the input Config UI to get the values i need to process in the script… but its not showing me what is in the results array…
This is what the webhook is receiving (data from documentation):
{
"id":"8971234khjasdf987asdfkjnq24",
"question":{
"id":"sBkL6C2BK7aWdwtTF",
"text":"Rate your Employee Orientation experience.",
"results":[
{
"id":"sBkL6C2BK7aWdwtTF",
"created_at":"2018-03-27 22:41:28.939Z",
"user_id":"U7718512",
"user_name":"Alex",
"text":"it was ok",
"choice_id":1,
"weight":null,
"rank":null
},
{
"id":"sBkL6C2BK7aWdwtTF",
"created_at":"2018-03-27 22:43:28.939Z",
"user_id":"U7716512",
"user_name":"Paul",
"text":"it was ok",
"choice_id":0,
"weight":null,
"rank":null
}
]
}
}
How can I access the results array?
Sep 07, 2022 03:16 AM
Did you re-test your automation trigger?
Sep 07, 2022 04:04 AM
yes
Do you think its a similar thing to this? Webhook payload - still limited access to nested data? - #19 by Olpy_Acaflo
Sep 07, 2022 04:13 AM
Possibly, I don’t know. As I recommended in that thread, you can easily setup advanced webhooks in Make: