Export (0) Print
Expand All

AddMemberList Message

CRM 1.2
banner art

Adds a member to a list.

The relevant classes are specified in the following table.

Type Class
Request AddMemberListRequest
Response AddMemberListResponse
Entity list


To perform this action, the caller must access rights on the list (marketing list) entity instance. For a list of required privileges, see AddMemberList Privileges.


The following code example demonstrates how to add a member to a list.

// Set up the CRM Service.
CrmService service = new CrmService();
service.Credentials = System.Net.CredentialCache.DefaultCredentials;

// Create the Request Object
AddMemberListRequest add = new AddMemberListRequest();

// Set the Request Object's Properties
add.EntityId = created.id;
add.ListId = createdList;

// Execute the Request
AddMemberListResponse added = (AddMemberListResponse) service.Execute(add);
[Visual Basic .NET]
' Set up the CRM Service.
Dim service As New CrmService()
service.Credentials = System.Net.CredentialCache.DefaultCredentials

' Create the Request Object
Dim add As New AddMemberListRequest()

' Set the Request Object's Properties
add.EntityId = created.id
add.ListId = createdList

' Execute the Request
Dim added As AddMemberListResponse = CType(service.Execute(add), AddMemberListResponse)

Related Topics

CrmService Messages

© 2007 Microsoft Corporation. All rights reserved.

© 2014 Microsoft