Page 1 of 1

Searching contacts via custom field

Posted: Tue Jan 10, 2023 12:44 am
by JarradFluent
Hi there,

I am trying to search contacts via a custom field. I am using the below endpoint:

Code: Select all

/v1.0/companies/0/contacts/?CustomFields.CustomField.ID=7&CustomFields.Value=test
The API is returning all contacts, although I know for certain that only a single contact has this value (all other contacts should have a null value as I have only just added this custom field).

Is it possible to search contacts via custom fields?

Re: Searching contacts via custom field

Posted: Tue Jan 10, 2023 3:28 am
by Sindre
Hi JarradFluent,

There should be no problem searching with the custom fields as you do.

I've successfully tested the query parameters you use for contacts it should be working as expected filtering both CustomFields.CustomField.ID and CustomFields.Value.

Please try again and be cautious of the spelling and blank spaces in text.

If you still have problems you can send me a private message with your build details and records you are trying to get and I can do another test.

Regards