在不断的联系中,我必须再添加一个联系人列表

时间:2013-01-14 10:30:41

标签: c# constantcontact

我在特定列表中有联系人,我也想添加到另一个列表中 下面的代码工作但突然停止工作不知道为什么?

我都没有收到任何错误。我在这里做错了吗。

string[] emailAddress = new string[] { list[i].EmailAddress };
IList<Contact> myList = Utility.SearchContactByEmail(authenticationData, emailAddress, out nextChunkId);
Contact thisContact =  Utility.GetContactDetailsById(authenticationData, myList[0].Id);

thisContact.Id = myList[0].Id;

ContactOptInList newList = new ContactOptInList();
newList.OptInSource = ContactOptSource.ActionByCustomer;
newList.ContactList = new ContactList("3");
//Contact list you want to add them to
thisContact.ContactLists.Add(newList);

0 个答案:

没有答案