Webhooks API (Contact/Association changed)

Hi there,

According to the example of event payload (when you click on “Details” of subscription) it sould look like this:

{
“eventId”: “100”,
“subscriptionId”: 229xxxx,
“portalId”: 555xxxx,
“occurredAt”: 1696016361042,
“subscriptionType”: “contact.associationChange”,
“attemptNumber”: 0,
“objectId”: 123,
“changeSource”: “CRM”,
“associationType”: “CONTACT_TO_COMPANY”,
“fromObjectId”: 10,
“toObjectId”: 20,
“associationRemoved”: false,
“isPrimaryAssociation”: false,
“appId”: 19xxxx
}

but in reality I’m receiving it like this:

{
“eventId”: “100”,
“subscriptionId”: 229xxxx,
“portalId”: 555xxxx,
“occurredAt”: 1696016361042,
“subscriptionType”: “contact.associationChange”,
“attemptNumber”: 0,
“changeSource”: “CRM”,
“associationType”: “CONTACT_TO_COMPANY”,
“fromObjectId”: 123,
“toObjectId”: 20,
“associationRemoved”: false,
“isPrimaryAssociation”: false,
“appId”: 19xxxx
}

So, it is missing “objectId” property (instead I see real objectId in “fromObjectId” which is very strange).

It looks like a bug or it is intended? Can you please advise?

Thank you.

Hi @RHow,

Do you still need help with this?

Could you tell us if you’re working with webhooks used in workflows or the webhooks API?

Thanks,

Mia, Community Team

Hi Mia,

> Do you still need help with this?

Yes please.

> Could you tell us if you’re working with webhooks used in workflows or the webhooks API?

Webhooks API (Accounts Dashboard | HubSpot)

Thank you for your time.

Thank you @RHow, apologies for the late reply!

I wanted to ask a couple of subject matter experts for help as this is a bit over my head:

Hi @louischausse, @Teun, @ChristinaKay, do you have any ideas why the “objectId” property is missing in @RHow’s event payload? Thank you!

Cheers
Mia, Community Team

Hi Mia,

Do you have any update on this?

Thank you for your time.