From the UI when a new logged email is added to a contact (or editing one), the user can choose the sending date which can be different from the creation date of the logged email object.
Using the Hubspot API, how can I retrieve a logged email's sending date or activity date?
According to the API documentation, I can only get the hs_timestamp field which is the creation date.
Hey @mestopiñalesb Logged email in HubSpot just works by BCCing the HubSpot address to log it to a contact. It doesn't really "integrate" with the mailbox on a much deeper level than that. So if your sending date is different to the date the email event was created in HubSpot, HubSpot isn't going to know this.
I'm definitely missing something though, where within the HubSpot UI are you seeing the different "sending date" and "creation date"? I would see creation date as when the contact was created, and sending date being when the email event happened. So hs_timestamp should give the timestampe of when the email event was created, not the contact. I'm curious though where in the UI are you referring to seeing creation date and sending date? It might help me get you an answer!
Tom Mahon Technical Consultant | Solutions Engineer | Community Champion Baskey Digitial
Hi Tom, thanks for the reply... I am trying to get the contact activity through the API (notes, emails, calls, etc) as a timeline...
In the Hubspot UI (contact/activities/emails) I can add a logged email by clicking the "Log Email" button. I can select the contacted person, Date and Time, etc... in my case, the email was sent outside Hubspot last week, I want to record it now and set the Date and Time of last week when it was sent. So far everything works fine, in activities I see the logged email with the correct date from last week.
Similar to this use case, you can see the activity date is different from a creation date
But I can't get through the API the Date and Time I set before, only the created date (which is now). Any ideas?