I am calling an API that produces a sizable JSON response. Zapier is trying to output most of the leaf nodes as values, but I want to just take the entire body into the next step. Is this possible?
Hi
Try this configuration with 2 Zaps.
Zap 1
- Trigger: ???
- Action: YOUR API Request
- Action: Webhook - Custom Request (POST)
Zap 2
- Trigger: Webhook - Catch Raw Hook
- Action: ???
Sorry, not sure I follow. I have a Webhooks by Zapier - Custom Request which produces the lengthy response.
Can I just get the body raw?
Zapier automatically parses the JSON response from an API request.
So you’d need to use the above method to chain together Zaps in order to get the RAW JSON response from the API request.
I was able to piece it together. You end the Zap with a Webhooks by Zapier - Custom Request which POST’s to the 2nd Zap’s Webhook. Thanks!
{'data__item__uuid': '', 'data__item__parentUuid': '', 'data__item__uuidType': 'organization', 'data__item__personalize': True, 'data__item__title': 'test', 'data__item__internalTitle': 'test', 'data__item__description': '', 'data__item__type': 'standard'...
Are you using this trigger for Zap 2: Catch Raw Hook
Example of how I have the Zaps configured...
Zap 1
Zap 2
Data from Zap 2 trigger with RAW Body in JSON format
Zap 1, step 5
Zap 1, stpe 6
Zap 2, step 1
Your screenshot shows the JSON RAW data in the Zap 2 trigger, what are we missing?
https://uploads-us-west-2.insided.com/zapier-ca/attachment/e2b094ad-394c-4a00-8efb-909090ce459b.png
{
"data": {
"item": {
"uuid": "xxx",
"parentUuid": "",
"uuidType": "organization",
"personalize": true,
"title": "xxx",
"internalTitle": "xxx",
"description": "",
...
Is the data not usable in the received format for Zap 2, Step 1?
May have to do with how the data is being returned from your Zap 1, Step 5.
The returned data from Zap 1, Step 5, is nested within a “data” (first screenshot below) that is then being sent in a “Data” object (second screenshot below) for Zap 1, Step 6, which may be causing the data to be manipulated.
May want to open a ticket with Zapier Support for further guidance: https://zapier.com/app/get-help
Is the data not usable in the received format for Zap 2, Step 1?
It is not. I need to get the same payload and send it to another API call.
Just opened a ticket.
Hi
Try this
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.