<?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: How to fetch recent engagements specific to deal? in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/How-to-fetch-recent-engagements-specific-to-deal/m-p/983639#M74008</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/769210"&gt;@RQadir&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using an offset, you can retrieve all engagements related to a deal through API. This requires an iterative statement, such as a do-while loop, to initiate a new array containing all engagements related to the deal. After initializing the array, you can sort it based on the created date or updated date in either ascending or descending order.&lt;/P&gt;
&lt;P&gt;Refer to this link -&amp;nbsp;&lt;A href="https://legacydocs.hubspot.com/docs/methods/engagements/get-recent-engagements" target="_blank"&gt;https://legacydocs.hubspot.com/docs/methods/engagements/get-recent-engagements&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"I hope this will help you out. Please mark it as &lt;STRONG&gt;Solution Accepted and upvote&lt;/STRONG&gt; to help another Community member.&lt;BR /&gt;Thanks!"&lt;/P&gt;</description>
    <pubDate>Wed, 29 May 2024 07:49:45 GMT</pubDate>
    <dc:creator>GRajput</dc:creator>
    <dc:date>2024-05-29T07:49:45Z</dc:date>
    <item>
      <title>How to fetch recent engagements specific to deal?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-to-fetch-recent-engagements-specific-to-deal/m-p/983616#M74005</link>
      <description>&lt;P&gt;Hey, Can you please tell me Is there a way to fetch recent engagements specific to deals as I have used this endpoint&amp;nbsp;&lt;A class="" href="https://api.hubapi.com/engagements/v1/engagements/associated/deal/%7Bdeal_id%7D/paged?hapikey={redacted}" target="_blank" rel="noopener noreferrer"&gt;https://api.hubapi.com/engagements/v1/engagements/associated/deal/{deal_id}/paged&lt;/A&gt;&amp;nbsp;with limit and offset params but it is not returning me the most recent one first. I have also gone through&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;A href="https://api.hubapi.com/engagements/v1/engagements/recent/modified" target="_blank" rel="noopener"&gt;https://api.hubapi.com/engagements/v1/engagements/recent/modified&lt;/A&gt;&amp;nbsp;this endpoint but this fetches engagements specific to all deals then i have to filter it out it.&amp;nbsp; Can I get sorted engagements specific to a deal in descending order?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 29 May 2024 07:09:01 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-to-fetch-recent-engagements-specific-to-deal/m-p/983616#M74005</guid>
      <dc:creator>RQadir</dc:creator>
      <dc:date>2024-05-29T07:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to fetch recent engagements specific to deal?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-to-fetch-recent-engagements-specific-to-deal/m-p/983639#M74008</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/769210"&gt;@RQadir&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using an offset, you can retrieve all engagements related to a deal through API. This requires an iterative statement, such as a do-while loop, to initiate a new array containing all engagements related to the deal. After initializing the array, you can sort it based on the created date or updated date in either ascending or descending order.&lt;/P&gt;
&lt;P&gt;Refer to this link -&amp;nbsp;&lt;A href="https://legacydocs.hubspot.com/docs/methods/engagements/get-recent-engagements" target="_blank"&gt;https://legacydocs.hubspot.com/docs/methods/engagements/get-recent-engagements&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"I hope this will help you out. Please mark it as &lt;STRONG&gt;Solution Accepted and upvote&lt;/STRONG&gt; to help another Community member.&lt;BR /&gt;Thanks!"&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2024 07:49:45 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-to-fetch-recent-engagements-specific-to-deal/m-p/983639#M74008</guid>
      <dc:creator>GRajput</dc:creator>
      <dc:date>2024-05-29T07:49:45Z</dc:date>
    </item>
  </channel>
</rss>

