<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to sync Company and Contacts with existing system in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/How-to-sync-Company-and-Contacts-with-existing-system/m-p/287897#M26639</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/103389"&gt;@Marsharks&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Gotcha. In this case, I'm thinking would it be best for you to clear out the contactID column&amp;nbsp;to prevent any conflict with the new ID column which will be populated via the contact VID? This is because, ultimately&amp;nbsp;I believe your team would only be keeping one column ID as the unique identifier.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me know what you think!&lt;/P&gt;</description>
    <pubDate>Mon, 26 Aug 2019 02:05:12 GMT</pubDate>
    <dc:creator>WendyGoh</dc:creator>
    <dc:date>2019-08-26T02:05:12Z</dc:date>
    <item>
      <title>How to sync Company and Contacts with existing system</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-to-sync-Company-and-Contacts-with-existing-system/m-p/287570#M26606</link>
      <description>&lt;P&gt;We currently have a Contact database and would like to export that data into Hubspot to start a fresh system.&amp;nbsp; From there, we would like to import the new Company and new Contacts into out existing Contact database.&amp;nbsp; We need to keep our existing Contacts for audit purposes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We already have a Contact ID column that is not auto increment, so I could theoretically use the VID returned by the Contact API and insert that value into the Contact ID column, however, I would need to be able to control where the VID starts to avoid a duplicate ID/collision.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another solution would be to add a new column to my existing database that would store the VID from Hubspot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which solution would be recommended?&amp;nbsp; I would prefer to be able to set the starting point for the VID in Contacts and the other ID in Company to avoid collisions and not have to change my DB schema. I also don't want a difficult way of doing that.&amp;nbsp; In SQL Server one could set the starting point for an identity seed and in systems where a sequence number is generated (MS Dynamics) one could set the starting number as well very easily.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2019 20:52:37 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-to-sync-Company-and-Contacts-with-existing-system/m-p/287570#M26606</guid>
      <dc:creator>Marsharks</dc:creator>
      <dc:date>2019-08-22T20:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to sync Company and Contacts with existing system</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-to-sync-Company-and-Contacts-with-existing-system/m-p/287608#M26614</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/103389"&gt;@Marsharks&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope all is well with you &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just to make sure that I'm understanding it correctly, let me it out here:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Within your HubSpot app, you have existing contacts and companies records and in your own contact database, you also have existing contacts and companies records&lt;/LI&gt;
&lt;LI&gt;You'd like to import the records that you've in your own contact database into HubSpot&lt;/LI&gt;
&lt;LI&gt;So that you can export it all at one go&lt;/LI&gt;
&lt;LI&gt;You'd then like to import the exported file into your own contact database&lt;/LI&gt;
&lt;LI&gt;For the new contacts (those that are in your HubSpot app), you'd like to store the contact data as well as the vid in the contact id column of your own database system as the existing contacts and companies contacts in your own contact database already has the contact ID&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Utimately, that's your end goal, am I understanding it correctly?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If so, when fetching and storing the contact data such as email, name etc to your own contact database, can you also grab and store the vid? When looking at the&amp;nbsp;&lt;A href="https://developers.hubspot.com/docs/methods/contacts/get_contacts" target="_self"&gt;HubSpot get all contacts API&lt;/A&gt;; each contact record will return as one full json stored in an array, this means that you can grab the contact information together with the vid when looping through the array.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me know if I'm totally off the page, I'd be happy to discuss this further with you!&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2019 02:58:56 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-to-sync-Company-and-Contacts-with-existing-system/m-p/287608#M26614</guid>
      <dc:creator>WendyGoh</dc:creator>
      <dc:date>2019-08-23T02:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to sync Company and Contacts with existing system</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-to-sync-Company-and-Contacts-with-existing-system/m-p/287664#M26621</link>
      <description>&lt;P&gt;Yes, that is a close enough understanding of the issue.&amp;nbsp; At this time, we do not have any contacts in the Hubspot App though.&amp;nbsp; We want to export a subset of existing Contacts into Hubspot, then bring them back into our system using the VID assigned.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I agree I can get all the contacts and loop through them.&amp;nbsp; I think the problem would arise if I get a random VID, say 65432 because I have a ContactID already with that number.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2019 12:22:57 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-to-sync-Company-and-Contacts-with-existing-system/m-p/287664#M26621</guid>
      <dc:creator>Marsharks</dc:creator>
      <dc:date>2019-08-23T12:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to sync Company and Contacts with existing system</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-to-sync-Company-and-Contacts-with-existing-system/m-p/287897#M26639</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/103389"&gt;@Marsharks&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Gotcha. In this case, I'm thinking would it be best for you to clear out the contactID column&amp;nbsp;to prevent any conflict with the new ID column which will be populated via the contact VID? This is because, ultimately&amp;nbsp;I believe your team would only be keeping one column ID as the unique identifier.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me know what you think!&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2019 02:05:12 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-to-sync-Company-and-Contacts-with-existing-system/m-p/287897#M26639</guid>
      <dc:creator>WendyGoh</dc:creator>
      <dc:date>2019-08-26T02:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to sync Company and Contacts with existing system</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-to-sync-Company-and-Contacts-with-existing-system/m-p/287956#M26649</link>
      <description>&lt;P&gt;We need to keep the old ContactID for historical purposes.&amp;nbsp; It is the Primary Key of that table, so it cannot be null.&amp;nbsp; IF we cannot set the starting point for the VID, I think the best solution is to create a referenceID column to contain the VID.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2019 12:54:46 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-to-sync-Company-and-Contacts-with-existing-system/m-p/287956#M26649</guid>
      <dc:creator>Marsharks</dc:creator>
      <dc:date>2019-08-26T12:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to sync Company and Contacts with existing system</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-to-sync-Company-and-Contacts-with-existing-system/m-p/288133#M26662</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/103389"&gt;@Marsharks&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the further clarification. That is right, currently we wouldn't be able to set the contact vid within HubSpot, the number will be randomly generated based on the number of contacts/companies you've in your portal.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Therefore, the next best approach is probably to create a reference ID to contain the VID, or another way is: when you're looping through, cross check the contact vid with the old contactid and if it matches, set a new number to it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Aug 2019 01:26:40 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-to-sync-Company-and-Contacts-with-existing-system/m-p/288133#M26662</guid>
      <dc:creator>WendyGoh</dc:creator>
      <dc:date>2019-08-27T01:26:40Z</dc:date>
    </item>
  </channel>
</rss>

