<?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: Contact associations on custom object not saving in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Contact-associations-on-custom-object-not-saving/m-p/451856#M44566</link>
    <description>&lt;P&gt;I recreated the assoction with ONE_TO_MANY as cardinality and inverseCardinality and that corrected the issue.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 28 Jun 2021 01:18:42 GMT</pubDate>
    <dc:creator>Augustus</dc:creator>
    <dc:date>2021-06-28T01:18:42Z</dc:date>
    <item>
      <title>Contact associations on custom object not saving</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Contact-associations-on-custom-object-not-saving/m-p/451661#M44558</link>
      <description>&lt;P&gt;I'm executing a script that takes a list of custom object-to-contact id pairs where each pair of ids needs to be associated to each other.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For each id pair, I'm using the association end point on the object to create the association.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ex.&amp;nbsp;&lt;A href="https://api.hubapi.com/crm/v3/objects/{custom" target="_blank" rel="noopener"&gt;https://api.hubapi.com/crm/v3/objects/{custom_&lt;/A&gt;obj_type}/&lt;A href="https://api.hubapi.com/crm/v3/objects/{custom" target="_blank" rel="noopener"&gt;{custom_&lt;/A&gt;obj_id}/associations/contacts/{contact_id}/custom_object_to_contact&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For each pair, I receive back a 200 response indicating that the association has been made successfully, however, in cases where a contact id appears more than once in the list, it is only actually saving one occurrence of the contact id to its respective custom object - all other occurrences of this contact id associating to other custom objects will not save - THIS IS DESPITE RECEIVING BACK A 200 ON THESE OTHER OCCURRENCES.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does this have something to do with API calls being made too frequently on a single contact ID?&amp;nbsp; I have a 1 second delay between each API call - should this be extended?&lt;/P&gt;</description>
      <pubDate>Sat, 26 Jun 2021 05:55:30 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Contact-associations-on-custom-object-not-saving/m-p/451661#M44558</guid>
      <dc:creator>Augustus</dc:creator>
      <dc:date>2021-06-26T05:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: Contact associations on custom object not saving</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Contact-associations-on-custom-object-not-saving/m-p/451665#M44559</link>
      <description>&lt;P&gt;I have identified the issue that the association cardinality/inverseCardinality between these two objects is ONE_TO_MANY/ONE_TO_ONE and in fact needs to be ONE_TO_MANY in both directions.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Since I already have this association in place with objects associated, is there a way to update the association cardinality types directly?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ideally, there is a method to update without needing to remove the objects already associated, re-create the association, and then re-associate all of the objects.&lt;/P&gt;</description>
      <pubDate>Sat, 26 Jun 2021 07:00:12 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Contact-associations-on-custom-object-not-saving/m-p/451665#M44559</guid>
      <dc:creator>Augustus</dc:creator>
      <dc:date>2021-06-26T07:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: Contact associations on custom object not saving</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Contact-associations-on-custom-object-not-saving/m-p/451856#M44566</link>
      <description>&lt;P&gt;I recreated the assoction with ONE_TO_MANY as cardinality and inverseCardinality and that corrected the issue.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jun 2021 01:18:42 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Contact-associations-on-custom-object-not-saving/m-p/451856#M44566</guid>
      <dc:creator>Augustus</dc:creator>
      <dc:date>2021-06-28T01:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: Contact associations on custom object not saving</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Contact-associations-on-custom-object-not-saving/m-p/451980#M44576</link>
      <description>&lt;P&gt;thank you for sharing! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jun 2021 09:06:53 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Contact-associations-on-custom-object-not-saving/m-p/451980#M44576</guid>
      <dc:creator>sharonlicari</dc:creator>
      <dc:date>2021-06-28T09:06:53Z</dc:date>
    </item>
    <item>
      <title>Re: Contact associations on custom object not saving</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Contact-associations-on-custom-object-not-saving/m-p/452392#M44603</link>
      <description>&lt;P&gt;The 200 success responses on the updates is what threw me off because it appeared that all of the associations were saving correctly but it wasn't clear that on each 200 success being returned, the back-end was implicitly removing the association for that contact from the other object it was already associated with.&amp;nbsp; It would be a nice feature if the response could provide some indication that an association was removed while making the new association due to the cardinality restriction.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jun 2021 04:30:55 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Contact-associations-on-custom-object-not-saving/m-p/452392#M44603</guid>
      <dc:creator>Augustus</dc:creator>
      <dc:date>2021-06-29T04:30:55Z</dc:date>
    </item>
  </channel>
</rss>

