Skip to main content

I am trying to figure out if it is possible to leverage the entire response from an API call. My workflow is catch webhook, make a subsequent API call to a database endpoint that has an array of user information, and then use JavaScript to find a matching full name from the initial webhook within the response from the API call in the steps above. I can’t find a way to reference the entire response within the Input Data section of the Run JavaScript in Code element. Any ideas?

Hi ​@MWood 

Try using this Zap trigger: Webhook - Catch RAW Hook

Help: https://zapier.com/apps/webhook/help


Hi Troy,

 

Appreciate the quick response. I am already using the Webhook to catch the raw data set. I provided a screenshot of my workflow for reference below. What I am trying to accomplish is using the entire data set that is returned in Step 2 as an Input Data field in Step 3. Any idea how I can make this work?

 

 

 


@MWood 
Screenshots do not show the Zap trigger step to confirm which app/event are being used.

Step 2 is a filter step.

To clarify, are you trying to use the output from Zap step 1 or Zap step 2 as an input for Zap step 3?

 

 


@Troy Tessalone I am trying to use the entire result set, not a single field, from Step 3 as an Input Data field in Step 4. I am referring to it as ‘response’ in the Javascript Step 4.


@MWood 

One option would be to use a Code step to make the API request and handle the API response however you’d like.


@Troy Tessalone the JavaScript step (step 4) is a code step but the issue still persists - I need to be able to reference the entire result of the previous steps (step 3) API response. 


@MWood 

Why not use the Code step to make the API request instead of using the Webhook step?

If you make the API request in the Code step, then you can handle the response however you want.


Reply