<?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: Get engagements for a company deprecated endpoint in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Get-engagements-for-a-company-deprecated-endpoint/m-p/329711#M31889</link>
    <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/119935"&gt;@etienne1&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Connor addressed a similar query, check this thread out:&amp;nbsp;&lt;A href="https://community.hubspot.com/t5/APIs-Integrations/New-way-to-get-detailed-list-of-engagements-per-contact/m-p/248917" target="_blank"&gt;HubSpot Community - New way to get detailed list of engagements per contact&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Currently, there isn't an endpoint that behavior like the deprecated endpoint. That said, thank you for sharing your use case and we will aggregate the feedback here and bring it to the product team. Appreciate it.&lt;/P&gt;</description>
    <pubDate>Mon, 06 Apr 2020 04:10:40 GMT</pubDate>
    <dc:creator>WendyGoh</dc:creator>
    <dc:date>2020-04-06T04:10:40Z</dc:date>
    <item>
      <title>Get engagements for a company deprecated endpoint</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-engagements-for-a-company-deprecated-endpoint/m-p/329440#M31859</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to find a simple solution to get the list (batch) of engagements (CALL, EMAIL...) for a given company of my Hubspot account. I want to get all information of engagements (content of the email, the contacts ids associated, date of creation...).&lt;BR /&gt;This&amp;nbsp;&lt;A href="https://developers.hubspot.com/docs/methods/engagements/get_associated_engagements" target="_self"&gt;endpoint&lt;/A&gt;&amp;nbsp; perfectly fits my needs but Hubspot marks it as deprecated. We are redirected through the association endpoint but I didn't manage to get the same result as with the deprecated endpoint (1 http call to get all activities with their data scope to 1 company).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Indeed, I tried something like this:&lt;BR /&gt;&lt;A target="_blank" rel="noopener"&gt;https://api.hubapi.com/crm-associations/v1/associations/&amp;lt;company_id&amp;gt;/HUBSPOT_DEFINED/7&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;But I just get the list of engagements ids and I would need to loop on each of one to get all data of each engagement (performing N separate http call for N engagements).&lt;BR /&gt;&lt;BR /&gt;Do I have a way to reproduce easely the depreacted endpoint behavior?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Stay safe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;etienne&lt;/P&gt;</description>
      <pubDate>Fri, 03 Apr 2020 10:48:41 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-engagements-for-a-company-deprecated-endpoint/m-p/329440#M31859</guid>
      <dc:creator>etienne1</dc:creator>
      <dc:date>2020-04-03T10:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: Get engagements for a company deprecated endpoint</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-engagements-for-a-company-deprecated-endpoint/m-p/329711#M31889</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/119935"&gt;@etienne1&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Connor addressed a similar query, check this thread out:&amp;nbsp;&lt;A href="https://community.hubspot.com/t5/APIs-Integrations/New-way-to-get-detailed-list-of-engagements-per-contact/m-p/248917" target="_blank"&gt;HubSpot Community - New way to get detailed list of engagements per contact&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Currently, there isn't an endpoint that behavior like the deprecated endpoint. That said, thank you for sharing your use case and we will aggregate the feedback here and bring it to the product team. Appreciate it.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Apr 2020 04:10:40 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-engagements-for-a-company-deprecated-endpoint/m-p/329711#M31889</guid>
      <dc:creator>WendyGoh</dc:creator>
      <dc:date>2020-04-06T04:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: Get engagements for a company deprecated endpoint</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-engagements-for-a-company-deprecated-endpoint/m-p/329750#M31905</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/66274"&gt;@WendyGoh&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;I thank you for your reply, I'll check the link you provided.&lt;BR /&gt;In the meantime, is it safe to use this deprecated endpoint in the midterm?&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;etienne&lt;/P&gt;</description>
      <pubDate>Mon, 06 Apr 2020 08:51:54 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-engagements-for-a-company-deprecated-endpoint/m-p/329750#M31905</guid>
      <dc:creator>etienne1</dc:creator>
      <dc:date>2020-04-06T08:51:54Z</dc:date>
    </item>
    <item>
      <title>Re: Get engagements for a company deprecated endpoint</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-engagements-for-a-company-deprecated-endpoint/m-p/329970#M31926</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/119935"&gt;@etienne1&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;While you can continue using the&amp;nbsp;&lt;A href="https://developers.hubspot.com/docs/methods/engagements/get_associated_engagements" target="_blank" rel="noopener"&gt;Get Associated Engagements&lt;/A&gt;, I'd suggest two things here:&lt;/P&gt;
