Query on User Created Field

contacts

#1

I have created a new field on my contact object and have assigned a value to that field for one contact for verification purposes (the new field is called dialer_status and the value assigned is called AtDialer). When I try to query on all of my records to locate this one record, I get no results returned. The query URL I am running is “https://api.hubapi.com/contacts/v1/search/query?q=AtDialer&hapikey={APIKey}”. When I enter a phone number as a query parameter I get results returned, so I know the URL and parameters are formatted correctly.

Ultimately, I just need to return a list of records that have the dialer_status field set to a certain value (AtDialer or any other selection from my value list). Is it possible to query on these user created fields, or am I perhaps doing something wrong?

Thanks in advance!


#2

@Kendall The Search endpoint only works for searching on name/email/phone number. You cannot query a different standard property or a custom made one.


#3

Thank you for the reply. Is this search capability on any product road map?

As a workaround, is it possible to use a blank query and use the property parameter to pull records that match that search? For example, using a URL such as “https://api.hubapi.com/contacts/v1/search/query?q=&property=AtDialer&hapikey={APIKey}


#4

@Kendall I’m not aware of any roadmap for it at the moment. As for a blank query would bring back the first 20 or so it would find that would match '' which would be all contacts.