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.

The contact list 'XXXX' does not exist.

Highlighted
Occasional Visitor

The contact list 'XXXX' does not exist.

I Download constant contact api & test.but i couldn't test sample application also becouse it's getting error.

I am trying to communicat api from asp.net application.

 

"json.field.lists.value.invalid:The contact list 'XXXX' does not exist. "

 

contact = new CTCT.Components.Contacts.Contact();

//add lists [Required]
contact.Lists.Add(new ContactList() { Id = "1" });

//add email_addresses [Required]
var emailAddress = new EmailAddress()
{
Status = Status.Active,
ConfirmStatus = ConfirmStatus.NoConfirmationRequired,
EmailAddr = "XXXX"
};
contact.EmailAddresses.Add(emailAddress);

 

//Add Personal & Address Details

.

.

.

 

 var contact = contactService.AddContact(_contact, false);

 

 

can you tell anyone what is the error.sample coding also this error comming..

1 REPLY 1
Highlighted
Employee

Re: The contact list 'XXXX' does not exist.

Hi Raju,

 

I responded to your email about this, but in case anyone here is following along, this error means that the list ID you're specifying while adding a contact, 1, doesn't exist in the account. You can make a GET call to https://api.constantcontact.com/v2/lists to see the lists and list ID's in the account. You will most likely see lists with ID's that are 10 digits long.

 

Best Regards,

Shannon Wallace

Partner 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