Jan 16, 202310:32 AM - edited Jan 16, 202310:34 AM
Participant
API call on Companies doesn't filter and doesn't return the correct fields.
I've the following CLI command to retrieve the Companies from Hubspot of which the field "type" is equal to "PARTNER". And also I specify the properties to get more data back than the default fields, but I don't get those fields. What am I doing wrong? Suggestions?
API call on Companies doesn't filter and doesn't return the correct fields.
It seems you are getting some results back. Are you asking to get more results? Then you should add limit parameter. Here is a request body that works for me, I did not use filterGroups - which is more useful when you need to do more complex logic like multiple "AND" filter with "OR" filter all together, but should not be a problem whether you add it or not. Example:
API call on Companies doesn't filter and doesn't return the correct fields.
No, adding the limits paramater is not the solution. With the current CURL command I don't get any company data returned, I believe the returned data is only some default data.
But anyway, I also have learned that using the filter parameter is not working on the companies endpoint url. I need to use the search companies endpoint url: ....companies/search This gives a better result for now.