<?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: Association deal - contact on Create Deal method V3 in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Association-deal-contact-on-Create-Deal-method-V3/m-p/336011#M32682</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/129546"&gt;@hilton22&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The new process for creating new object records and associations to another object record must be handled in a 2-step process.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In this case, the record must initially be created, see below:&lt;/P&gt;
&lt;PRE&gt;https://api.hubapi.com/crm/v3/objects/deals?limit=10&amp;amp;archived=false&amp;amp;hapikey=YOUR_HUBSPOT_API_KEY&lt;/PRE&gt;
&lt;P&gt;Once created, we now use the Id generated in the response to add the association via the following request:&lt;/P&gt;
&lt;PRE&gt;Example PUT URL:
https://api.hubapi.com/crm-associations/v1/associations?hapikey=demo

Example PUT JSON:
{
  "fromObjectId": 496346,
  "toObjectId": 176602,
  "category": "HUBSPOT_DEFINED",
  "definitionId": 15
}&lt;/PRE&gt;
&lt;P&gt;The definition Id can be found here in our Definitions Table:&amp;nbsp;&lt;A href="https://developers.hubspot.com/docs/methods/crm-associations/crm-associations-overview" target="_blank"&gt;https://developers.hubspot.com/docs/methods/crm-associations/crm-associations-overview&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To note,&amp;nbsp;&lt;SPAN&gt;Associations are defined based on the type of objects being associated, and the&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;direction&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;of that association. Association definitions are&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;unidirectional&lt;/STRONG&gt;&lt;SPAN&gt;, so you'll use a different definition ID depending on which object type you're starting with.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps!&lt;/P&gt;</description>
    <pubDate>Fri, 01 May 2020 10:41:25 GMT</pubDate>
    <dc:creator>Willson</dc:creator>
    <dc:date>2020-05-01T10:41:25Z</dc:date>
    <item>
      <title>Association deal - contact on Create Deal method V3</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Association-deal-contact-on-Create-Deal-method-V3/m-p/335863#M32662</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm tring to create a new deal, associated with a existing contact, via API using V3 documentation. But I can't find, in the V3 doc, a way to associate this new deal with the contact, at the moment of deal creation.&lt;/P&gt;&lt;P&gt;I recall that in V2 method, you have two indexes ("associations" and "properties"), where you can create and simultaneously, associate with one or more contacts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is that possible in the V3 API?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2020 19:27:08 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Association-deal-contact-on-Create-Deal-method-V3/m-p/335863#M32662</guid>
      <dc:creator>hilton22</dc:creator>
      <dc:date>2020-04-30T19:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: Association deal - contact on Create Deal method V3</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Association-deal-contact-on-Create-Deal-method-V3/m-p/336011#M32682</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/129546"&gt;@hilton22&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The new process for creating new object records and associations to another object record must be handled in a 2-step process.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In this case, the record must initially be created, see below:&lt;/P&gt;
&lt;PRE&gt;https://api.hubapi.com/crm/v3/objects/deals?limit=10&amp;amp;archived=false&amp;amp;hapikey=YOUR_HUBSPOT_API_KEY&lt;/PRE&gt;
&lt;P&gt;Once created, we now use the Id generated in the response to add the association via the following request:&lt;/P&gt;
&lt;PRE&gt;Example PUT URL:
https://api.hubapi.com/crm-associations/v1/associations?hapikey=demo

