Do Deal Workflow Webhooks Contain Data on the Associated Products?

SOLVE
Highlighted
Regular Contributor

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

Reply
0 Upvotes
1 Accepted solution

Accepted Solutions
HubSpot Moderator

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
2 Replies 2
HubSpot Moderator

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
Regular Contributor

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

Reply
0 Upvotes