The contact list 'XXXX' does not exist.

RajuD87
Participant

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
Shannon_W
Employee

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