Example PUT JSON:
{
  "fromObjectId": 496346,
  "toObjectId": 176602,
  "category": "HUBSPOT_DEFINED",
  "definitionId": 15
}&lt;/PRE&gt;
&lt;P&gt;The definition Id can be found here in our Definitions Table:&amp;nbsp;&lt;A href="https://developers.hubspot.com/docs/methods/crm-associations/crm-associations-overview" target="_blank"&gt;https://developers.hubspot.com/docs/methods/crm-associations/crm-associations-overview&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To note,&amp;nbsp;&lt;SPAN&gt;Associations are defined based on the type of objects being associated, and the&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;direction&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;of that association. Association definitions are&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;unidirectional&lt;/STRONG&gt;&lt;SPAN&gt;, so you'll use a different definition ID depending on which object type you're starting with.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps!&lt;/P&gt;</description>
      <pubDate>Fri, 01 May 2020 10:41:25 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Association-deal-contact-on-Create-Deal-method-V3/m-p/336011#M32682</guid>
      <dc:creator>Willson</dc:creator>
      <dc:date>2020-05-01T10:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: Association deal - contact on Create Deal method V3</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Association-deal-contact-on-Create-Deal-method-V3/m-p/336137#M32700</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/72929"&gt;@Willson&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the reply. I figured out that 2-step process is the only way, according to the new API documentation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I don't think that is the best solution. Create a deal using the V2 documentation works fine... you can create a deal and at the same time, associate it with a contact, decreasing the numbers of requests made by a external application.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I realy don't understand why Hubspot is making this decision. For me this is a step-back move... Hubspot has a request limit per day/seconds... I believe this new version of Hubspot API's suppose to help developers decrease the numbers of requests... but instead, is increasing those numbers... I realy don't get it!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any way... thanks for the answer!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 May 2020 20:34:10 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Association-deal-contact-on-Create-Deal-method-V3/m-p/336137#M32700</guid>
      <dc:creator>hilton22</dc:creator>
      <dc:date>2020-05-01T20:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: Association deal - contact on Create Deal method V3</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Association-deal-contact-on-Create-Deal-method-V3/m-p/336547#M32761</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/129546"&gt;@hilton22&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I just wanted to say thanks for this feedback, I have forwarded this internally now to ensure we capture any and all feedback in this area!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'll mark this one as solved but let me know if you have any follow-up.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2020 08:35:37 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Association-deal-contact-on-Create-Deal-method-V3/m-p/336547#M32761</guid>
      <dc:creator>Willson</dc:creator>
      <dc:date>2020-05-05T08:35:37Z</dc:date>
    </item>
    <item>
      <title>Re: Association deal - contact on Create Deal method V3</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Association-deal-contact-on-Create-Deal-method-V3/m-p/494563#M46784</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Like&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/129546"&gt;@hilton22&lt;/a&gt;&amp;nbsp;stated, the ability to associate a an object with another upon its creation, in my case I want to associate a company with a deal when I create the company, is important to my business. Is there an update to this feature?&lt;/P&gt;</description>
      <pubDate>Tue, 14 Sep 2021 14:29:21 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Association-deal-contact-on-Create-Deal-method-V3/m-p/494563#M46784</guid>
      <dc:creator>DDSBA</dc:creator>
      <dc:date>2021-09-14T14:29:21Z</dc:date>
    </item>
    <item>
      <title>Re: Association deal - contact on Create Deal method V3</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Association-deal-contact-on-Create-Deal-method-V3/m-p/494634#M46793</link>
      <description>&lt;P&gt;Or is there any way to create a deal and associate the object in one step?&lt;/P&gt;</description>
      <pubDate>Tue, 14 Sep 2021 16:00:15 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Association-deal-contact-on-Create-Deal-method-V3/m-p/494634#M46793</guid>
      <dc:creator>DDSBA</dc:creator>
      <dc:date>2021-09-14T16:00:15Z</dc:date>
    </item>
    <item>
      <title>Re: Association deal - contact on Create Deal method V3</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Association-deal-contact-on-Create-Deal-method-V3/m-p/664045#M54767</link>
      <description>&lt;P&gt;Had do register just to comment, it is incredible how a company as big as hubspot couldn't achiteture it so it would receive only one request.. . Well, it does make me feel a little assured, i can look at my code and don't feel as bad as i should&amp;nbsp;‌&lt;span class="lia-unicode-emoji" title=":face_with_tears_of_joy:"&gt;😂&lt;/span&gt;‌&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jul 2022 20:49:53 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Association-deal-contact-on-Create-Deal-method-V3/m-p/664045#M54767</guid>
      <dc:creator>matheusleitao</dc:creator>
      <dc:date>2022-07-12T20:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: Association deal - contact on Create Deal method V3</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Association-deal-contact-on-Create-Deal-method-V3/m-p/801216#M64495</link>
      <description>&lt;P&gt;It seems your documentation is updated again, so now it does take a single call with `properties` and `associations` again. But now this documentation is (in case of PHP) for the api-client v10, which is in beta, and there is no documentation to be found for v9...&lt;BR /&gt;&lt;BR /&gt;So funny thing is, the v10 documentation works in v9, except the typehinting isn't supporting it, meaning that PHPStan or similar tools are crying that we're sending the wrong object..&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 14:37:07 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Association-deal-contact-on-Create-Deal-method-V3/m-p/801216#M64495</guid>
      <dc:creator>Jebble</dc:creator>
      <dc:date>2023-05-31T14:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: Association deal - contact on Create Deal method V3</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Association-deal-contact-on-Create-Deal-method-V3/m-p/1029213#M75950</link>
      <description>&lt;P&gt;Yeah, this is possible now. For example, have a look at the post from one of the Community members.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.hubspot.com/t5/APIs-Integrations/Is-it-possible-to-associate-a-record-with-a-custom-object-on/td-p/848291" target="_blank" rel="noopener"&gt;https://community.hubspot.com/t5/APIs-Integrations/Is-it-possible-to-associate-a-record-with-a-custom-object-on/td-p/848291&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2024 20:54:30 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Association-deal-contact-on-Create-Deal-method-V3/m-p/1029213#M75950</guid>
      <dc:creator>HemanthKotha</dc:creator>
      <dc:date>2024-08-19T20:54:30Z</dc:date>
    </item>
  </channel>
</rss>

