APIs & Integrations

fterp
Member

Webhook payload

SOLVE

Webhook payload on Hubspot vs what I end up getting on my Apps Script web app is different - I GET WAY LESS datapoints, why?

 

I understand maybe additional datapoints are in BETA, but I have flagged to support and still no clear answer.

I want my apps script web app to recieve all datapoints from the payload:

{
"eventId": 1626806091,
"subscriptionId": 3759774,
"portalId": 5599826,
"appId": 3986312,
"occurredAt": 1749664733960,
"subscriptionType": "object.associationChange",
"attemptNumber": 0,
"changeSource": "USER",
"associationType": "CONTACT_TO_DEAL",
"associationCategory": "HUBSPOT_DEFINED",
"associationTypeId": 4,
"fromObjectId": 126846003781,
"fromObjectTypeId": "0-1",
"toObjectId": 38580006684,
"toObjectTypeId": "0-3",
"associationRemoved": true,
"isPrimaryAssociation": false,
"sourceId": "userId:45825670"
}

At the moment I only get the following:

{
"eventId": 1626806091,
"fromObjectTypeId": "0-1",
"toObjectTypeId": "0-3",
"associationTypeId": 4,
"subscriptionType": "object.associationChange"
}

I WANT THE REST!!!

0 Upvotes
1 Accepted solution
Jaycee_Lewis
Solution
Community Manager
Community Manager

Webhook payload

SOLVE

Hey @fterp 👋 Thanks for your question. This is a common point of confusion when working with Google Apps Script.

 

Looking at the official Google Apps Script documentation, have you tried to access the e.postData.contents property in your script? This will give you the full raw JSON string from HubSpot, which you can then parse to access all the data points you're looking for.

 

Have fun testing! — Jaycee


HubSpot’s AI-powered customer agent resolves up to 50% of customer queries instantly, with some customers reaching up to 90% resolution rates.
Learn More.


Did you know that the Community is available in other languages?
Join regional conversations by changing your language settings !

View solution in original post

0 Upvotes
1 Reply 1
Jaycee_Lewis
Solution
Community Manager
Community Manager

Webhook payload

SOLVE

Hey @fterp 👋 Thanks for your question. This is a common point of confusion when working with Google Apps Script.

 

Looking at the official Google Apps Script documentation, have you tried to access the e.postData.contents property in your script? This will give you the full raw JSON string from HubSpot, which you can then parse to access all the data points you're looking for.

 

Have fun testing! — Jaycee


HubSpot’s AI-powered customer agent resolves up to 50% of customer queries instantly, with some customers reaching up to 90% resolution rates.
Learn More.


Did you know that the Community is available in other languages?
Join regional conversations by changing your language settings !
0 Upvotes