<?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 Association labels in Import API in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Association-labels-in-Import-API/m-p/783842#M63285</link>
    <description>&lt;P&gt;&lt;FONT size="4"&gt;Hello, community!&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;I faced an issue a few days ago and haven't managed to find a solution in the documentation or in the community. So I've decided to post it here along with the solution.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="6"&gt;The problem&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;Using&lt;STRONG&gt; Import API V3&lt;/STRONG&gt; to import &lt;STRONG&gt;multiple objects&lt;/STRONG&gt; in a &lt;STRONG&gt;single file&lt;/STRONG&gt; and associate these objects with&lt;STRONG&gt; association labels&lt;/STRONG&gt;.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="6"&gt;Solution&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="5"&gt;Part 1: Build import csv file for multiple objects plus associations (without association labels this time)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;Step 1: I've created the column mapping as described &lt;A href="https://developers.hubspot.com/docs/api/crm/imports" target="_blank" rel="noopener"&gt;here&lt;/A&gt;. I've added all the properties for all the objects with I wanted to import in the json.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;Note:&amp;nbsp;&lt;EM&gt;columnName&amp;nbsp;&lt;/EM&gt;is used to match the columns in the csv or excel file and it doesn't matter if it's the same as the HubSpot label of the property.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&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="javascript"&gt;{
  "name": "myImport",
  "files": [
    {
      "fileName": "myData.csv",
      "fileFormat": "CSV",
      "dateFormat": "DAY_MONTH_YEAR",
      "fileImportPage": {
        "hasHeader": true,
        "columnMappings": [
          {
            "columnObjectTypeId": "0-1",
            "columnName": "contact|firstname",
            "propertyName": "firstname",
            "idColumnType": null
          },
          {
            "columnObjectTypeId": "0-1",
            "columnName": "contact|lastname",
            "propertyName": "lastname",
            "idColumnType": null
          },
          {
            "columnObjectTypeId": "0-1",
            "columnName": "contact|email",
            "propertyName": "email",
            "idColumnType": "HUBSPOT_ALTERNATE_ID"
          },
          {
            "columnObjectTypeId": "0-2",
            "columnName": "company|name",
            "propertyName": "name",
            "idColumnType": null
          },
          {
            "columnObjectTypeId": "0-2",
            "columnName": "company|domain",
            "propertyName": "domain",
            "idColumnType": "HUBSPOT_ALTERNATE_ID"
          }
        ]
      }
    }
  ]
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;Step 2: I've created a header for the csv file with&amp;nbsp;all the properties for all the objects (same as the column mapping, in the same order).&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-04-19 at 15.09.57.png" style="width: 999px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/89518i56861FAC2A5D9E27/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2023-04-19 at 15.09.57.png" alt="Screenshot 2023-04-19 at 15.09.57.png" /&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;Step 3: I've added in separate rows the data for each object.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;Note: don't try to save place by adding 2 or more different objects in one row (I know you could), because you will lose the customizability of the associations between them. More on this later.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-04-19 at 15.09.08.png" style="width: 999px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/89517i4F6C24BDFF69D9AA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2023-04-19 at 15.09.08.png" alt="Screenshot 2023-04-19 at 15.09.08.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;Step 4: I've added the associations rows below the data rows, by filling only the 2 or more objects'&amp;nbsp;HUBSPOT_ALTERNATE_ID or&amp;nbsp;HUBSPOT_OBJECT_ID columns.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-04-19 at 15.07.42.png" style="width: 999px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/89516iB971E5C7323B6568/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2023-04-19 at 15.07.42.png" alt="Screenshot 2023-04-19 at 15.07.42.png" /&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;Until this part, after spending several hours reading documentation and experimenting, you could figure out this technique on your own.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="5"&gt;Part 2: Add association labels&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;Ok, so this is the trickier part because it's not documented at the time I'm writing this little tutorial.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;Step 1: I've created a new USER_DEFINED association label in the first object, which I wanted to associate with the second one.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;More on working with associations &lt;A href="https://knowledge.hubspot.com/crm-setup/associate-records" target="_blank" rel="noopener"&gt;here&lt;/A&gt; and &lt;A href="https://knowledge.hubspot.com/crm-setup/create-and-use-association-labels" target="_blank" rel="noopener"&gt;here.&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;Step 2: I've added a new column mapping item to the json, at the last place in the&amp;nbsp;&lt;EM&gt;columnMapping&amp;nbsp;&lt;/EM&gt;array.&lt;/FONT&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;{
   "columnObjectTypeId": "0-1",
   "toColumnObjectTypeId": "0-2",
   "columnName": "contact|association_label",
   "propertyName": null,
   "idColumnType": "FLEXIBLE_ASSOCIATION_LABEL"
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;Explanation:&lt;/FONT&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;FONT size="4"&gt;columnObjectTypeId: the ID of the object where the association label was created&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT size="4"&gt;toColumnObjectTypeId:&amp;nbsp;the ID of the associated object&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT size="4"&gt;columnName: has to match the column header from the csv or excel sheet&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT size="4"&gt;propertyName: this has to be null&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT size="4"&gt;idColumnType: this is the tricky part that you won't find anywhere. This will be equal to "FLEXIBLE_ASSOCIATION_LABEL", in order to signal to HubSpot, that this column will be used to identify association labels&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;FONT size="4"&gt;Step 3: I've added the association labels to the csv under the column I've created &lt;EM&gt;(contact|association_label)&lt;/EM&gt; after all the other columns. &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;Note: If you have more than one, separate them with&amp;nbsp;semicolons.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-04-19 at 15.43.05.png" style="width: 999px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/89521i4E9D9E6E0473FEF5/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2023-04-19 at 15.43.05.png" alt="Screenshot 2023-04-19 at 15.43.05.png" /&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;After these steps, I built the request and sent it to HubSpot. For that, you can find documentation &lt;A href="https://developers.hubspot.com/docs/api/crm/imports" target="_blank" rel="noopener"&gt;here&lt;/A&gt;.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;Many thanks to&amp;nbsp;&lt;SPAN&gt;Gonzalo Torreras, who helped me figure out the solution.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;Hopefully, this will help many of you.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;Wish you all a wonderful day,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;Hunor Szondi&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 19 Apr 2023 13:03:09 GMT</pubDate>
    <dc:creator>HunorSZ</dc:creator>
    <dc:date>2023-04-19T13:03:09Z</dc:date>
    <item>
      <title>Association labels in Import API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Association-labels-in-Import-API/m-p/783842#M63285</link>
      <description>&lt;P&gt;&lt;FONT size="4"&gt;Hello, community!&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;I faced an issue a few days ago and haven't managed to find a solution in the documentation or in the community. So I've decided to post it here along with the solution.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="6"&gt;The problem&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;Using&lt;STRONG&gt; Import API V3&lt;/STRONG&gt; to import &lt;STRONG&gt;multiple objects&lt;/STRONG&gt; in a &lt;STRONG&gt;single file&lt;/STRONG&gt; and associate these objects with&lt;STRONG&gt; association labels&lt;/STRONG&gt;.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="6"&gt;Solution&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="5"&gt;Part 1: Build import csv file for multiple objects plus associations (without association labels this time)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;Step 1: I've created the column mapping as described &lt;A href="https://developers.hubspot.com/docs/api/crm/imports" target="_blank" rel="noopener"&gt;here&lt;/A&gt;. I've added all the properties for all the objects with I wanted to import in the json.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;Note:&amp;nbsp;&lt;EM&gt;columnName&amp;nbsp;&lt;/EM&gt;is used to match the columns in the csv or excel file and it doesn't matter if it's the same as the HubSpot label of the property.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&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="javascript"&gt;{
  "name": "myImport",
  "files": [
    {
      "fileName": "myData.csv",
      "fileFormat": "CSV",
      "dateFormat": "DAY_MONTH_YEAR",
      "fileImportPage": {
        "hasHeader": true,
        "columnMappings": [
          {
            "columnObjectTypeId": "0-1",
            "columnName": "contact|firstname",
            "propertyName": "firstname",
            "idColumnType": null
          },
          {
            "columnObjectTypeId": "0-1",
            "columnName": "contact|lastname",
            "propertyName": "lastname",
            "idColumnType": null
          },
          {
            "columnObjectTypeId": "0-1",
            "columnName": "contact|email",
            "propertyName": "email",
            "idColumnType": "HUBSPOT_ALTERNATE_ID"
          },
          {
            "columnObjectTypeId": "0-2",
            "columnName": "company|name",
            "propertyName": "name",
            "idColumnType": null
          },
          {
            "columnObjectTypeId": "0-2",
            "columnName": "company|domain",
            "propertyName": "domain",
            "idColumnType": "HUBSPOT_ALTERNATE_ID"
          }
        ]
      }
    }
  ]
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;Step 2: I've created a header for the csv file with&amp;nbsp;all the properties for all the objects (same as the column mapping, in the same order).&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-04-19 at 15.09.57.png" style="width: 999px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/89518i56861FAC2A5D9E27/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2023-04-19 at 15.09.57.png" alt="Screenshot 2023-04-19 at 15.09.57.png" /&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;Step 3: I've added in separate rows the data for each object.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;Note: don't try to save place by adding 2 or more different objects in one row (I know you could), because you will lose the customizability of the associations between them. More on this later.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-04-19 at 15.09.08.png" style="width: 999px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/89517i4F6C24BDFF69D9AA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2023-04-19 at 15.09.08.png" alt="Screenshot 2023-04-19 at 15.09.08.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;Step 4: I've added the associations rows below the data rows, by filling only the 2 or more objects'&amp;nbsp;HUBSPOT_ALTERNATE_ID or&amp;nbsp;HUBSPOT_OBJECT_ID columns.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-04-19 at 15.07.42.png" style="width: 999px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/89516iB971E5C7323B6568/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2023-04-19 at 15.07.42.png" alt="Screenshot 2023-04-19 at 15.07.42.png" /&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;Until this part, after spending several hours reading documentation and experimenting, you could figure out this technique on your own.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="5"&gt;Part 2: Add association labels&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;Ok, so this is the trickier part because it's not documented at the time I'm writing this little tutorial.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;Step 1: I've created a new USER_DEFINED association label in the first object, which I wanted to associate with the second one.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;More on working with associations &lt;A href="https://knowledge.hubspot.com/crm-setup/associate-records" target="_blank" rel="noopener"&gt;here&lt;/A&gt; and &lt;A href="https://knowledge.hubspot.com/crm-setup/create-and-use-association-labels" target="_blank" rel="noopener"&gt;here.&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;Step 2: I've added a new column mapping item to the json, at the last place in the&amp;nbsp;&lt;EM&gt;columnMapping&amp;nbsp;&lt;/EM&gt;array.&lt;/FONT&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;{
   "columnObjectTypeId": "0-1",
   "toColumnObjectTypeId": "0-2",
   "columnName": "contact|association_label",
   "propertyName": null,
   "idColumnType": "FLEXIBLE_ASSOCIATION_LABEL"
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;Explanation:&lt;/FONT&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;FONT size="4"&gt;columnObjectTypeId: the ID of the object where the association label was created&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT size="4"&gt;toColumnObjectTypeId:&amp;nbsp;the ID of the associated object&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT size="4"&gt;columnName: has to match the column header from the csv or excel sheet&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT size="4"&gt;propertyName: this has to be null&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT size="4"&gt;idColumnType: this is the tricky part that you won't find anywhere. This will be equal to "FLEXIBLE_ASSOCIATION_LABEL", in order to signal to HubSpot, that this column will be used to identify association labels&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;FONT size="4"&gt;Step 3: I've added the association labels to the csv under the column I've created &lt;EM&gt;(contact|association_label)&lt;/EM&gt; after all the other columns. &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;Note: If you have more than one, separate them with&amp;nbsp;semicolons.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-04-19 at 15.43.05.png" style="width: 999px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/89521i4E9D9E6E0473FEF5/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2023-04-19 at 15.43.05.png" alt="Screenshot 2023-04-19 at 15.43.05.png" /&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;After these steps, I built the request and sent it to HubSpot. For that, you can find documentation &lt;A href="https://developers.hubspot.com/docs/api/crm/imports" target="_blank" rel="noopener"&gt;here&lt;/A&gt;.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;Many thanks to&amp;nbsp;&lt;SPAN&gt;Gonzalo Torreras, who helped me figure out the solution.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;Hopefully, this will help many of you.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;Wish you all a wonderful day,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;Hunor Szondi&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 13:03:09 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Association-labels-in-Import-API/m-p/783842#M63285</guid>
      <dc:creator>HunorSZ</dc:creator>
      <dc:date>2023-04-19T13:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: Association labels in Import API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Association-labels-in-Import-API/m-p/784053#M63295</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/555906"&gt;@HunorSZ&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; Thank you very much for sharing! — Jaycee&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 18:08:45 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Association-labels-in-Import-API/m-p/784053#M63295</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2023-04-19T18:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: Association labels in Import API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Association-labels-in-Import-API/m-p/854842#M67704</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/555906"&gt;@HunorSZ&lt;/a&gt;&amp;nbsp;, Many Thanks for sharing this info!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2023 14:46:17 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Association-labels-in-Import-API/m-p/854842#M67704</guid>
      <dc:creator>03345</dc:creator>
      <dc:date>2023-09-25T14:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: Association labels in Import API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Association-labels-in-Import-API/m-p/868684#M68469</link>
      <description>&lt;P&gt;Do you happen to have and examples of how to just do a straight CSV import?&amp;nbsp; I just need to replace all data in a given table daily and can't find an examples of what the json might look like.&amp;nbsp; Any hep would be appreciated.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2023 15:22:45 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Association-labels-in-Import-API/m-p/868684#M68469</guid>
      <dc:creator>SIves6</dc:creator>
      <dc:date>2023-10-23T15:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: Association labels in Import API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Association-labels-in-Import-API/m-p/1066262#M78012</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/555906"&gt;@HunorSZ&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First of all, thank you for your post. It helped me a lot with a use case I was solving, which involves file imports between contacts and deals.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you'll allow me, I have a question about a new use case that is very similar to this one, but unfortunately this solution didn't work. Or at least what I tried to do.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It would basically be using the association between the same object (contacts to contacts).&lt;/P&gt;&lt;P&gt;All my attempts to populate the column with the association label always led to the same error when importing the file: "Association label not found". Despite the existence of these labels in HubSpot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you ever experienced this type of situation? Do you have any advice to give?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;rocketman22&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2024 12:50:45 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Association-labels-in-Import-API/m-p/1066262#M78012</guid>
      <dc:creator>rocketman22</dc:creator>
      <dc:date>2024-11-07T12:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: Association labels in Import API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Association-labels-in-Import-API/m-p/1077468#M78675</link>
      <description>&lt;P&gt;Import API does saves a lot of hassle of dealing with object associations, currently working on multifle imports .&lt;/P&gt;</description>
      <pubDate>Mon, 02 Dec 2024 06:26:40 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Association-labels-in-Import-API/m-p/1077468#M78675</guid>
      <dc:creator>MDev28</dc:creator>
      <dc:date>2024-12-02T06:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: Association labels in Import API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Association-labels-in-Import-API/m-p/1077471#M78676</link>
      <description>&lt;P&gt;Try using associationtype id , it should be in documentation contacts to contacts.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Dec 2024 06:29:48 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Association-labels-in-Import-API/m-p/1077471#M78676</guid>
      <dc:creator>MDev28</dc:creator>
      <dc:date>2024-12-02T06:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: Association labels in Import API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Association-labels-in-Import-API/m-p/1099275#M79819</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/555906"&gt;@HunorSZ&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/768458"&gt;@MDev28&lt;/a&gt;&amp;nbsp; do you know to do an import config when you have mutlple objects, and set the association labels for each?&amp;nbsp; I have this setup:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;...
{
                "columnName": "assoc_label_contact_to_cp_fp",
                "columnType": "FLEXIBLE_ASSOCIATION_LABEL",
                "columnObjectTypeId": "0-1",
                "toColumnObjectTypeId": "2-11111111"
              },
              {
                "columnName": "assoc_label_cp_user_to_contact",
                "columnType": "FLEXIBLE_ASSOCIATION_LABEL",
                "columnObjectTypeId": "2-33333333",
                "toColumnObjectTypeId": "0-1"
              },
              {
                "columnName": "assoc_label_cp_user_to_cp_fp",
                "columnType": "FLEXIBLE_ASSOCIATION_LABEL",
                "columnObjectTypeId": "2-33333333",
                "toColumnObjectTypeId": "2-11111111"
              },
              {
                "columnName": "assoc_label_cp_user_to_deal",
                "columnType": "FLEXIBLE_ASSOCIATION_LABEL",
                "columnObjectTypeId": "2-33333333",
                "toColumnObjectTypeId": "0-3"
              },
              {
                "columnName": "assoc_label_deal_to_cp_fp",
                "columnType": "FLEXIBLE_ASSOCIATION_LABEL",
                "columnObjectTypeId": "0-3",
                "toColumnObjectTypeId": "2-11111111"
              },
              {
                "columnName": "assoc_label_eo_deal_to_contact",
                "columnType": "FLEXIBLE_ASSOCIATION_LABEL",
                "columnObjectTypeId": "0-3",
                "toColumnObjectTypeId": "0-1"
              }
...&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I cant not get the request to process.&amp;nbsp; Yes, they are in the spreadsheet. Without these&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;"columnType"&lt;/SPAN&gt;: &lt;SPAN&gt;"FLEXIBLE_ASSOCIATION_LABEL"&lt;/SPAN&gt;,&lt;/PRE&gt;&lt;P&gt;columns, it processes fine (assuming i remove those columns from the spreadsheet file being imported, of course).&amp;nbsp; So, what am I doing wrong here?&amp;nbsp; Do I need to reference a type ID instead of just the label for the custom objects?&amp;nbsp; Should I always use the type id, or is the word label enough?&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 24 Jan 2025 18:50:11 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Association-labels-in-Import-API/m-p/1099275#M79819</guid>
      <dc:creator>CP-BWG</dc:creator>
      <dc:date>2025-01-24T18:50:11Z</dc:date>
    </item>
  </channel>
</rss>

