<?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: Contacts not being instantly created in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Contacts-not-being-instantly-created/m-p/221819#M715</link>
    <description>&lt;P&gt;Ok,&lt;/P&gt;
&lt;P&gt;I used a fetcher on a timed loop on our end to make that work (fetching data of n contacts by emails, and if all the data is not returned, retrying n seconds later). With of course a limited number of retries. It works pretty well.&lt;/P&gt;
&lt;P&gt;I do not find it pretty but if you say it is the only option, I guess we will do with that.&lt;/P&gt;
&lt;P&gt;I'll post something on the community ideas forum, see if this can help.&lt;/P&gt;
&lt;P&gt;Thank for your answer!&lt;/P&gt;</description>
    <pubDate>Thu, 25 Oct 2018 14:36:57 GMT</pubDate>
    <dc:creator>MatthieuD</dc:creator>
    <dc:date>2018-10-25T14:36:57Z</dc:date>
    <item>
      <title>Contacts not being instantly created</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Contacts-not-being-instantly-created/m-p/221817#M713</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I am encountering the following issue: I have users and deals on my side (not yet on HubSpot) and I want to create them in HubSpot using the API.&lt;BR /&gt;
One contact can be linked to a deal, but for that I need the vid (HubSpot id) of the contact, so here is what I do:&lt;BR /&gt;
1 - Batch creating all the users using their email&lt;BR /&gt;
2 - Getting all the users newly created (because I need their vid and the batch create does not return them)&lt;BR /&gt;
3 - Creating the deals with their associated users thanks to the previously get vids&lt;/P&gt;
&lt;P&gt;The issue I am having is that on step 2, contacts are not finished being created on HubSpot. It takes up to 30s with 4 contacts (didn't try more). So if I immediately create then get, the get returns nothing. A sleep of 30s solves the issue but that's not a good solution.&lt;/P&gt;
&lt;P&gt;I wondered if I am doing something wrong, or if this is a known issue, and if there is a solution out there?&lt;/P&gt;</description>
      <pubDate>Thu, 11 Oct 2018 09:01:56 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Contacts-not-being-instantly-created/m-p/221817#M713</guid>
      <dc:creator>MatthieuD</dc:creator>
      <dc:date>2018-10-11T09:01:56Z</dc:date>
    </item>
    <item>
      <title>Re: Contacts not being instantly created</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Contacts-not-being-instantly-created/m-p/221818#M714</link>
      <description>&lt;P&gt;Hi &lt;A class="mention" href="https://community.hubspot.com/u/matthieud"&gt;@MatthieuD&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;You're not doing anything wrong; this is expected behavior. As David touches on &lt;A href="https://integrate.hubspot.com/t/retrieve-contact-id-after-contact-creation/1787/2"&gt;here&lt;/A&gt;, contact records are not created immediately and may not be available for a few seconds.&lt;/P&gt;
&lt;P&gt;Delaying the &lt;CODE&gt;GET&lt;/CODE&gt; request seems to be the only solution, per &lt;A href="https://integrate.hubspot.com/t/how-to-associate-a-deal-with-a-newly-created-contact-using-timeline-events/5843"&gt;similar topics&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;I recognize that the process could be streamlined, though. If you feel inclined, I recommend posting your feedback on the &lt;A href="https://community.hubspot.com/t5/HubSpot-Ideas/idb-p/HubSpot_Ideas"&gt;HubSpot Community Ideas Forum&lt;/A&gt;, especially receiving the contact &lt;CODE&gt;vid&lt;/CODE&gt;s in the &lt;A href="https://developers.hubspot.com/docs/methods/contacts/batch_create_or_update"&gt;bulk endpoint's&lt;/A&gt; response.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Oct 2018 16:55:17 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Contacts-not-being-instantly-created/m-p/221818#M714</guid>
      <dc:creator>IsaacTakushi</dc:creator>
      <dc:date>2018-10-16T16:55:17Z</dc:date>
    </item>
    <item>
      <title>Re: Contacts not being instantly created</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Contacts-not-being-instantly-created/m-p/221819#M715</link>
      <description>&lt;P&gt;Ok,&lt;/P&gt;
&lt;P&gt;I used a fetcher on a timed loop on our end to make that work (fetching data of n contacts by emails, and if all the data is not returned, retrying n seconds later). With of course a limited number of retries. It works pretty well.&lt;/P&gt;
&lt;P&gt;I do not find it pretty but if you say it is the only option, I guess we will do with that.&lt;/P&gt;
&lt;P&gt;I'll post something on the community ideas forum, see if this can help.&lt;/P&gt;
&lt;P&gt;Thank for your answer!&lt;/P&gt;</description>
      <pubDate>Thu, 25 Oct 2018 14:36:57 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Contacts-not-being-instantly-created/m-p/221819#M715</guid>
      <dc:creator>MatthieuD</dc:creator>
      <dc:date>2018-10-25T14:36:57Z</dc:date>
    </item>
  </channel>
</rss>

