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.

Best way to populate ContactLists dynamically

Highlighted
Occasional Participant

Best way to populate ContactLists dynamically

Hi,

We are planning to use ConstantContact to send out bulk emails to the contacts in our system that we have developed for our customer.

There are 30 thousand contacts in the system and likely to grow by a few thousand each year.

The system needs to send email campaigns,  that will be sent to a subset of the contacts and may range from a few hundred to the entire set of 30 thousand contacts.

I went through the API and it looks like, we have to create a ContactList for every campaign.
Then make a change to the contact to add the ID of new ContactList to the Contact.


I have the following questions:
1. Is our understanding correct ?
2. Is there an easier way to do this?
3. Is there any way we can add contacts to the ContactList directly, rather than modify the Contact to specify the contact list?
4. If we need to make a GET call to get the contact, then add the new listID and perform a PUT to submit the changes, then it is 2 operatins per contact.
This means we would exceed the 10k limit quite easily.
5. Doing a bulk opearation to export the contacts, then modify them and then another bulk import to submit the changes is the way?
This seems somewhat kludgy, to have to modify the contact, when all we need is to add/remove the contact from a ContactList.

Please guide on the best way to do this.

Best Regards,

Raghavendra Rao

4 REPLIES 4
Highlighted
Moderator

Re: Best way to populate ContactLists dynamically

Hello @First-NameL54555,

 

The answer is not quite as straight forward as I would like; it depends on if you use Constant Contact (CTCT) as your primary database or if you use a local database as your primary.

 

If CTCT as your primary then that is where you would keep everything updated and you would need to do a GET on your contacts prior to making any changes to them. That way you can make sure you have the most up to date information.

 

If you use a local database as your primary then you can skip doing the GET first as your most up to date information is what you are already working with. Just make the modifications to your data and then do the PUT as needed.

 

An email campaign does not need a new contact list per each campaign. You would create a contact list(s) as needed to segment your contacts. When you are ready to schedule your campaign you then select the list(s) as appropriate for that campaign. You can then just add/remove contacts from the lists and retain the same list names and reuse them.

 

If you will be updating large numbers of contacts then the Bulk method is probably the best option as it will allow you to update in a single call. However; if the rate limit is a concern we can look in to other options for you. The most common option is for you to become a Technology Partner with CTCT. That information can be found here. https://www.constantcontact.com/partners/technology

 

 


Regards,
Jimmy D.
Tier II API Support Engineer
Highlighted
Occasional Participant

Re: Best way to populate ContactLists dynamically

> The answer is not quite as straight forward as I would like; it depends on if you use Constant Contact (CTCT) as your primary database or if you use a local database as your primary.
> If CTCT as your primary then that is where you would keep everything updated and you would need to do a GET on your contacts prior to making any changes to them.
> That way you can make sure you have the most up to date information.
> If you use a local database as your primary then you can skip doing the GET first as your most up to date information is what you are already working with.
> Just make the modifications to your data and then do the PUT as needed.


We use a local database as the primary DB.


> An email campaign does not need a new contact list per each campaign.
> You would create a contact list(s) as needed to segment your contacts.
>When you are ready to schedule your campaign you then select the list(s) as appropriate for that campaign.

In our use case, each campaign will be sent to a subset, who match certain condtions.
So we would definitely need to create and populate  ContactLists dynamically.

>You can then just add/remove contacts from the lists and retain the same list names and reuse them.
Does this mean there is a way to add contacts to a ContactList, directly?
If so that would make things easy for us, as we can create a new list and add Contacts to the ConactList.
The only way I could find to add a contact to a ContactList was by modifiying the SentList under the Contact
I dont see any methods under ContactList class. We are planning to use the .NET SDK.

> If you will be updating large numbers of contacts then the Bulk method is probably the best option as it will allow you to update in a single call.
>However; if the rate limit is a concern we can look in to other options for you.
>The most common option is for you to become a Technology Partner with CTCT.
> That information can be found here. https://www.constantcontact.com/partners/technology

This is what we might have to do, just that all this fetching/modifying/updating would not be needed, if we could just directly add contacts to a ContactList directly.

 

Thanks and Regards,

Raghavendra Rao

Highlighted
Occasional Participant

Re: Best way to populate ContactLists dynamically

Hi,

 

When doing a bulk export of contacts, is it possible to get the ContactLists field? It should contain the ContactLists that contact belongs to.

 

Regards,

Raghavendra Rao.

Highlighted
Moderator

Re: Best way to populate ContactLists dynamically

Hello @First-NameL54555,

 

When doing a Bulk export you must specify the list you are retrieving the contacts from, so it is assumed you would already know which lists you are viewing.

 

I understand the desire to see all lists that an contact is on and that information is not available with the Bulk method; only when using the Contacts endpoints.


Regards,
Jimmy D.
Tier II 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