Tuesday, May 26, 2020

AddListMembersListRequest + Marketing + D365

Dear All,

Please find the below code for Adding List Member in Marketing List

AddListMembersListRequest AddMemberRequest = new AddListMembersListRequest();

AddMemberRequest.ListId = new Guid("73104802-ae9e-ea11-a812-000d3abb53d2");

List<Guid> MemberListIds = new List<Guid>();

for (int hh = 0; hh < listGuid.Count; hh++)

{

MemberListIds.Add(listGuid[hh]);

}

//Adding Members

AddMemberRequest.MemberIds = MemberListIds.ToArray();

// Use AddListMembersListReponse to get information about the request execution

AddListMembersListResponse AddMemberResponse = service.Execute(AddMemberRequest) as AddListMembersListResponse;

No comments:

Post a Comment

Day 11 - Customizing Option Sets Dropdown Fields with JavaScript

  In this Blog, we will see how to Customizing Option Sets Dropdown Fields with JavaScript label1 = formContext.getAttribute( "bosch_op...