<?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: Get all associations API in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Get-all-associations-API/m-p/389912#M38451</link>
    <description>&lt;P&gt;Can you clarify - when you say "all associations for a deal" to you mean all the different object types like, contacts, companies, tickets and line-items or do you want to focus on getting only the associated line-items for a deal?&lt;/P&gt;</description>
    <pubDate>Mon, 30 Nov 2020 14:00:40 GMT</pubDate>
    <dc:creator>MichaelC</dc:creator>
    <dc:date>2020-11-30T14:00:40Z</dc:date>
    <item>
      <title>Get all associations API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-all-associations-API/m-p/331804#M32139</link>
      <description>&lt;P&gt;My immeidate challenge has to do with getting line items associated with a deal however according to &lt;A href="https://community.hubspot.com/t5/HubSpot-Ideas/Get-all-Deals-API-Request-All-Associations/idi-p/315097" target="_blank" rel="noopener"&gt;this&lt;/A&gt; post ( which is fairly recent) it doesn't look like its supported. Let me know if it has changed&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Wondering if there is another way to achieve this i.e&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is there a way to get access to ALL “Associations” for a particular type like "deal -&amp;gt; line item"&amp;nbsp; instead of calling following for each individual objectID.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;“/crm-associations/v1/associations/&lt;/SPAN&gt;&lt;STRONG&gt;:objectId&lt;/STRONG&gt;&lt;SPAN&gt;/HUBSPOT_DEFINED/:definitionId”&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Apr 2020 22:37:08 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-all-associations-API/m-p/331804#M32139</guid>
      <dc:creator>amit-mo</dc:creator>
      <dc:date>2020-04-15T22:37:08Z</dc:date>
    </item>
    <item>
      <title>Re: Get all associations API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-all-associations-API/m-p/333698#M32389</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/127568"&gt;@amit-mo&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;Apologies for the delayed answer. Do you still need help with this matter? &amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Sharon&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Apr 2020 09:16:37 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-all-associations-API/m-p/333698#M32389</guid>
      <dc:creator>sharonlicari</dc:creator>
      <dc:date>2020-04-23T09:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: Get all associations API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-all-associations-API/m-p/389698#M38439</link>
      <description>&lt;P&gt;Is there any solution for this?&lt;/P&gt;</description>
      <pubDate>Fri, 27 Nov 2020 18:43:03 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-all-associations-API/m-p/389698#M38439</guid>
      <dc:creator>akurt</dc:creator>
      <dc:date>2020-11-27T18:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: Get all associations API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-all-associations-API/m-p/389719#M38441</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/21301"&gt;@sharonlicari&lt;/a&gt;sorry I missed this earlier but I still need help with this. Its too cumbersome to call one call per item.&lt;/P&gt;</description>
      <pubDate>Sat, 28 Nov 2020 05:21:40 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-all-associations-API/m-p/389719#M38441</guid>
      <dc:creator>amit-mo</dc:creator>
      <dc:date>2020-11-28T05:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: Get all associations API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-all-associations-API/m-p/389902#M38450</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/127568"&gt;@amit-mo&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/151923"&gt;@akurt&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'll tag a few experts that can share their thoughts with you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/2450"&gt;@tjoyce&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/80052"&gt;@malcolm1&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/76423"&gt;@MichaelC&lt;/a&gt;&amp;nbsp;could you please share your knowledge with&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/127568"&gt;@amit-mo&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/151923"&gt;@akurt&lt;/a&gt;?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Sharon&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2020 13:44:15 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-all-associations-API/m-p/389902#M38450</guid>
      <dc:creator>sharonlicari</dc:creator>
      <dc:date>2020-11-30T13:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: Get all associations API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-all-associations-API/m-p/389912#M38451</link>
      <description>&lt;P&gt;Can you clarify - when you say "all associations for a deal" to you mean all the different object types like, contacts, companies, tickets and line-items or do you want to focus on getting only the associated line-items for a deal?&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2020 14:00:40 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-all-associations-API/m-p/389912#M38451</guid>
      <dc:creator>MichaelC</dc:creator>
      <dc:date>2020-11-30T14:00:40Z</dc:date>
    </item>
    <item>
      <title>Re: Get all associations API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-all-associations-API/m-p/389916#M38453</link>
      <description>&lt;P&gt;Ideally All of them not just line item.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Its very cumbersome to call one call per opportunity for each association type.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Think about overhead on Hubspot infrastructure. Deal has at least 5 possible associations, imagine 100K deals that 500K calls just to get the list of all associations for each deal.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the V1 APIs provide the list of multiple associations like contact and account.&amp;nbsp; From the discussions seems like API team is leaning towards providing a seperate API for associations so while contacts and accounts to deal associations still work association to other objects do not. Do I understand correctly that Deal -&amp;gt; Contact and Deal -&amp;gt; Account may not work in future as well ? Please confirm.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2020 14:11:45 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-all-associations-API/m-p/389916#M38453</guid>
      <dc:creator>amit-mo</dc:creator>
      <dc:date>2020-11-30T14:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: Get all associations API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-all-associations-API/m-p/389917#M38454</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/76423"&gt;@MichaelC&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I need to get access to all associations for&amp;nbsp; "deals to contacts" type for all &lt;STRONG&gt;objectIds&lt;/STRONG&gt; once.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;/crm-associations/v1/associations/&lt;STRONG&gt;:objectId&lt;/STRONG&gt;/HUBSPOT_DEFINED/4&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2020 14:12:18 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-all-associations-API/m-p/389917#M38454</guid>
      <dc:creator>akurt</dc:creator>
      <dc:date>2020-11-30T14:12:18Z</dc:date>
    </item>
    <item>
      <title>Re: Get all associations API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-all-associations-API/m-p/389920#M38455</link>
      <description>&lt;P&gt;Have you tried this &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/151923"&gt;@akurt&lt;/a&gt;&amp;nbsp;?&lt;/P&gt;&lt;P&gt;/crm/v3/associations/{fromObjectType}/{toObjectType}/batch/read&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.hubspot.com/docs/api/crm/associations" target="_blank" rel="noopener"&gt;https://developers.hubspot.com/docs/api/crm/associations&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2020 14:15:31 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-all-associations-API/m-p/389920#M38455</guid>
      <dc:creator>MichaelC</dc:creator>
      <dc:date>2020-11-30T14:15:31Z</dc:date>
    </item>
    <item>
      <title>Re: Get all associations API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-all-associations-API/m-p/389930#M38456</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/127568"&gt;@amit-mo&lt;/a&gt;&amp;nbsp; They have created custom objects in the enteprice package so there is not only 5 possible ways - there is an infinate amount of objects (not only deals, contacts, tickets, products and companies). You can make your own object called "houses" and add manual properties like "wall", "door" and "windows" to it now if I understand the documentation correctly (I only have professional myself).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can not find anything to support getting multiple object associations for one specific object. Only 1 - 1 (example deals to contacts).&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/21301"&gt;@sharonlicari&lt;/a&gt;&amp;nbsp; could confirm this by finding someone at hubspot that has deeper knowledge about &lt;STRONG&gt;associations&lt;/STRONG&gt; (a product manager or something similar - I dont know how your organisation works exactly &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2020 14:33:22 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-all-associations-API/m-p/389930#M38456</guid>
      <dc:creator>MichaelC</dc:creator>
      <dc:date>2020-11-30T14:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: Get all associations API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-all-associations-API/m-p/389936#M38458</link>
      <description>&lt;P&gt;Good point &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/76423"&gt;@MichaelC&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What does it to the "Named" batch API that you mentioned to &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/151923"&gt;@akurt&lt;/a&gt; i.e. &lt;A href="https://developers.hubspot.com/docs/api/crm/associations" target="_blank" rel="noopener nofollow noopener noreferrer"&gt;https://developers.hubspot.com/docs/api/crm/associations&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now that one can associate any object to any object how do these named API work? Any idea ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On a separate not&amp;nbsp; &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/21301"&gt;@sharonlicari&lt;/a&gt;&amp;nbsp; here is what I am looking for in order of priority&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Ability to request all assoctions when I call API to get a particular type of oject. So if I call deals/paged I want the return result to have all the assocations to ALL objects&lt;/P&gt;&lt;P&gt;2. IF not #1, Given an ID for an Object I want all assocations related to that particulart object like for a Deal with ID give me all associations to contact, ticket, customObject1, accounts , customOjbect2&lt;/P&gt;&lt;P&gt;3. IF not #2, Given two object types ,&amp;nbsp; object Type 1 ( say Deals)&amp;nbsp; and Object Type 2 ( Say CusttomOjbect1) I want to get all assocations between OjbectType1 -&amp;gt; ObjectType2 i.e. Deals -&amp;gt; CusttomOjbect1 in my example&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2020 14:50:10 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-all-associations-API/m-p/389936#M38458</guid>
      <dc:creator>amit-mo</dc:creator>
      <dc:date>2020-11-30T14:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: Get all associations API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-all-associations-API/m-p/389990#M38466</link>
      <description>&lt;P&gt;Yes, I had tried but could not make it work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2020 16:43:08 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-all-associations-API/m-p/389990#M38466</guid>
      <dc:creator>akurt</dc:creator>
      <dc:date>2020-11-30T16:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: Get all associations API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-all-associations-API/m-p/390001#M38469</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/151923"&gt;@akurt&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Use method POST,&lt;/P&gt;&lt;P&gt;URL:&amp;nbsp;&lt;A href="https://api.hubapi.com/crm/v3/associations/deals/contact/batch/read?hapikey=yourAPIkey" target="_blank"&gt;https://api.hubapi.com/crm/v3/associations/deals/contact/batch/read?hapikey=yourAPIkey&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In my case I want to get all contacts associated with a deal.&lt;/P&gt;&lt;P&gt;If I instead wanted all companies associated with a contact I would write this:&lt;/P&gt;&lt;P&gt;URL:&amp;nbsp;&lt;A href="https://api.hubapi.com/crm/v3/associations/contacts/companies/batch/read?hapikey=yourAPIkey" target="_blank"&gt;https://api.hubapi.com/crm/v3/associations/contacts/companies/batch/read?hapikey=yourAPIkey&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my example with the deal vs contacts above I use the HTTP header:&amp;nbsp;"Content-type":"application/json"&lt;/P&gt;&lt;P&gt;and in body (JSON) I use:&amp;nbsp;&lt;/P&gt;&lt;P&gt;{"inputs": [{"id": "2776705763"}]}&lt;/P&gt;&lt;P&gt;This JSON code is for Deal ID: 2776705763&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This will return all the ID's for the contacts associated with this deal: Like this:&lt;/P&gt;&lt;P&gt;{"status": "COMPLETE","results": [{"from": {"id": "2776705763"},&lt;BR /&gt;"to": [{"id": "578651","type": "deal_to_contact"}]}],&lt;BR /&gt;"startedAt": "2020-11-30T17:13:31.409Z","completedAt": "2020-11-30T17:13:31.419Z"}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my case the contact with ID 578651 was the only contact connected to this ID.&lt;/P&gt;&lt;P&gt;You can also add multiple deals to get all the contacts for all the deals you enter:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{"inputs": [&lt;BR /&gt;{&lt;BR /&gt;"id": "2776705763"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"id": "2776705764"&lt;BR /&gt;}&lt;BR /&gt;]&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2020 17:19:30 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-all-associations-API/m-p/390001#M38469</guid>
      <dc:creator>MichaelC</dc:creator>
      <dc:date>2020-11-30T17:19:30Z</dc:date>
    </item>
    <item>
      <title>Re: Get all associations API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-all-associations-API/m-p/390111#M38483</link>
      <description>&lt;P&gt;Thanks for your guidance&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/76423"&gt;@MichaelC&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2020 06:35:53 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-all-associations-API/m-p/390111#M38483</guid>
      <dc:creator>akurt</dc:creator>
      <dc:date>2020-12-01T06:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: Get all associations API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-all-associations-API/m-p/694570#M57034</link>
      <description>&lt;P&gt;2 years later, and I still find only that same solution. Behind the "ALL" solution above we still must enter an array of ObjectIds. I had many objects and I want to get all associations of certain type (for example deal-to-contact), NOT by any specific ID (which is by its own cumbersome to find).&amp;nbsp;&lt;BR /&gt;Is there any new solution since the above unresolved thread?&lt;/P&gt;</description>
      <pubDate>Sun, 18 Sep 2022 08:51:36 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-all-associations-API/m-p/694570#M57034</guid>
      <dc:creator>TShma</dc:creator>
      <dc:date>2022-09-18T08:51:36Z</dc:date>
    </item>
  </channel>
</rss>

