Hi everyone,
[u]
Previously I posted this exact question in the wrong board so this is a repost. Appologies for the inconvinience.
[/u]
I’m facing an issue while trying to retrieve the email content using the HubSpot CRM API.
Issue Summary
I’m calling this API:
GET https://api.hubapi.com/crm/v3/objects/emails/{id}?properties=hs_email_text
But the hs_email_text field is returning null.
Steps Taken
- Ticket API Call: First, I retrieved the ticket information using:
GET https://api.hubapi.com/crm/v3/objects/tickets/{ticketId}?associations=emails
This returned the following response, showing an associated email with id: 60697003081:
{ "id": "3512558974", "properties": { "content": "Debashish - Test HS Ticket...", "subject": "Test HS Ticket" }, "associations": { "emails": { "results": [ { "id": "60697003081", "type": "ticket_to_email" } ] } } }
- Email API Call: I then used the email id from the above response to make the following API request:
GET https://api.hubapi.com/crm/v3/objects/emails/60697003081?properties=hs_email_text
But in the response, the hs_email_text field is null:
{ "id": "60697003081", "properties": { "hs_email_text": null, "hs_createdate": "2024-09-20T14:04:40Z" } }
Questions:
- Is there any way to fix the null response for hs_email_text?
- Can I directly hit an API by just sending the ticketId to get all associated emails, instead of fetching the email IDs first?
Thanks for any guidance!
