I have a Webhook by Zapier step that is a GET request for some data to an API. It returns all of the data just fine.
The JSON that the API returns is quite a big object and I need to access this entire object in the next step in my Zap which is a “Code by Zapier” step running JavaScript.
While there is an “input Data” option where I can set the key/value’s from the GET request step, I cannot figure out how to simply set the whole object to something like this:
getRequestData = {
"one": "big",
"object": "here"
}
How can I set the entire JSON to a variable inside this step so that I can use it in there or do I really have to rebuild this entire object by adding potentially hundreds of things to the `inputData`? This would be problematic because it’s time consuming, but more so because if this object’s shape ever changes I need to update all of the input data again…
I have tried making the GET request in the code step itself, however it bombs out and I don’t get any errors back from Zapier - I’m assuming it’s some sort of CORS issue.
I appreciate any help!