API Webhook Request
# 🤝help
f
How do you know that its stored in event.payload.query.firstname?
It seems to be empty
Did you run it from the webhook trigger
f
Alrighty, perfect
Its stored in event.payload.body.firstname
s
is there a problem with the json format?
f
Its stored in event.payload.body.firstname
s
okay
f
Let me know if that works
s
same error again
But I might be doing something wrong, I am just starting the conversation from start instead of the trigger, so that might be error?
f
Did you run it from the webhook trigger or start?
That is the error
f
Yea I know. Its a bug. It will probably not get fixed before the team gets back on Monday.
s
👍 Thank you very much for your help
f
You can try and add an execute code card to your flow, after the webhook trigger. This execute code card would contain this code:` console.log('First Name:', event.payload.body.firstname); console.log('Last Name:', event.payload.body.lastname); console.log('Email:', event.payload.body.email); console.log('Phone:', event.payload.body.phone);`
Then you should see everything in the logs
b
yes, i have the same problem. google chrome, can not select an event.
There is an additional error here that confused me a lot: when i want to retrieve data from the webhook trigger, to write it into a table like this: {{event.payload.body.id}} then it is marked in red and it says "Type error" "Cannot read properties". Now in my desperation I just tried and went ahead anyways, and voila, there is no real problem, it writes the payload into the table...
6 Views