The Community is hosting an End of Summer sweepstakes! Participants must complete tasks to earn tickets that will enter them with a chance to win a free year of Constant Contact and other great prizes!*
*No Purchase Necessary. For Official Rules, visit here. Constant Contact’s End of Summer 2020 Sweepstakes ends on October, 20, 2020 at 11:50 PM EST.

searchContactsByEmail - problem

Highlighted
Occasional Contributor

searchContactsByEmail - problem

Hi -

 

I had a problem a few days ago where searchContactsByEmail returned about 20 records where the email address did not match the email being searched for. This unfortunately caused my code to update 20 records that should not have been updated.

 

Has anyone else seen this? 

 

 

Thanks,

 

Dave Brown

2 REPLIES 2
Highlighted
Occasional Participant

Re: searchContactsByEmail - problem

Sorry but No.

Contacts in CC only get updated or inserted based on Emial id.May be in your case all 20 contact email id will be same.

 

Thankyou

Highlighted
Honored Contributor

Re: searchContactsByEmail - problem

Hello,

 

I have taken a bit of time to look into this, and that function should return all contact that have the email address that you provided. It is possible that it may have returned a set of contacts who appear to have different email addresses if the extra contacts have multiple email addresses that includes the address that you searched for.

 

The other potential thing to consider is that the function will accept a string or an array as input. If an array is input, then it will search for every email address in the array.

 

Given the information above, I would suggest checking if any of the contacts that appears to be returned in error have multiple email addresses in the Constant Contact UI. I would also double-check to ensure that your code is sending a single string as a search parameter and not an array.

 

If you find that neither of these is the case, we can likely provide further assistance if you send us an email with greater detail of how this is being used and an example of the email address that came up wrong at webservices@constantcontact.com.

 

Best Regards,

Elijah G.
API Support Engineer
Developer Portal

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

Visit Page

Constant Contact 2020 End of Summer Community Sweepstakes!

The Constant Contact User Community is hosting a sweepstakes. The more you participate, the more chances you have to win! Read on to learn more...

Read More
Featured