Webhook payload

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!!!

Hey @fterp :waving_hand: 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