<?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 Associations v4 documentation need some correction (python) in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Associations-v4-documentation-need-some-correction-python/m-p/822351#M65774</link>
    <description>&lt;P&gt;Im trying to do association between two object in workflow and Im able to trigger it inside the documentation page however the coding will not work in visual studio code or Hubspot workflow custom code&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and figuare out out the funtion display on documentation and the physical libraries's function is different.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TGJW_1-1689804645190.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/95076iFD2BE75EFEDD1C45/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TGJW_1-1689804645190.png" alt="TGJW_1-1689804645190.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;issue line &amp;gt;&amp;gt; api_response = client.crm.associations.v4.basic_api.put_crm_v4_objects_from_object_type_from_object_id_associations_default_to_object_type_to_object_id(from_object_type="ID", from_object_id=ID, to_object_type="ID", to_object_id=ID)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;function to change to make it work.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;from (show on documentation)&lt;UL&gt;&lt;LI&gt;put_crm_v4_objects_from_object_type_from_object_id_associations_default_to_object_type_to_object_id&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;to (for code editor)&amp;nbsp;inside the libraies of basic_api.py file line 348 is the funtion that make it work&lt;UL&gt;&lt;LI&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;create_default&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;another issues is this libraries does not work in workflow custom code&lt;/P&gt;</description>
    <pubDate>Wed, 19 Jul 2023 22:30:13 GMT</pubDate>
    <dc:creator>TGJW</dc:creator>
    <dc:date>2023-07-19T22:30:13Z</dc:date>
    <item>
      <title>Associations v4 documentation need some correction (python)</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Associations-v4-documentation-need-some-correction-python/m-p/822351#M65774</link>
      <description>&lt;P&gt;Im trying to do association between two object in workflow and Im able to trigger it inside the documentation page however the coding will not work in visual studio code or Hubspot workflow custom code&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and figuare out out the funtion display on documentation and the physical libraries's function is different.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TGJW_1-1689804645190.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/95076iFD2BE75EFEDD1C45/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TGJW_1-1689804645190.png" alt="TGJW_1-1689804645190.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;issue line &amp;gt;&amp;gt; api_response = client.crm.associations.v4.basic_api.put_crm_v4_objects_from_object_type_from_object_id_associations_default_to_object_type_to_object_id(from_object_type="ID", from_object_id=ID, to_object_type="ID", to_object_id=ID)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;function to change to make it work.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;from (show on documentation)&lt;UL&gt;&lt;LI&gt;put_crm_v4_objects_from_object_type_from_object_id_associations_default_to_object_type_to_object_id&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;to (for code editor)&amp;nbsp;inside the libraies of basic_api.py file line 348 is the funtion that make it work&lt;UL&gt;&lt;LI&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;create_default&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;another issues is this libraries does not work in workflow custom code&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2023 22:30:13 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Associations-v4-documentation-need-some-correction-python/m-p/822351#M65774</guid>
      <dc:creator>TGJW</dc:creator>
      <dc:date>2023-07-19T22:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: Associations v4 documentation need some correction (python)</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Associations-v4-documentation-need-some-correction-python/m-p/836202#M66551</link>
      <description>&lt;P&gt;Thank you for the reply, yes after change to create_default it work.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2023 16:47:35 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Associations-v4-documentation-need-some-correction-python/m-p/836202#M66551</guid>
      <dc:creator>TGJW</dc:creator>
      <dc:date>2023-08-17T16:47:35Z</dc:date>
    </item>
  </channel>
</rss>

