<?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 get form submissions by date and/or filtered by a field value in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/How-to-get-form-submissions-by-date-and-or-filtered-by-a-field/m-p/399588#M39503</link>
    <description>&lt;P&gt;Hey &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/157941"&gt;@ConceptImage&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you still messing around with this?&lt;/P&gt;
&lt;P&gt;I am going to have to default to the sage advice that &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/2450"&gt;@tjoyce&lt;/a&gt; can hopefully offer.&lt;/P&gt;</description>
    <pubDate>Thu, 14 Jan 2021 02:26:30 GMT</pubDate>
    <dc:creator>dennisedson</dc:creator>
    <dc:date>2021-01-14T02:26:30Z</dc:date>
    <item>
      <title>How to get form submissions by date and/or filtered by a field value</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-to-get-form-submissions-by-date-and-or-filtered-by-a-field/m-p/398441#M39382</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to know if it is possible, via the API, to get forms submissions (for a specific form) filtered by date or by field value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my case I have to retrieve the number of submissions of a form by country (with a country field in the form) monthly.&lt;BR /&gt;Example : Get the number of submissions on the form with ID "xxx-xxx-xxx" where the submissions were created on january 2021 (from january 1st to 31) and where the country field of each submission is "France"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only option I found for now is to use this method :&amp;nbsp;&lt;A href="https://legacydocs.hubspot.com/docs/methods/forms/get-submissions-for-a-form" target="_blank"&gt;https://legacydocs.hubspot.com/docs/methods/forms/get-submissions-for-a-form&lt;/A&gt;&lt;BR /&gt;I'll have to parse every submission to check country field value, this is not a problem, but I would like to know if there is any possiblity to filter on the field value during the request.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And for the date, I read that submissions are returned in reverse chronological order. It's okay to retrieve data from 1 or 2 months ago, but if I need to get data from older months, it'll be a bit difficult and weird. I'll have to parse every submission, check the "submittedAt" value until I reach the needed date. Is there a parameter or another API call that can help me get the data I need ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also looked at analytics data (&amp;nbsp;&lt;A href="https://legacydocs.hubspot.com/docs/methods/analytics/get-analytics-data-by-object" target="_blank" rel="noopener"&gt;https://legacydocs.hubspot.com/docs/methods/analytics/get-analytics-data-by-object&lt;/A&gt; ). With this method, I have the date filter and it directly return the number of submissions, which is what I need in the end. But I can't see any possibility to pass parameters to filter on submissions field value. And I think this method is not available for professional license, when I tried, I got a 403 error, but I can't find on the API documentation what methods are restricted by license/account type.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why does the "submissions/forms" method can't accept a date parameter while the "reports/:object_type" the method can ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help,&lt;BR /&gt;Valentin - Concept Image&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jan 2021 13:50:49 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-to-get-form-submissions-by-date-and-or-filtered-by-a-field/m-p/398441#M39382</guid>
      <dc:creator>ConceptImage</dc:creator>
      <dc:date>2021-01-11T13:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to get form submissions by date and/or filtered by a field value</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-to-get-form-submissions-by-date-and-or-filtered-by-a-field/m-p/399588#M39503</link>
      <description>&lt;P&gt;Hey &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/157941"&gt;@ConceptImage&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you still messing around with this?&lt;/P&gt;
&lt;P&gt;I am going to have to default to the sage advice that &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/2450"&gt;@tjoyce&lt;/a&gt; can hopefully offer.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2021 02:26:30 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-to-get-form-submissions-by-date-and-or-filtered-by-a-field/m-p/399588#M39503</guid>
      <dc:creator>dennisedson</dc:creator>
      <dc:date>2021-01-14T02:26:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to get form submissions by date and/or filtered by a field value</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/How-to-get-form-submissions-by-date-and-or-filtered-by-a-field/m-p/399645#M39513</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/157941"&gt;@ConceptImage&lt;/a&gt;&amp;nbsp;- I tried some of the usually flags like 'orderBy=-submittedAt' with no luck. I don't think it's possible.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your best bet might be to save some of the data to a local database where you can do better reporting with say mySQL or postgres&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2021 08:33:25 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/How-to-get-form-submissions-by-date-and-or-filtered-by-a-field/m-p/399645#M39513</guid>
      <dc:creator>tjoyce</dc:creator>
      <dc:date>2021-01-14T08:33:25Z</dc:date>
    </item>
  </channel>
</rss>

