<?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: Associations between custom objects in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Associations-between-custom-objects/m-p/924928#M71165</link>
    <description>&lt;P&gt;Ultimately, I found the solution.&amp;nbsp;It was necessary to create association with a label 'LABEL XXX' and put this label in the type field.&lt;/P&gt;</description>
    <pubDate>Mon, 19 Feb 2024 14:05:07 GMT</pubDate>
    <dc:creator>DGROUSSEAUD</dc:creator>
    <dc:date>2024-02-19T14:05:07Z</dc:date>
    <item>
      <title>Associations between custom objects</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Associations-between-custom-objects/m-p/924912#M71162</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I want create an association between 2 same type of custom object(Bases) by API.&lt;/P&gt;&lt;P&gt;I tried this request:&lt;/P&gt;&lt;P&gt;- POST&lt;/P&gt;&lt;P&gt;- &lt;A href="https://api.hubapi.com/crm/v3/associations/2-/2-XXXXXXX/batch/create" target="_blank" rel="noopener"&gt;https://api.hubapi.com/crm/v3/associations/2-/2-XXXXXXX/batch/create&lt;/A&gt;&lt;/P&gt;&lt;P&gt;-&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;{
  "inputs": [
    {
      "from": {
        "id": "ID_CUSTOM_OBJECT_A"
      },
      "to": {
        "id": "ID_CUSTOM_OBJECT_B"
      },
      "type": "2-XXXXXXXX_to_2-XXXXXXXX"
    }
  ]
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My problem is about fill the type field, in api doc, the given example is&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="json"&gt; "type": "contact_to_company"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I made some tries: 'base_to_base', 'bases_to_bases', both with uppercase, '2-XXXXXXXX_to_2-XXXXXXXX', ...&lt;/P&gt;&lt;P&gt;The error message is:&amp;nbsp;&lt;/P&gt;&lt;P&gt;"subCategory": "crm.associations.INVALID_ASSOCIATION_TYPE",&lt;/P&gt;&lt;P&gt;"message": " 'BAD TYPE' is not a valid association type between XXXXXXXXX and XXXXXXXXX"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I cannot find in the interface the expected type. I want some help about this thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2024 13:31:13 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Associations-between-custom-objects/m-p/924912#M71162</guid>
      <dc:creator>DGROUSSEAUD</dc:creator>
      <dc:date>2024-02-19T13:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: Associations between custom objects</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Associations-between-custom-objects/m-p/924928#M71165</link>
      <description>&lt;P&gt;Ultimately, I found the solution.&amp;nbsp;It was necessary to create association with a label 'LABEL XXX' and put this label in the type field.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2024 14:05:07 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Associations-between-custom-objects/m-p/924928#M71165</guid>
      <dc:creator>DGROUSSEAUD</dc:creator>
      <dc:date>2024-02-19T14:05:07Z</dc:date>
    </item>
  </channel>
</rss>

