<?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 Is there a junction between Tasks and Calls/Activities to key off of? in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Is-there-a-junction-between-Tasks-and-Calls-Activities-to-key/m-p/792285#M63879</link>
    <description>&lt;P&gt;Hello! I am currently working on ingesting CRM data and I am struggling to find a way to link a task to any activity that isn't a task.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When querying tasks I am pulling -&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;'hs_object_id', &lt;BR /&gt;'hs_createdate'&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;'hubspot_owner_id'&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;'hs_task_status'&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;'hs_task_subject',&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;'hs_task_type', &lt;BR /&gt;'hs_task_completion_date',&lt;BR /&gt;'hs_num_associated_deals', &lt;BR /&gt;'hs_engagement_source', &lt;BR /&gt;'hs_engagement_source_id'&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;The object id of the task isn't linked to the activity that it spawned. Meaning if task id 123456789 triggered a call, the call id will not be 123456789.&amp;nbsp;Then looking at the call / email / other activity endpoints, there isn't a way to link back either. In fact, the engagement source and engagement source id is different between the task and the call.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tasks show the engagement source being "sequence" and calls show it being "api" (which I assume is Hubspot's internal API linking the sequence to an action).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I then went to look at the contact to try and grab&amp;nbsp;&lt;EM&gt;something&amp;nbsp;&lt;/EM&gt;that would allow me to query back and forth, but I can't find a comprehensive list of engagement ids that link the tables.&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 10 May 2023 18:50:01 GMT</pubDate>
    <dc:creator>AMoyse</dc:creator>
    <dc:date>2023-05-10T18:50:01Z</dc:date>
    <item>
      <title>Is there a junction between Tasks and Calls/Activities to key off of?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Is-there-a-junction-between-Tasks-and-Calls-Activities-to-key/m-p/792285#M63879</link>
      <description>&lt;P&gt;Hello! I am currently working on ingesting CRM data and I am struggling to find a way to link a task to any activity that isn't a task.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When querying tasks I am pulling -&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;'hs_object_id', &lt;BR /&gt;'hs_createdate'&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;'hubspot_owner_id'&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;'hs_task_status'&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;'hs_task_subject',&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;'hs_task_type', &lt;BR /&gt;'hs_task_completion_date',&lt;BR /&gt;'hs_num_associated_deals', &lt;BR /&gt;'hs_engagement_source', &lt;BR /&gt;'hs_engagement_source_id'&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;The object id of the task isn't linked to the activity that it spawned. Meaning if task id 123456789 triggered a call, the call id will not be 123456789.&amp;nbsp;Then looking at the call / email / other activity endpoints, there isn't a way to link back either. In fact, the engagement source and engagement source id is different between the task and the call.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tasks show the engagement source being "sequence" and calls show it being "api" (which I assume is Hubspot's internal API linking the sequence to an action).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I then went to look at the contact to try and grab&amp;nbsp;&lt;EM&gt;something&amp;nbsp;&lt;/EM&gt;that would allow me to query back and forth, but I can't find a comprehensive list of engagement ids that link the tables.&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 10 May 2023 18:50:01 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Is-there-a-junction-between-Tasks-and-Calls-Activities-to-key/m-p/792285#M63879</guid>
      <dc:creator>AMoyse</dc:creator>
      <dc:date>2023-05-10T18:50:01Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a junction between Tasks and Calls/Activities to key off of?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Is-there-a-junction-between-Tasks-and-Calls-Activities-to-key/m-p/792822#M63934</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/566651"&gt;@AMoyse&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; Thanks for reaching out.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The issue you're encountering is because in HubSpot's data model, engagements like tasks, calls, or emails are not directly associated with each other. They're linked to CRM objects like contacts, companies, etc., but not between themselves. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can retrieve the type ID between objects and engagements by making requests to this endpoint — &lt;A href="https://developers.hubspot.com/docs/api/crm/associations#:~:text=Retrieve%20association%20types" target="_blank" rel="noopener"&gt;Retrieve association types&lt;/A&gt; GET&amp;nbsp;/crm/v4/associations/{fromObjectType}/{toObjectType}/labels&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Please note&lt;/STRONG&gt;, engagement types are unidirectional, so you'll need to make separate calls to get the IDs for Notes &amp;gt; Contacts vs Contacts &amp;gt; Notes&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Jaycee&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2023 18:06:35 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Is-there-a-junction-between-Tasks-and-Calls-Activities-to-key/m-p/792822#M63934</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2023-05-11T18:06:35Z</dc:date>
    </item>
  </channel>
</rss>

