Joining deals and email events

anna_mariscotti
Member

Hi all,

 

could someone help us understanding how to join the deals (https://legacydocs.hubspot.com/docs/methods/deals/deals_overview) and the emails events (https://legacydocs.hubspot.com/docs/methods/email/email_events_overview)? As the deal workflow API is not available, which would be the obvious connection, as email are sent as a deal goes through the workflow, we do not understand how to connect the data. 

 

Many thanks!

Best,

Anna

3 Replies 3
himanshurauthan
Recognized Expert | Platinum Partner

Hi @anna_mariscotti,


Can you please explain your goal, it seems like you want to log email events in the deal?

 

If you have a contact/company associated with a deal, events of contact/company are automatically logged in Deal.

 

Hope this helps!

 

Regards,

Digital Marketing & Inbound Expert In Growth Hacking Technology
anna_mariscotti
Member

Hi @himanshurauthan ,

 

Thanks for your reply. We can see the logs in the HubSpot interface, but we want to extract the data. Do you know how we can extract those data from the HubSpot API?

 

Best,

Anna

0 Upvotes
himanshurauthan
Recognized Expert | Platinum Partner

Happy that you are able to see the logs now.

 

To fetch the details from the deal, you have to follow the Association API and fetch all engagement associations of the deal - https://legacydocs.hubspot.com/docs/methods/crm-associations/crm-associations-overview using this get endpoint - https://legacydocs.hubspot.com/docs/methods/crm-associations/get-associations

 

This will return the engagement ids, that you have to use to get detail of particular engagement using this endpoint - https://legacydocs.hubspot.com/docs/methods/engagements/get_engagement

 

Hope this helps!

 

Regards,

Digital Marketing & Inbound Expert In Growth Hacking Technology