Question

Webhooks: how to get payload data with Javascript code

  • 10 January 2023
  • 3 replies
  • 99 views

I need to test webhooks so I need to test the payload structure and ensure that there are no missing parameters there. 
I did the first part with Zapier Webhooks. 
For the second part I’m not sure about Javascript Code by Zapier, what should I add in input and output to catch the hook and check the structure?
Thanks


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

3 replies

Userlevel 7
Badge +12

@mere 

Zapier code blocks cannot catch webhooks. What are you trying to use the code block for? 

@mere 

Zapier code blocks cannot catch webhooks. What are you trying to use the code block for? 

I used Webhooks by Zapier

Userlevel 7
Badge +14

Hi @mere 

Good question.

Have you reviewed the available Zap help articles for using Webhooks in Zaps?

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

 

Maybe try using this Zap trigger: