CRM

Herschel
Stratege/Strategin

Do Deal Workflow Webhooks Contain Data on the Associated Products?

lösung

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

0 Upvotes
1 Akzeptierte Lösung
lscanlan
Lösung
HubSpot-Alumnus/Alumna
HubSpot-Alumnus/Alumna

Do Deal Workflow Webhooks Contain Data on the Associated Products?

lösung

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

Lösung in ursprünglichem Beitrag anzeigen

2 Antworten
lscanlan
Lösung
HubSpot-Alumnus/Alumna
HubSpot-Alumnus/Alumna

Do Deal Workflow Webhooks Contain Data on the Associated Products?

lösung

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
Stratege/Strategin

Do Deal Workflow Webhooks Contain Data on the Associated Products?

lösung

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