APIs & Integrations

Manufast
Member

Empty result array on search company and search contact

SOLVE

Hello,

 

I tried a search company : https://api.hubapi.com/crm/v3/objects/companies/search?hapikey=xxxxx

and a search contact : https://api.hubapi.com/crm/v3/objects/contacts/search?hapikey=xxxxx

 

In both cases i used the same filter ('mp_number' is a custom field):

{
  "filterGroups": [
    {
      "filters": [
        {
          "value""3678",
          "propertyName""mp_number",
          "operator""EQ"
        }
      ]
    }
  ],
  "sorts": [
    "id"
  ],
  "properties": [
    "id"
  ],
  "limit"0,
  "after"0
}
 

And in both cases I get a value in total but the result array is empty:

Company:

{
    "total": 1,
    "results": [],
    "paging": {
        "next": {
            "after""0"
        }
    }
}
Contact:
{
    "total": 35,
    "results": [],
    "paging": {
        "next": {
            "after""0"
        }
    }
}
 
Why don't I get any details?
 
Regards,
Wim
0 Upvotes
1 Accepted solution
dennisedson
Solution
HubSpot Product Team
HubSpot Product Team

Empty result array on search company and search contact

SOLVE

Hey @Manufast 

Looks like you set a limit of 0. 

Remove that and you should get some content returned 😀

View solution in original post

0 Upvotes
1 Reply 1
dennisedson
Solution
HubSpot Product Team
HubSpot Product Team

Empty result array on search company and search contact

SOLVE

Hey @Manufast 

Looks like you set a limit of 0. 

Remove that and you should get some content returned 😀

0 Upvotes