Hi all, I am having a problem when I try to create a marketing list of contacts.
Let me explain the scenario in detail:
I use the createRequest to create a marketing list, and then add some contacts to the marketing list. On the contact information page, there is a filed to display all the marketing lists that the contact belongs to (the listcontact_association is used)
Ideally, I should see the marketing list in the field on the contact's information page after I add the contact to the marketing list.
However, this doesn't work.
One strange point: if I use the website page to create a marketing list, this works well. This problem only happens to the marketing list which is created by coding.
so what do I need to specify when I create a marketing list? I have already make sure that all the attributions of marketing lists created by webpage and by code are the same.
Here is the code to create marketing list:
List marketingList = new List();
marketingList.ListName = "test";
marketingList.CreatedFromCode = new OptionSetValue(2);
marketingList.MemberType = 2;
Guid marketingListId = _serviceProxy.Create(marketingList as Entity);
return marketingListId;