&lt;P&gt;1. Keep a look out for&amp;nbsp;&amp;nbsp;an&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;X-HubSpot-API-Deprecated&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;header in the response. If you detect this header in a response, please check this documentation to determine when it'll get sunset:&amp;nbsp;&lt;A href="https://developers.hubspot.com/docs/faq/deprecated-apis" target="_blank" rel="noopener"&gt;Deprecated APIs&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. Start using the&amp;nbsp;&lt;A href="https://developers.hubspot.com/docs/methods/crm-associations/crm-associations-overview" target="_blank" rel="noopener"&gt;CRM Associations API&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Apr 2020 02:41:15 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-engagements-for-a-company-deprecated-endpoint/m-p/329970#M31926</guid>
      <dc:creator>WendyGoh</dc:creator>
      <dc:date>2020-04-07T02:41:15Z</dc:date>
    </item>
    <item>
      <title>Re: Get engagements for a company deprecated endpoint</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-engagements-for-a-company-deprecated-endpoint/m-p/330040#M31941</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/66274"&gt;@WendyGoh&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;1.I just curled the Get Associated Engagements endpoint and I don't see the `X-HubSpot-API-Deprecated` header for the moment. I will add a watcher though to be warned the day it appears.&lt;/P&gt;&lt;P&gt;2. I'd like to use this API but if I understood well I would use this endpoint: `&lt;A href="https://community.hubspot.com/" target="_blank"&gt;https://api.hubapi.com/crm-associations/v1/associations/&amp;lt;company_id&amp;gt;/HUBSPOT_DEFINED/7&lt;/A&gt;` which only returns the engagements ids of a company, and I would need to loop on each id of the response to get content of each engagement. From 1 HTTP call (Get Associated Engagements API) I go to N+1 HTTP calls (1 for association and N for number of engagements) which is less efficient. Maybe I miss something ?&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;etienne&lt;/P&gt;</description>
      <pubDate>Tue, 07 Apr 2020 12:22:32 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-engagements-for-a-company-deprecated-endpoint/m-p/330040#M31941</guid>
      <dc:creator>etienne1</dc:creator>
      <dc:date>2020-04-07T12:22:32Z</dc:date>
    </item>
    <item>
      <title>Re: Get engagements for a company deprecated endpoint</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-engagements-for-a-company-deprecated-endpoint/m-p/338229#M32993</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/119935"&gt;@etienne1&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Spot on. The&amp;nbsp;&lt;A href="https://developers.hubspot.com/docs/methods/crm-associations/get-associations" target="_blank"&gt;Get associations for a CRM object&lt;/A&gt;&amp;nbsp;will only return back the objectID. If you'd like to gather more details of each object, you'd need to use the respective object endpoint (i.e.&amp;nbsp;&lt;A href="https://developers.hubspot.com/docs/api/crm/contacts" target="_blank"&gt;CRM API | Contacts&lt;/A&gt;) to retrieve the object with properties.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2020 01:25:55 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-engagements-for-a-company-deprecated-endpoint/m-p/338229#M32993</guid>
      <dc:creator>WendyGoh</dc:creator>
      <dc:date>2020-05-12T01:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: Get engagements for a company deprecated endpoint</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-engagements-for-a-company-deprecated-endpoint/m-p/420730#M41721</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/66274"&gt;@WendyGoh&lt;/a&gt;&amp;nbsp;thanks for replying all these questions but can you please clarify&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/119935"&gt;@etienne1&lt;/a&gt;&amp;nbsp;last question about iterating through a list of engagements ID? because Its also exact pain point, eg: if a contact has 400 engagements we still would have to iterate through its ID's and only then, gather the data separately consuming several GET requests? instead of using the deprecated endpoint when used to return the 'explicid' data and not only IDS.&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 22 Mar 2021 14:01:27 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-engagements-for-a-company-deprecated-endpoint/m-p/420730#M41721</guid>
      <dc:creator>avlambertucci</dc:creator>
      <dc:date>2021-03-22T14:01:27Z</dc:date>
    </item>
    <item>
      <title>Re: Get engagements for a company deprecated endpoint</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-engagements-for-a-company-deprecated-endpoint/m-p/438668#M43434</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/66274"&gt;@WendyGoh&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;i'd love to get the reply also. Indeed like&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/174069"&gt;@avlambertucci&lt;/a&gt;&amp;nbsp;said, if an object has lots of engagements, we will need to make x api calls to get content of each engagements or even their type...&lt;BR /&gt;&lt;BR /&gt;Thank you !&lt;/P&gt;</description>
      <pubDate>Tue, 18 May 2021 15:09:14 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-engagements-for-a-company-deprecated-endpoint/m-p/438668#M43434</guid>
      <dc:creator>Polou</dc:creator>
      <dc:date>2021-05-18T15:09:14Z</dc:date>
    </item>
  </channel>
</rss>

