APIs & Integrations

MHlavacka
Member | Platinum Partner
Member | Platinum Partner

Pass data to webhook

Hi,

 

I have a webhook called every time a certain property on any Deal changes.  The call gets executed, but no data are actually POSTed - HubSpot makes a POST request to my external url, but with no data in it.  

I need to get the Deal id of the deal that was updated (and called the webhook) for further processing. How could I get it? Have I maybe just overlooked some part of the documentation?

Thanks for any help 🙂 

4 Replies 4
MHlavacka
Member | Platinum Partner
Member | Platinum Partner

Pass data to webhook

The issue was on my end, my server was filtering the data passed from HubSpot before they hit my code. Thanks for support!

0 Upvotes
himanshurauthan
Thought Leader | Elite Partner
Thought Leader | Elite Partner

Pass data to webhook

Hello @MHlavacka,

 

Code seems to be okay, but I'll recommend you follow these steps to properly test it:

 

You will a complete web request logged with all the header and body.

 

Regards,

Digital Marketing & Inbound Expert In Growth Hacking Technology
himanshurauthan
Thought Leader | Elite Partner
Thought Leader | Elite Partner

Pass data to webhook

Hi @MHlavacka,

 

This is odd as HubSpot posts the data in the request.

 

Here is an example of data that you must have in the request - [{"objectId": 1246965,"propertyName": "lifecyclestage","propertyValue": "subscriber","changeSource": "ACADEMY","eventId": 3816279340,"subscriptionId": 25,"portalId": 33,"appId": 1160452,"occurredAt": 1462216307945,"subscriptionType":"contact.propertyChange","attemptNumber": 0}]

 

Can you please share how you are checking for the data in the request?

 

Regards,

Digital Marketing & Inbound Expert In Growth Hacking Technology
MHlavacka
Member | Platinum Partner
Member | Platinum Partner

Pass data to webhook

Hi Himanshu, here is my dev setup which I believe should catch the passed data:

1. Triggering the webhook
call.png

2. Catching the passed data in my external app
data.png

3. History of the webhook events
history.png 

4. Actual obtained data
result.png
* Ingore the mismatch in dates and time, different timezones and calls, but still the same result as always

Thank you,
Martin