APIs & Integrations

hubsp
Contributor

Import emails

SOLVE

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?

Capture.PNG

 

 

0 Upvotes
1 Accepted solution
Willson
Solution
HubSpot Employee
HubSpot Employee

Import emails

SOLVE

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!

Product Manager @ HubSpot

View solution in original post

0 Upvotes
3 Replies 3
Willson
Solution
HubSpot Employee
HubSpot Employee

Import emails

SOLVE

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!

Product Manager @ HubSpot
0 Upvotes
hubsp
Contributor

Import emails

SOLVE

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

 

0 Upvotes
Willson
HubSpot Employee
HubSpot Employee

Import emails

SOLVE

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:
https://knowledge.hubspot.com/contacts/automatically-create-and-associate-companies-with-contacts

 

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!

Product Manager @ HubSpot
0 Upvotes