Get submissions for a form - Filter

SOLVE
Highlighted
New Contributor
Hi Team,
 
I'm working on Hubspot form submission API. Just I want to know is there any option to filter response by a parameter ('submittedAt'). I mean to filter some time interval, for example, to get submitted data between some time interval like 1547130102576 to 1547129474539.
 
And one more thing I want to know is there any option to get notified once form submitted using Webhook.
 
Example response:
{
  "results": [
    {
      "submittedAt": 1547130102576,
      "values": [
        {
          "name": "email",
          "value": "example@example.com"
        },
        {
          "name": "company",
          "value": "Example Co"
        },
        {
          "name": "phone",
          "value": "123 555 4567"
        }
      ],
      "pageUrl": "https://www.example.com/form"
    },
    {
      "submittedAt": 1547129474539,
      "values": [
        {
          "name": "email",
          "value": "another@example.com"
        },
        {
          "name": "company",
          "value": "Company A"
        },
        {
          "name": "phone",
          "value": "123 123 2356"
        }
      ],
      "pageUrl": null
    },
    {
      "submittedAt": 1547071030851,
      "values": [
        {
          "name": "email",
          "value": "bob@example.com"
        },
        {
          "name": "company",
          "value": "Company Name"
        },
        {
          "name": "phone",
          "value": "123 123 1234"
        }
      ],
      "pageUrl": null
    }
  ],
  "paging": {
    "next": {
      "after": "YmYyZjI4MGYtMjRjZS00NjY2LTkzMWItMzFmNTBhZjhlOGUzXzE1NDcwNjk5Mzg0OTQ",
      "link": "?after=YmYyZjI4MGYtMjRjZS00NjY2LTkzMWItMzFmNTBhZjhlOGUzXzE1NDcwNjk5Mzg0OTQ&limit=4"
    }
  }
}
Reply
0 Upvotes
1 Accepted solution

Accepted Solutions
HubSpot Moderator

Hi, @Shivasagar.

 

@jackcoldrick responded to your question in this post.

 

Apologies if you encountered trouble with the Community's spam filter. It is particularly sensitive to code blocks posted by newer users.

Isaac Takushi

HubSpot Developer Support
Reply
0 Upvotes
1 Reply 1
HubSpot Moderator

Hi, @Shivasagar.

 

@jackcoldrick responded to your question in this post.

 

Apologies if you encountered trouble with the Community's spam filter. It is particularly sensitive to code blocks posted by newer users.

Isaac Takushi

HubSpot Developer Support
Reply
0 Upvotes