Need some help figuring out how to setup a webhook properly. I have a basic server script that is just trying to log the data sent from the webhook. This is the information from them:
I would use a test endpoint here: https://webhook.site/ to check the response body of the webhook. I’d then check that against the post variables in Wappler as a start
STRICTLY speaking, the answer is no. But the way most people think of this, I suppose it is Yes.
What I mean:
Using POST (or other) variables is not dependent upon them being added to the Inputs. I use all the variables without adding to the Inputs a lot. In the example above you can easily use a set value action to output the value of $_POST.submission.id without first adding it to the Inputs
Adding something to the Input section simply allows you to select it in the dynamic pickers, which is what makes it easy downstream.
So, yes there are nested items under submission, and one of them may in fact be named data, but that is not what Baub had originally setup. Baub had used data as a parent object to the whole structure, which would not work. Removing data from the parent, will work.
ok getting close. to start with @max_gb was right about the data being an object. But I’m trying to get json_schema_errors and am not having any luck. its marked with [ ] around the entry does that mean array? then how do I pick just the one item in the array? ie how do I set the POST variable up for that?