cancel
Showing results for 
Search instead for 
Did you mean: 

Sync contacts

Occasional Participant

Sync contacts

Is there a way I can send a list to CC and have CC add new contacts from the list and remove (from CC) contacts that are not on my list? I currently have to download all contacts from CC and compare them to my list. I then upload new contacts and remove any that need to be removed. The problem is that I can't easily download all contacts of a list without using a batch operation. It would be nice if I could just send a list to sync or replace an existing list in CC.

3 REPLIES 3
CTCT Employee

Re: Sync contacts

Hi,

 

In cases like these, it's usually best to update Constant Contact at the time your database gets updated, so if a user adds or removes themselves from a list, your integration would do that operation in your database and ours, on a per-contact basis.

 

If you wanted to clear a list and then re-upload contacts to it, those functions would only be available through batch functions.

 

Best Regards,

Shannon W.

API Support Specialist

Occasional Participant

Re: Sync contacts

The problem I have is that I don't know who is on the list unless the report is run because the report queries are dynamic. I'll look into the batch functions. Would I remove the list and recreate it?

CTCT Employee

Re: Sync contacts

Hi,

 

There shouldn't be a reason that you can't check the database for the email address that you are trying to add as they are being entered.  The logic would be: someone enters an email address, and your code checks to see if that email address already exists in the account like this.  Then if they do exist, you will update (PUT) them, and if they don't exist, you will add (POST) them.  Clearing the list and re-uploading to it would be more taxing on our system and yours than need be.

 

Best Regards,

Shannon W.

API Support Specialist