<?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: Updating deal creates new deal record in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Updating-deal-creates-new-deal-record/m-p/624541#M52734</link>
    <description>&lt;P&gt;I don't see anything with that line of code that would create a new deal...&lt;/P&gt;
&lt;P&gt;Can you add more of your code here?&amp;nbsp; &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/101258"&gt;@Teun&lt;/a&gt; , you see anything?&lt;/P&gt;</description>
    <pubDate>Fri, 29 Apr 2022 15:06:52 GMT</pubDate>
    <dc:creator>dennisedson</dc:creator>
    <dc:date>2022-04-29T15:06:52Z</dc:date>
    <item>
      <title>Updating deal creates new deal record</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Updating-deal-creates-new-deal-record/m-p/623117#M52679</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using the CRM API to create and update deal records and am noticing an oddity when updating deals:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;hubspotClient.crm.deals.basicApi.update(dealIdToUpdate, dealPropertiesObject, undefined)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;where 'dealIdToUpdate' is the ID of an existing deal *does* in fact update the deal as I expect, which is great, but it also always creates a new deal with the same properties.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using a stripe integration and based on certain webhooks calling this update method, which is only firing once, and that leads me to believe there is an issue somewhere in my hubspot code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am curious if this is a known bug that others have experienced, otherwise how I might go along resolving the issue?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thank you for any and all guidance/support.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Zach&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 17:31:28 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Updating-deal-creates-new-deal-record/m-p/623117#M52679</guid>
      <dc:creator>ZRetterath</dc:creator>
      <dc:date>2022-04-27T17:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: Updating deal creates new deal record</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Updating-deal-creates-new-deal-record/m-p/624541#M52734</link>
      <description>&lt;P&gt;I don't see anything with that line of code that would create a new deal...&lt;/P&gt;
&lt;P&gt;Can you add more of your code here?&amp;nbsp; &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/101258"&gt;@Teun&lt;/a&gt; , you see anything?&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 15:06:52 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Updating-deal-creates-new-deal-record/m-p/624541#M52734</guid>
      <dc:creator>dennisedson</dc:creator>
      <dc:date>2022-04-29T15:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: Updating deal creates new deal record</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Updating-deal-creates-new-deal-record/m-p/624671#M52757</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/340773"&gt;@ZRetterath&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-unlink="true"&gt;If you use an API key or a private app you can check the call log to see what is happening at the HubSpot side.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;API Key logs:&amp;nbsp;https://app.hubspot.com/api-key/&amp;lt;portalId&amp;gt;/call-log&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Private app logs:&amp;nbsp;&lt;A href="https://app.hubspot.com/private-apps/&amp;lt;portalId&amp;gt;/&amp;lt;appId&amp;gt;/logs/api" target="_blank"&gt;https://app.hubspot.com/private-apps/&amp;lt;portalId&amp;gt;/&amp;lt;appId&amp;gt;/logs/api&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That way, you can check if your code is making multiple calls to HubSpot.&lt;BR /&gt;&lt;BR /&gt;I do not see anything wrong with your code, so if possible, please share a bit more.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 17:31:40 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Updating-deal-creates-new-deal-record/m-p/624671#M52757</guid>
      <dc:creator>Teun</dc:creator>
      <dc:date>2022-04-29T17:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: Updating deal creates new deal record</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Updating-deal-creates-new-deal-record/m-p/626485#M52878</link>
      <description>&lt;P&gt;Thanks, Teun! Following your steps I was able to diagnose and patch the issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I appreciate the response and assistance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Zach&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2022 21:53:28 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Updating-deal-creates-new-deal-record/m-p/626485#M52878</guid>
      <dc:creator>ZRetterath</dc:creator>
      <dc:date>2022-05-03T21:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: Updating deal creates new deal record</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Updating-deal-creates-new-deal-record/m-p/626623#M52886</link>
      <description>&lt;P&gt;Awesome! Happy I could help!&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2022 06:15:16 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Updating-deal-creates-new-deal-record/m-p/626623#M52886</guid>
      <dc:creator>Teun</dc:creator>
      <dc:date>2022-05-04T06:15:16Z</dc:date>
    </item>
  </channel>
</rss>

