APIs & Integrations

Besteman
Participant

Get emails from a specific deal

SOLVE

I can not find out how to pull all the emails from a Deal Record.
The following properties are what I am looking to pull from Deal:
hs_email_text
hs_email_subject
hs_email_from_email

 

I want to pass in a Deal ID and receive all the emails on that record with the above properties.

 

I have tried to pass in the filters to the email search endpoint and I keep getting no results.

Besteman_0-1725541299372.jpeg

 

0 Upvotes
1 Accepted solution
KhushbooRevOps
Solution
Participant

Get emails from a specific deal

SOLVE

Hi @Besteman,

To get emails from a specific deal:


1. Retrieve all email engagements associated with the deal using the Deal ID.
GET /crm/v3/objects/deals/{dealId}/associations/emails

2. Fetch Email Details: For each email, get the details like hs_email_text, hs_email_subject, and hs_email_from_email.
GET /engagements/v1/engagements/{engagementId}

This will give you all the emails linked to the deal.

 

I hope it helps, let me know if you need to talk!

Khushboo Pokhriyal

Growth & Operations

GroRapid Labs

LinkedIn | 9315044754 | Email | Website

View solution in original post

2 Replies 2
KhushbooRevOps
Solution
Participant

Get emails from a specific deal

SOLVE

Hi @Besteman,

To get emails from a specific deal:


1. Retrieve all email engagements associated with the deal using the Deal ID.
GET /crm/v3/objects/deals/{dealId}/associations/emails

2. Fetch Email Details: For each email, get the details like hs_email_text, hs_email_subject, and hs_email_from_email.
GET /engagements/v1/engagements/{engagementId}

This will give you all the emails linked to the deal.

 

I hope it helps, let me know if you need to talk!

Khushboo Pokhriyal

Growth & Operations

GroRapid Labs

LinkedIn | 9315044754 | Email | Website

Besteman
Participant

Get emails from a specific deal

SOLVE

Yes, that worked!

I would hope that Hubspot would have a way to do it with 1 API call.

0 Upvotes