I am experimenting with Webhooks to move data back and forth between bases.
I just want to make sure what I am seeing/doing is necessary.
When I setup a test POST from an external tool to test the webhook, any data elements defined the JSON are created as values in javascript editor. However, I would prefer to read the entire json object as new fields may become necessary.
What I did was create an object that looked like this:
{ "theData" : "Anything" }
I tested the webhook and “theData” was available to the script editor.
I then created a more representative object like this:
{ "theData" : {
"fieldOne" : "Some data",
"fieldTwo" : "More data",
"fieldThree" : "and even more data"
}
}
This works fine and my code is working. Is this how I have to set it up?
If I send the second structure as a test, the script editor forces me to select one of the nested fields. I cannot select the top level key.
It’s not the worst thing to have to do but it does seem like a bit of an extra step.
Thanks.