Searching for Contact with Custom field?

Participant

Searching for Contact with Custom field?

Is this possible?

 

I would like to search by CustomField3, but sending the request as:

 

https://api.constantcontact.com/ws/customers/USERNAME/contacts?CustomField3=123456

 

doesn't appear to work. It returns 20 or so records (the value in CustomField3 is unique).

 

Thoughts?

3 REPLIES 3
Member

Hello,

 

You can only use this type of request to search for email address and date late updated with currently (by appending parameter-value pairs for search critiera). At this time, the most economical approach if you have a large number of contacts would be to bulk export email address and the field you intend to search, retrieve the exported file, and parse that on your end to identify contacts meeting your criteria. You could then search by email address to retrieve details for those contacts. You're likely getting back multiple unrelated results because your parameter is being ignored, and our system is treating your request as a GET to list all contacts.

 

Additional search or sorting functionality may become available with the advent of the next version our API, which is currently still out there on the Horizon.

 

Cheers,

Mark Coleman
Support Engineer
Regular Participant

Hi,

 

We would like to be able to search by more than just email or last update date? It would allow us to synch. contacts in multiple data stores.

 

You allow users of the web UI at Constant Contact to search that way, it should not be hard to extend the same search capability to the API.

 

Any idea when this feature will be available?

Hi,

 

I will pass this feedback on for you.  That functionality will probably not be available until next year at the earliest.

 

Best Regards,

Shannon W.

API Support Specialist 

Developer Portal

View API documentation, code samples, get your API key.

Visit Page