Import emails

SOLVE
Highlighted
New Contributor

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

 

 

Reply
0 Upvotes
1 Accepted solution

Accepted Solutions
Highlighted
HubSpot Moderator

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!

Matthew Willson

HubSpot Developer Support
Reply
0 Upvotes
3 Replies 3
Highlighted
HubSpot Moderator

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!

Matthew Willson

HubSpot Developer Support
Reply
0 Upvotes
New Contributor

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

 

Reply
0 Upvotes
Highlighted
HubSpot Moderator

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!

Matthew Willson

HubSpot Developer Support
Reply
0 Upvotes