Importing Deals and Contacts from Zoho CRM to HubSpot Preserving Relations

In this tutorial, we will show how to import Deals and Contacts from Zoho CRM to HubSpot preserving relations. The difficulty was that in Zoho CRM, the Deal object refers to Contact (id), i.e. one deal can have only one contact, and contact has many deals. Meantime, in Hubspot, the relation between Deals and Contacts is many-to-many, which is implemented through a JOIN table. So we need to set the correct relation between Contacts and Deals to import data from Zoho CRM to HubSpot. We will do it through the DealContacts table. To find out how to do it, read our step-by-step instruction below.

Creating Connection

Regardless of what integration you configure, first you need to create connections that you will use as source and target. In our tutorial, we create connections to Zoho CRM and HubSpot cloud apps. If you have already created the necessary connections, you may skip these steps.

Creating Zoho CRM Connection

To create a connection to Zoho CRM, perform the following steps:

  1. Click +NEW in the top menu;
  2. Click the Connection button in the menu on the left;

    +New menu

  3. In the opened Select Connector page, select Zoho CRM. To quickly find it, you can either use the Type to filter box or filter connectors by categories using the All list (for Zoho CRM, select the CRM category);
  4. The default name of a new connection is Untitled. Click it to rename the connection, for example, to Zoho CRM1;
  5. In the Domain list, select the domain to connect to: crm.zoho.com, crm.zoho.eu, crm.zoho.com.cn, crm.zoho.in or crm.zoho.com.au;
  6. In the Environment list, select an environment type — Production or Sandbox;

    Connection Editor window

  7. Click Sign In with Zoho;
  8. In the opened window, enter email and password to Zoho CRM and click the Sign In button;

    Zoho Sign In window

  9. In the opened window, choose the Org you want to access (if you have several ones) and click Submit;
  10. In the next window, click Accept to allow Skyvia to access data in your Zoho account;
  11. The authentication token is generated;

    Connection Editor window 2

  12. Optionally change the Metadata Cache parameter value. It determines how often to update cached metadata for the connection. By default, Skyvia caches metadata of available objects for cloud sources. You can configure how often the cache is refreshed automatically or reset it manually on the details page of the corresponding connection by clicking the Clear now link next to the Metadata Cache parameter;
  13. Click Create Connection.

Creating HubSpot Connection

To create a connection to HubSpot, repeat the following steps:

  1. Click +NEW in the top menu;
  2. Click the Connection button in the menu on the left;

    +New menu

  3. In the opened Select Connector page, select HubSpot. For quick search, use either the Type to filter box or filter connectors by categories using the All list (for HubSpot, select the CRM category);
  4. The default name of a new connection is Untitled. Click it to rename the connection, for example, to HubSpot1;
  5. Click Sign In with HubSpot;

    Connection Editor window

  6. In the opened window, enter your HubSpot credentials and click Log in;

    HubSpot Login window

  7. Select your account to use;
  8. In the opened page, click Grant access to approve access request;
  9. After the access token is generated, click Create Connection button.

Creating Import

To create a new import, follow this step-by-step instruction:

  1. Click +NEW in the top menu;
  2. In the Integration column, click Import. The integration editor opens;
  3. Rename your integration by clicking and editing the integration name. The default integration name is Untitled. Please note, if you omit this step, the integration name will remain Untitled in the list of created integrations;
  4. Under Source, in Source Type click Data Source database or cloud app and select Zoho CRM from the Connection drop-down list;
  5. Under Target, select HubSpot from the Connection drop-down list;
  6. Click the Add new link to open the Task Editor.

    Source and Target selected

Creating Task for Contacts

  1. In the opened Task Editor window, select the Contacts object from the Source drop-down list;
  2. Next, add desired filters. For example, you can import only contacts that have non-empty email addresses (email is not null). For this, click +Condition to set a specific condition. You can read more about conditions and filters in the Filter Settings topic.

    In our case, we set the condition for the Contact Email to be not null;

    Source List

  3. Click the Next step button at the bottom of the window to switch to the next editor page. You can also switch between the editor pages by clicking the corresponding icons: Source Definition, Target Definition, and Mapping Definition;
  4. In the Target drop-down list, select Contacts;

    Target List

  5. Click the Next step button at the bottom of window to switch to the next editor page or click the Previous step button to return to the previous page;
  6. On the Mapping Definition tab, check whether all required columns are mapped. You can read more about different types of mapping here.

    The First Name, Last Name, Salutation, and Email fields have the same names in HubSpot and Zoho CRM, so they are mapped automatically. You can also map other fields, which does not have identical names, for example, the Phone field to Phone Number, Fax to Fax Number, etc. if needed;

    Mapping

  7. Click Save to save the first task;

    First Task added

  8. Click the Add new link again to create another task.

Creating Task for Deals

  1. In the opened Task Editor window, select the Deals object from the Source drop-down list;
  2. Please note that you import only Deals that relate to the Contacts imported in the first task. So you need to add a filter for the Contacts not to be null. Moreover, if you added some extra filters to Contacts in the previous task, then in Deals you also need to add similar filters (in the first task, the filter was email is not null, so add it to Deals as well). To start setting a condition, click +Condition;
  3. In the first drop-down list, select Deals, in the second drop-down list, select Contact, in the third drop-down list, select is not null;
  4. Click +Condition again to set the second condition;
  5. In the first drop-down list, select Deals_Contact, in the second drop-down list, select Email, in the third drop-down list, select is not null;

    Source List

  6. Click the Next step button at the bottom of the window to switch to the next editor page;
  7. In the Target drop-down list, select Deals;
  8. Click +Related and select DealContacts[Deals_DealContacts];

    Target List

  9. Click Next step to proceed with mapping;
  10. On the Mapping Definition tab, map Deal Name column to Contact Name column by selecting Contact Name value. You can also map any other fields if needed;

    Mapping

  11. To map fields of the related DealContacts object, click the target table name (Deals) and select Deals.DealContacts in the drop-down list;

    Mapping

  12. Note that the Deal ID column is mapped to the generated value of the corresponding Deal record automatically. Here we only need to map the Contact ID column through relations to Deals_Contact;

    Mapping

  13. Click the Save button to save the task.

Finally, when two tasks are added, click the Create button to create the integration.

When your integration is ready, run it to import data. The data will be imported into two tables, and the correct IDs generated in Hubspot will be inserted into the JOIN table. You can check whether results are successful or not on the Monitor tab. For this, click the Run ID to open the History Details window.

Mapping