<?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: Is it possible to associate an object using a custom property? in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Is-it-possible-to-associate-an-object-using-a-custom-property/m-p/912307#M70622</link>
    <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/648282"&gt;@RAraujo0&lt;/a&gt;&amp;nbsp;- perhaps i'm misunderstanding your question, but using that API any hard coded value or property value can be used to pass the hubspot id value for the two objects you are trying to associate, Just make sure that the association ID is defined for the relationship between the objects.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope that helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steve&lt;/P&gt;</description>
    <pubDate>Fri, 26 Jan 2024 18:20:43 GMT</pubDate>
    <dc:creator>SteveHTM</dc:creator>
    <dc:date>2024-01-26T18:20:43Z</dc:date>
    <item>
      <title>Is it possible to associate an object using a custom property?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Is-it-possible-to-associate-an-object-using-a-custom-property/m-p/912293#M70619</link>
      <description>&lt;P&gt;Is is possible to associate an object to another through association api using a custom property instead of the hs_object_id?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;/crm/v4​/objects​/{fromObjectType}​/{fromObjectId}​/associations​/default​/{toObjectType}​/{toObjectId}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This "fromObjectId" and "toObjectId" needs to be the&amp;nbsp;hs_object_id or can be a custom property?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2024 17:58:08 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Is-it-possible-to-associate-an-object-using-a-custom-property/m-p/912293#M70619</guid>
      <dc:creator>RAraujo0</dc:creator>
      <dc:date>2024-01-26T17:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to associate an object using a custom property?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Is-it-possible-to-associate-an-object-using-a-custom-property/m-p/912307#M70622</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/648282"&gt;@RAraujo0&lt;/a&gt;&amp;nbsp;- perhaps i'm misunderstanding your question, but using that API any hard coded value or property value can be used to pass the hubspot id value for the two objects you are trying to associate, Just make sure that the association ID is defined for the relationship between the objects.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope that helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steve&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2024 18:20:43 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Is-it-possible-to-associate-an-object-using-a-custom-property/m-p/912307#M70622</guid>
      <dc:creator>SteveHTM</dc:creator>
      <dc:date>2024-01-26T18:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to associate an object using a custom property?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Is-it-possible-to-associate-an-object-using-a-custom-property/m-p/912311#M70624</link>
      <description>&lt;P&gt;My question is: to associate a contact to a company for example, can I use a custom property as the ID or it always need to be the main ID from contact?&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/crm/v4​/objects​/contacts​/{mainID or custom property as ID?}​/associations​/default​/companies/{mainID or custom property as ID?}&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2024 18:24:57 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Is-it-possible-to-associate-an-object-using-a-custom-property/m-p/912311#M70624</guid>
      <dc:creator>RAraujo0</dc:creator>
      <dc:date>2024-01-26T18:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to associate an object using a custom property?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Is-it-possible-to-associate-an-object-using-a-custom-property/m-p/912366#M70628</link>
      <description>&lt;P&gt;The API URL is contstructed as you suggest (in Python for example):&lt;/P&gt;
&lt;P&gt;"&lt;A href="https://api.hubapi.com/crm/v4/objects/" target="_blank"&gt;https://api.hubapi.com/crm/v4/objects/&lt;/A&gt;" + ContactType + "/" + str(ContactId) + "/associations/" + CompanyType + "/" + str(CompanyId)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But if you have a custom object type, you substitute that type identifier and Object ID for one or both of these inserted value pairs. Clearly the ID in question is the HubSpot object ID for whatever type of object - however you have obtained that value previously. It could be hard coded or a value from another property - its just a digit string.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steve&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2024 20:05:30 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Is-it-possible-to-associate-an-object-using-a-custom-property/m-p/912366#M70628</guid>
      <dc:creator>SteveHTM</dc:creator>
      <dc:date>2024-01-26T20:05:30Z</dc:date>
    </item>
  </channel>
</rss>

