APIs & Integrations

ejohnson0832
Member

Pull Original Date from Transactional Email Property

SOLVE

The transactional email property is under contacts. It is either 'yes/no'. But, under 'see history', the transactional email shows the original date the email was sent. 

 

Is there a way to pull the original send date from the transactional email property?

0 Upvotes
1 Accepted solution
IsaacTakushi
Solution
HubSpot Employee
HubSpot Employee

Pull Original Date from Transactional Email Property

SOLVE

Hi, @ejohnson0832.

 

While the transactional_email_sentproperty value is always either true or false,  you can pull the date and time the property value changed from the timestampproperty.

 

For example, if you query https://api.hubapi.com/contacts/v1/contact/vid/78340513/profile?property=transactional_email_sent for this contact, the API will return:

 

transactional_email_sent: {
  value: "true",
  versions: [
    {
      value: "true",
      source-type: "INTEGRATION",
      source-id: "146173",
      source-label: null,
      timestamp: 1548772047655,
      selected:false
    }
  ]
}

You can then use the 1548772047655 value for your purposes.

Isaac Takushi

Associate Certification Manager

View solution in original post

1 Reply 1
IsaacTakushi
Solution
HubSpot Employee
HubSpot Employee

Pull Original Date from Transactional Email Property

SOLVE

Hi, @ejohnson0832.

 

While the transactional_email_sentproperty value is always either true or false,  you can pull the date and time the property value changed from the timestampproperty.

 

For example, if you query https://api.hubapi.com/contacts/v1/contact/vid/78340513/profile?property=transactional_email_sent for this contact, the API will return:

 

transactional_email_sent: {
  value: "true",
  versions: [
    {
      value: "true",
      source-type: "INTEGRATION",
      source-id: "146173",
      source-label: null,
      timestamp: 1548772047655,
      selected:false
    }
  ]
}

You can then use the 1548772047655 value for your purposes.

Isaac Takushi

Associate Certification Manager