APIs & Integrations

zigi
Membro

Webhooks - How to understand triggering account?

resolver

I might be missing something, I have went through the docs, I am not sure how I understand which of the Hubspot accounts that installed my app is the account that triggered the webhook? 

 

I looked under "Webhooks payloads" in these docs

 

Thanks

0 Avaliação positiva
1 Solução aceita
dennisedson
Solução
Equipe de Produto da HubSpot
Equipe de Produto da HubSpot

Webhooks - How to understand triggering account?

resolver

@zigi , if you scroll down to the sample webhook payload, you will see portalId in the returned json objects

example:

{
    "objectId": 1246965,
    "propertyName": "lifecyclestage",
    "propertyValue": "subscriber",
    "changeSource": "ACADEMY",
    "eventId": 3816279340,
    "subscriptionId": 25,
    "portalId": 33,
    "appId": 1160452,
    "occurredAt": 1462216307945,
    "subscriptionType":"contact.propertyChange",
    "attemptNumber": 0
  }

Exibir solução no post original

0 Avaliação positiva
1 Resposta 1
dennisedson
Solução
Equipe de Produto da HubSpot
Equipe de Produto da HubSpot

Webhooks - How to understand triggering account?

resolver

@zigi , if you scroll down to the sample webhook payload, you will see portalId in the returned json objects

example:

{
    "objectId": 1246965,
    "propertyName": "lifecyclestage",
    "propertyValue": "subscriber",
    "changeSource": "ACADEMY",
    "eventId": 3816279340,
    "subscriptionId": 25,
    "portalId": 33,
    "appId": 1160452,
    "occurredAt": 1462216307945,
    "subscriptionType":"contact.propertyChange",
    "attemptNumber": 0
  }
0 Avaliação positiva