APIs & Integrations

zigi
Membre

Webhooks - How to understand triggering account?

Résolue

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 Votes
1 Solution acceptée
dennisedson
Solution
Équipe de développement de HubSpot
Équipe de développement de HubSpot

Webhooks - How to understand triggering account?

Résolue

@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
  }

Voir la solution dans l'envoi d'origine

0 Votes
1 Réponse
dennisedson
Solution
Équipe de développement de HubSpot
Équipe de développement de HubSpot

Webhooks - How to understand triggering account?

Résolue

@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 Votes