CRM

Herschel
Contributeur de premier rang

Do Deal Workflow Webhooks Contain Data on the Associated Products?

Résolue

Does the data in a webhook triggered from a Deal workflow contain information on the Products associated with that particular Deal?

0 Votes
1 Solution acceptée
lscanlan
Solution
Ancien salarié HubSpot
Ancien salarié HubSpot

Do Deal Workflow Webhooks Contain Data on the Associated Products?

Résolue

Hi @Herschel,

 

Associated products are not included in a deal's webhook payload. But what you could do is take the deal ID that is included in the webhook payload, and then make a request to the CRM Associations API: https://developers.hubspot.com/docs/methods/crm-associations/crm-associations-overview. You can use the definition ID for "deal to line item", which is 19. So your request URL would look something like /crm-associations/v1/associations/: objectId/HUBSPOT_DEFINED/19, where you plug in the deal ID the objectId . That will return you the deal's line item associations. Our documentation for line items is here: https://developers.hubspot.com/docs/methods/line-items/line-items-overview, but I think that should give you what you need.

 

Let me know if you have any questions about it.

 

Leland Scanlan

HubSpot Developer Support

Voir la solution dans l'envoi d'origine

2 Réponses
lscanlan
Solution
Ancien salarié HubSpot
Ancien salarié HubSpot

Do Deal Workflow Webhooks Contain Data on the Associated Products?

Résolue

Hi @Herschel,

 

Associated products are not included in a deal's webhook payload. But what you could do is take the deal ID that is included in the webhook payload, and then make a request to the CRM Associations API: https://developers.hubspot.com/docs/methods/crm-associations/crm-associations-overview. You can use the definition ID for "deal to line item", which is 19. So your request URL would look something like /crm-associations/v1/associations/: objectId/HUBSPOT_DEFINED/19, where you plug in the deal ID the objectId . That will return you the deal's line item associations. Our documentation for line items is here: https://developers.hubspot.com/docs/methods/line-items/line-items-overview, but I think that should give you what you need.

 

Let me know if you have any questions about it.

 

Leland Scanlan

HubSpot Developer Support
Herschel
Contributeur de premier rang

Do Deal Workflow Webhooks Contain Data on the Associated Products?

Résolue

Thanks for the info, I went ahead and submitted an idea post requesting that product line item data be included in those deal workflow webhooks: https://community.hubspot.com/t5/HubSpot-Ideas/Include-Associated-Product-Data-in-Deal-Workflow-Webh...

0 Votes