CRM

Herschel
Top Contributor

Do Deal Workflow Webhooks Contain Data on the Associated Products?

SOLVE

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

0 Upvotes
1 Accepted solution
lscanlan
Solution
HubSpot Alumni
HubSpot Alumni

Do Deal Workflow Webhooks Contain Data on the Associated Products?

SOLVE

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

View solution in original post

2 Replies 2
lscanlan
Solution
HubSpot Alumni
HubSpot Alumni

Do Deal Workflow Webhooks Contain Data on the Associated Products?

SOLVE

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

Do Deal Workflow Webhooks Contain Data on the Associated Products?

SOLVE

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 Upvotes