<?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 API issue with None associations in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/API-issue-with-None-associations/m-p/952362#M72372</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Okay, I've been trying to pull emails, tasks, and notes for each of my tickets through the HubSpot API. Basically, I wanted to obtain the association IDs and then call the Engagements API to retrieve that data. I was following this process&lt;/SPAN&gt;:&amp;nbsp;&lt;A href="https://community.hubspot.com/t5/APIs-Integrations/Get-all-emails-for-a-ticket/m-p/829716" target="_blank"&gt;https://community.hubspot.com/t5/APIs-Integrations/Get-all-emails-for-a-ticket/m-p/829716&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;However, I'm encountering a problem: for all my tickets, the associations section shows a 'None' value. What could be the problem? Could it be a very specific issue with my account?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-03-31 at 00.41.58.png" style="width: 999px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/114204i7C93ED2626E47410/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2024-03-31 at 00.41.58.png" alt="Screenshot 2024-03-31 at 00.41.58.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using Python, and this is the offical code provided by HubSpot:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;hubspot&lt;BR /&gt;&lt;SPAN&gt;from &lt;/SPAN&gt;pprint &lt;SPAN&gt;import &lt;/SPAN&gt;pprint&lt;BR /&gt;&lt;SPAN&gt;from &lt;/SPAN&gt;hubspot.crm.objects &lt;SPAN&gt;import &lt;/SPAN&gt;ApiException&lt;BR /&gt;&lt;BR /&gt;client = hubspot.Client.create(&lt;SPAN&gt;access_token&lt;/SPAN&gt;=&lt;SPAN&gt;"----API----"&lt;/SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;try&lt;/SPAN&gt;:&lt;BR /&gt;    api_response = client.crm.objects.basic_api.get_by_id(&lt;SPAN&gt;object_type&lt;/SPAN&gt;=&lt;SPAN&gt;"tickets"&lt;/SPAN&gt;, &lt;SPAN&gt;object_id&lt;/SPAN&gt;=&lt;SPAN&gt;"2545436276"&lt;/SPAN&gt;, &lt;SPAN&gt;archived&lt;/SPAN&gt;=&lt;SPAN&gt;False&lt;/SPAN&gt;)&lt;BR /&gt;    pprint(api_response)&lt;BR /&gt;&lt;SPAN&gt;except &lt;/SPAN&gt;ApiException &lt;SPAN&gt;as &lt;/SPAN&gt;e:&lt;BR /&gt;    &lt;SPAN&gt;print&lt;/SPAN&gt;(&lt;SPAN&gt;"Exception when calling basic_api-&amp;gt;get_by_id: %s&lt;/SPAN&gt;&lt;SPAN&gt;\n&lt;/SPAN&gt;&lt;SPAN&gt;" &lt;/SPAN&gt;% e)&lt;/PRE&gt;&lt;/DIV&gt;</description>
    <pubDate>Sun, 31 Mar 2024 06:44:54 GMT</pubDate>
    <dc:creator>RRompich</dc:creator>
    <dc:date>2024-03-31T06:44:54Z</dc:date>
    <item>
      <title>API issue with None associations</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/API-issue-with-None-associations/m-p/952362#M72372</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Okay, I've been trying to pull emails, tasks, and notes for each of my tickets through the HubSpot API. Basically, I wanted to obtain the association IDs and then call the Engagements API to retrieve that data. I was following this process&lt;/SPAN&gt;:&amp;nbsp;&lt;A href="https://community.hubspot.com/t5/APIs-Integrations/Get-all-emails-for-a-ticket/m-p/829716" target="_blank"&gt;https://community.hubspot.com/t5/APIs-Integrations/Get-all-emails-for-a-ticket/m-p/829716&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;However, I'm encountering a problem: for all my tickets, the associations section shows a 'None' value. What could be the problem? Could it be a very specific issue with my account?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-03-31 at 00.41.58.png" style="width: 999px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/114204i7C93ED2626E47410/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2024-03-31 at 00.41.58.png" alt="Screenshot 2024-03-31 at 00.41.58.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using Python, and this is the offical code provided by HubSpot:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;hubspot&lt;BR /&gt;&lt;SPAN&gt;from &lt;/SPAN&gt;pprint &lt;SPAN&gt;import &lt;/SPAN&gt;pprint&lt;BR /&gt;&lt;SPAN&gt;from &lt;/SPAN&gt;hubspot.crm.objects &lt;SPAN&gt;import &lt;/SPAN&gt;ApiException&lt;BR /&gt;&lt;BR /&gt;client = hubspot.Client.create(&lt;SPAN&gt;access_token&lt;/SPAN&gt;=&lt;SPAN&gt;"----API----"&lt;/SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;try&lt;/SPAN&gt;:&lt;BR /&gt;    api_response = client.crm.objects.basic_api.get_by_id(&lt;SPAN&gt;object_type&lt;/SPAN&gt;=&lt;SPAN&gt;"tickets"&lt;/SPAN&gt;, &lt;SPAN&gt;object_id&lt;/SPAN&gt;=&lt;SPAN&gt;"2545436276"&lt;/SPAN&gt;, &lt;SPAN&gt;archived&lt;/SPAN&gt;=&lt;SPAN&gt;False&lt;/SPAN&gt;)&lt;BR /&gt;    pprint(api_response)&lt;BR /&gt;&lt;SPAN&gt;except &lt;/SPAN&gt;ApiException &lt;SPAN&gt;as &lt;/SPAN&gt;e:&lt;BR /&gt;    &lt;SPAN&gt;print&lt;/SPAN&gt;(&lt;SPAN&gt;"Exception when calling basic_api-&amp;gt;get_by_id: %s&lt;/SPAN&gt;&lt;SPAN&gt;\n&lt;/SPAN&gt;&lt;SPAN&gt;" &lt;/SPAN&gt;% e)&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 31 Mar 2024 06:44:54 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/API-issue-with-None-associations/m-p/952362#M72372</guid>
      <dc:creator>RRompich</dc:creator>
      <dc:date>2024-03-31T06:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: API issue with None associations</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/API-issue-with-None-associations/m-p/994558#M74436</link>
      <description>&lt;P&gt;Try adding the association you want to get back, default is none.&amp;nbsp; api_response = client.crm.tickets.basic_api.get_by_id(ticket_id="2545436276", associations=["contact"], archived=False)&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2024 16:21:55 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/API-issue-with-None-associations/m-p/994558#M74436</guid>
      <dc:creator>dsmarion</dc:creator>
      <dc:date>2024-06-19T16:21:55Z</dc:date>
    </item>
  </channel>
</rss>

