Import emails

Hi

I’m migrating from SuperOffice to hubspot.

When migrating emails, the “cc” and “bcc” are arrays of what?

Objects like:

{ “email":"a@b.com”}, {}

or strings

“a@b.com”, “b@b.com”

?

Also, are contactIds == contact vid?

Hi @hubsp

For the CC and BCC values, they are a list of strings and when including a CC or BCC, make sure the emails are being included in the same format as the to field:

As an example:

 "to": [
 {
 "email": "contact name <test@test.com>"
 }
 ],

Therefore, we’d be looking at the following format:

 "cc": [
 {
 "email": "contact name <test@test.com>"
 }
 ],

You can find examples on structure and how to set this up by looking at our Engagements API, see here: https://developers.hubspot.com/docs/methods/engagements/create_engagement

Also, to confirm the ContactIds are indeed the Contact VIDs.

I hope this helps!

How do I set a company’s email contactinfo? Should be a prop something like phone number?

Hey @hubsp

A companies contact info is usually along the lines of the Company Domain and the Phone Number.

When it comes to emails, you can email from a Company Record when a Contact is associated with said company. This is an association that can be easily handled in the UI, take a look here:

If you’re creating contacts via the API, you can manually populate the associated_company_id property with the companyId of the company record that you want the contact to be associated with.

I hope this helps!