Skip to main content
Question

Mapping JSON output from coding step to use in a webhook payload

  • January 15, 2025
  • 2 replies
  • 98 views

I’ve created a JSON payload that I want to reference in the ‘data’ section of a webhook action. I’ve triple-checked my code to make sure that the output is structured how I want.

 

My issue is that the I can’t map the output in the next step as it’s broken down into smaller arrays.

Is there a way to reference the entire output? AI seems to think that there is an issue with the Zapier caching. I’ve tried deleting steps, recreating the entire zap (with new webhooks) and disconnecting/reconnecting the Zap. 

Any help would be greatly appreciated!

This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

2 replies

  • Author
  • Beginner
  • January 15, 2025

For reference, at the end of my code I have. 

output = { "output": draftOrder };

And I would like to call the output (a JSON payload) in the webhook step.


Troy Tessalone
Zapier Orchestrator & Solution Partner
Forum|alt.badge.img+14
  • Zapier Orchestrator & Solution Partner
  • January 15, 2025

​Hi ​@josie01 

Info about how to stringify JSON: https://www.w3schools.com/js/js_json_stringify.asp