0

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

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

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);
4

0 回答 0