Solved

Webhook pass the complete event in body

  • 27 June 2023
  • 5 replies
  • 82 views

Badge

Hey, is it possible to pass the entire event in a webhook and not just specific fields? 
Any way I try get an invalid json error

Thanks

icon

Best answer by Brian Turcotte 27 June 2023, 16:55

View original

5 replies

Userlevel 7
Badge +36

Hi @matanper!

Per our documentation on webhooks here:

For any metric-triggered flows, you can pass profile properties and dynamic event data associated with the triggering event. For instance, for a Placed Order event, you can include aspects such as the item(s) left behind, their price, the total for the cart, as well as the customer’s name and address.

 

There’s no way to copy and paste the entire event in the body of the webhook, but you can fill out a simulated version with the available event data. Just make sure you’re clicking View profile and event variables in the body statement and selecting the variables from there.

 

I hope this helps to clarify, and thanks for using the Community!

- Brian

Badge

Hi @matanper!

Per our documentation on webhooks here:

For any metric-triggered flows, you can pass profile properties and dynamic event data associated with the triggering event. For instance, for a Placed Order event, you can include aspects such as the item(s) left behind, their price, the total for the cart, as well as the customer’s name and address.

 

There’s no way to copy and paste the entire event in the body of the webhook, but you can fill out a simulated version with the available event data. Just make sure you’re clicking View profile and event variables in the body statement and selecting the variables from there.

 

I hope this helps to clarify, and thanks for using the Community!

- Brian

Thanks for the quick response 😃

Too bad it’s impossible… is there a way to add support for custom django filters? (like this https://gist.github.com/jtiai/5002929)

 

Userlevel 7
Badge +36

Hi @matanper!

You certainly can! Here’s our docs on the ability/limitations of using Django logic:

Best,

Brian

Badge

Hey @Brian Turcotte, The link isn’t working

Userlevel 7
Badge +36

Hi @matanper!

Sorry about that! Should be fixed now. 

 

Best,

Brian

Reply