Hello @mestopiñalesb ,
here is the code you got when you use Hubspot API :
{
"id": "32022843104",
"properties": {
"hs_createdate": "2024-08-29T17:11:29.843Z",
"hs_email_headers": null,
"hs_email_html": "<div style=\"\" dir=\"auto\" data-top-level=\"true\"><p style=\"margin:0;\">test email</p></div>",
"hs_lastmodifieddate": "2024-08-29T17:11:29.843Z",
"hs_object_id": "32022843104",
"hs_timestamp": "2024-08-15T16:30:00Z"
},
"createdAt": "2024-08-29T17:11:29.843Z",
"updatedAt": "2024-08-29T17:11:29.843Z",
"archived": false
}
- hs_timestamp : is the timedate you sent the email in my example 15th of august
- createAt : is the timedate you create the logged email in my example 29th of august
To do so, use this call (ENGAGEMENT API) of course this is an example, you need to adapt it a bit by changing email_id and your APIKEY :
- url = “https://api.hubapi.com/crm/v3/objects/emails/{email_id}?properties=hs_email_headers, hs_email_html,hs_timestamp”
If you ask yourself, but how can I get the logged email id ?
- Use search engagement with filters like owners, contacts, companies, dates, …
- Use get email list and you will have the X last one : https://api.hubapi.com/crm/v3/objects/emails?limit=10&archived=false)
Will it be my first “SOLVED” ???
