<?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: Can I pull a historical audit trail from each deal? in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Can-I-pull-a-historical-audit-trail-from-each-deal/m-p/226478#M5374</link>
    <description>&lt;P&gt;Awesome - thanks for the advice.&lt;/P&gt;</description>
    <pubDate>Tue, 23 Oct 2018 14:47:49 GMT</pubDate>
    <dc:creator>Cognopia</dc:creator>
    <dc:date>2018-10-23T14:47:49Z</dc:date>
    <item>
      <title>Can I pull a historical audit trail from each deal?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Can-I-pull-a-historical-audit-trail-from-each-deal/m-p/226474#M5370</link>
      <description>&lt;P&gt;I want to be able to extract the audit trail data about a deal - info such as "date created", "owner" etc but then also the full list of changes that have been applied to the deal, by whom, and on which date (and ideally from what value to what value too).&lt;/P&gt;
&lt;P&gt;From my initial reading of the API documents the API is more for CRUD actions inside the Hubspot application, not for pulling a history of the CRUD actions that have been applied to a deal throughout its lifetime.&lt;/P&gt;
&lt;P&gt;Can anyone point me in the right direction to pull this information, or let me know if it isn't possible to extract please?&lt;/P&gt;</description>
      <pubDate>Sat, 20 Oct 2018 01:26:15 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Can-I-pull-a-historical-audit-trail-from-each-deal/m-p/226474#M5370</guid>
      <dc:creator>Cognopia</dc:creator>
      <dc:date>2018-10-20T01:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: Can I pull a historical audit trail from each deal?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Can-I-pull-a-historical-audit-trail-from-each-deal/m-p/226475#M5371</link>
      <description>&lt;P&gt;Hi &lt;A class="mention" href="https://community.hubspot.com/u/cognopia"&gt;@Cognopia&lt;/A&gt;, you can get all deals &lt;EM&gt;with history&lt;/EM&gt; by including propertiesWithHistory=property_name_here.&lt;/P&gt;
&lt;P&gt;For example, I made a GET request to &lt;CODE&gt;api.hubapi.com/deals/v1/deal/paged?hapikey=XXXXXXX&amp;amp;propertiesWithHistory=dealname&amp;amp;propertiesWithHistory=dealstage&amp;amp;limit=2&lt;/CODE&gt; and was returned the following:&lt;/P&gt;
&lt;ASIDE class="onebox whitelistedgeneric"&gt;
  &lt;HEADER class="source"&gt;
      &lt;IMG src="https://prntscr.com/favicon.ico" class="site-icon" width="32" height="32" /&gt;
      &lt;A href="https://prnt.sc/l93lol" target="_blank"&gt;Lightshot&lt;/A&gt;
  &lt;/HEADER&gt;
  &lt;ARTICLE class="onebox-body"&gt;
    &lt;DIV class="aspect-image" style="--aspect-ratio:391/500;"&gt;&lt;IMG src="https://community.hubspot.com/legacyfs/online/uploads/default/original/2X/2/2f4b49cd98dc41e541868f68e62336d4e24147d0.png" class="thumbnail" /&gt;&lt;/DIV&gt;

&lt;H3&gt;&lt;A href="https://prnt.sc/l93lol" target="_blank"&gt;Screenshot&lt;/A&gt;&lt;/H3&gt;

&lt;P&gt;Captured with Lightshot&lt;/P&gt;


  &lt;/ARTICLE&gt;
  &lt;DIV class="onebox-metadata"&gt;
    
    
  &lt;/DIV&gt;
  &lt;DIV style="clear: both"&gt;&lt;/DIV&gt;
&lt;/ASIDE&gt;</description>
      <pubDate>Mon, 22 Oct 2018 17:08:37 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Can-I-pull-a-historical-audit-trail-from-each-deal/m-p/226475#M5371</guid>
      <dc:creator>cbarley</dc:creator>
      <dc:date>2018-10-22T17:08:37Z</dc:date>
    </item>
    <item>
      <title>Re: Can I pull a historical audit trail from each deal?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Can-I-pull-a-historical-audit-trail-from-each-deal/m-p/226476#M5372</link>
      <description>&lt;P&gt;Thanks Conor. If I was pulling all the historical data changes across every deal/contact/account then this might be quite resource intensive - is there a better way to pull such a rich history, or does it have to hit the URL on a per property basis?&lt;/P&gt;
&lt;P&gt;I see you've limited the number of deal changes pulled here to 2 - is there an upper bound on the API if we wanted to pull the entire history?&lt;/P&gt;</description>
      <pubDate>Tue, 23 Oct 2018 09:03:03 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Can-I-pull-a-historical-audit-trail-from-each-deal/m-p/226476#M5372</guid>
      <dc:creator>Cognopia</dc:creator>
      <dc:date>2018-10-23T09:03:03Z</dc:date>
    </item>
    <item>
      <title>Re: Can I pull a historical audit trail from each deal?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Can-I-pull-a-historical-audit-trail-from-each-deal/m-p/226477#M5373</link>
      <description>&lt;P&gt;Hi &lt;A class="mention" href="https://community.hubspot.com/u/cognopia"&gt;@Cognopia&lt;/A&gt;, you can include &lt;CODE&gt;propertiesWithHistory&lt;/CODE&gt; multiple times, just like you can with &lt;CODE&gt;properties&lt;/CODE&gt;. It'd look like: &lt;CODE&gt;&amp;amp;propertiesWithHistory=property1&amp;amp;propertiesWithHistory=property2&amp;amp;&lt;/CODE&gt; etc. etc. You'd only need to make one API call, but you'd have to include all properties you're interested in. Limit can be up to 250 but defaults to 100 if you don't include it. Please review these docs for more info: &lt;A href="https://developers.hubspot.com/docs/methods/deals/get-all-deals"&gt;https://developers.hubspot.com/docs/methods/deals/get-all-deals&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Oct 2018 14:35:36 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Can-I-pull-a-historical-audit-trail-from-each-deal/m-p/226477#M5373</guid>
      <dc:creator>cbarley</dc:creator>
      <dc:date>2018-10-23T14:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: Can I pull a historical audit trail from each deal?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Can-I-pull-a-historical-audit-trail-from-each-deal/m-p/226478#M5374</link>
      <description>&lt;P&gt;Awesome - thanks for the advice.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Oct 2018 14:47:49 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Can-I-pull-a-historical-audit-trail-from-each-deal/m-p/226478#M5374</guid>
      <dc:creator>Cognopia</dc:creator>
      <dc:date>2018-10-23T14:47:49Z</dc:date>
    </item>
  </channel>
</rss>

