<?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 Duplicates Created Because First Request Doesn't Complete Fast Enough in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Duplicates-Created-Because-First-Request-Doesn-t-Complete-Fast/m-p/856168#M67773</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Whenever a customer visits the cart and checkout page on our website, I have set up workflows to create or update a deal in HubSpot. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;However, there's a particular scenario that's causing headaches: when a customer proceeds to checkout very quickly after visiting the cart page, it results in the creation of a duplicate deal. This happens because the first request to create a deal hasn't completed, and the search API the looks for a deal to decide if it should create one or update one doesn't find the one created from visiting the cart page, so it creates one.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 27 Sep 2023 15:10:22 GMT</pubDate>
    <dc:creator>eibach-cv</dc:creator>
    <dc:date>2023-09-27T15:10:22Z</dc:date>
    <item>
      <title>Duplicates Created Because First Request Doesn't Complete Fast Enough</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Duplicates-Created-Because-First-Request-Doesn-t-Complete-Fast/m-p/856168#M67773</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Whenever a customer visits the cart and checkout page on our website, I have set up workflows to create or update a deal in HubSpot. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;However, there's a particular scenario that's causing headaches: when a customer proceeds to checkout very quickly after visiting the cart page, it results in the creation of a duplicate deal. This happens because the first request to create a deal hasn't completed, and the search API the looks for a deal to decide if it should create one or update one doesn't find the one created from visiting the cart page, so it creates one.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2023 15:10:22 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Duplicates-Created-Because-First-Request-Doesn-t-Complete-Fast/m-p/856168#M67773</guid>
      <dc:creator>eibach-cv</dc:creator>
      <dc:date>2023-09-27T15:10:22Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicates Created Because First Request Doesn't Complete Fast Enough</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Duplicates-Created-Because-First-Request-Doesn-t-Complete-Fast/m-p/857012#M67825</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/148664"&gt;@eibach-cv&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; Thanks for the interesting question. It sounds like some form of race condition is happening. Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/20405"&gt;@himanshurauthan&lt;/a&gt;,&amp;nbsp;have you run into anything similar in your recent projects?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;Jaycee&lt;/P&gt;</description>
      <pubDate>Thu, 28 Sep 2023 21:56:48 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Duplicates-Created-Because-First-Request-Doesn-t-Complete-Fast/m-p/857012#M67825</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2023-09-28T21:56:48Z</dc:date>
    </item>
  </channel>
</rss>

