CRM

Herschel
Colaborador líder

Do Deal Workflow Webhooks Contain Data on the Associated Products?

resolver

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

0 Me gusta
1 Soluciones aceptada
lscanlan
Solución
Exmiembro de HubSpot
Exmiembro de HubSpot

Do Deal Workflow Webhooks Contain Data on the Associated Products?

resolver

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

Ver la solución en mensaje original publicado

2 Respuestas 2
lscanlan
Solución
Exmiembro de HubSpot
Exmiembro de HubSpot

Do Deal Workflow Webhooks Contain Data on the Associated Products?

resolver

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
Colaborador líder

Do Deal Workflow Webhooks Contain Data on the Associated Products?

resolver

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 Me gusta