Skip to main content
Question

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


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!

Did this topic help you find an answer to your question?

2 replies

  • Author
  • Beginner
  • 3 replies
  • 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
Forum|alt.badge.img+14

​Hi ​@josie01 

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