Share via


OrganizationServiceContextExtensions.AddMemberList Method (OrganizationServiceContext, Guid, Guid)

 

Applies To: Dynamics CRM 2015

Adds a member to a list. The member added must be one of the following entity types: account, contact, or lead. (Developer Extensions)

Namespace:   Microsoft.Xrm.Client.Messages
Assembly:  Microsoft.Xrm.Client (in Microsoft.Xrm.Client.dll)

Syntax

public static Guid AddMemberList(
    this OrganizationServiceContext context,
    Guid listId,
    Guid entityId
)
public:
[ExtensionAttribute]
static Guid AddMemberList(
    OrganizationServiceContext^ context,
    Guid listId,
    Guid entityId
)
static member AddMemberList : 
        context:OrganizationServiceContext *
        listId:Guid *
        entityId:Guid -> Guid
<ExtensionAttribute>
Public Shared Function AddMemberList (
    context As OrganizationServiceContext,
    listId As Guid,
    entityId As Guid
) As Guid

Parameters

  • entityId
    Type: System.Guid

    The ID of the record to add to the list.

Return Value

Type: System.Guid

Returns a Guid that contains the ID of the resulting list member.

Remarks

This is a method wrapper for the AddMemberListRequest and AddMemberListResponse classes. See the documentation in the Request class for more information about this message.

See Also

OrganizationServiceContextExtensions Class
Microsoft.Xrm.Client.Messages Namespace
Developer extensions for Microsoft Dynamics CRM 2015

Return to top

© 2017 Microsoft. All rights reserved. Copyright