CrmServiceClient.AssignEntityToUser Method (Guid, String, Guid, Guid)

 

Applies To: Dynamics CRM 2015

Assign an Entity to the specified user ID

Namespace:   Microsoft.Xrm.Tooling.Connector
Assembly:  Microsoft.Xrm.Tooling.Connector (in Microsoft.Xrm.Tooling.Connector.dll)

Syntax

public bool AssignEntityToUser(
    Guid userId,
    string entityName,
    Guid entityId,
    Guid batchId = null
)
public:
bool AssignEntityToUser(
    Guid userId,
    String^ entityName,
    Guid entityId,
    Guid batchId = null
)
member AssignEntityToUser : 
        userId:Guid *
        entityName:string *
        entityId:Guid *
        batchId:Guid = null -> bool
Public Function AssignEntityToUser (
    userId As Guid,
    entityName As String,
    entityId As Guid,
    batchId As Guid
) As Boolean

Parameters

  • batchId
    Type: System.Guid

    Batch ID of to use, Optional

Return Value

Type: System.Boolean

See Also

CrmServiceClient Class
Microsoft.Xrm.Tooling.Connector Namespace

Return to top

© 2016 Microsoft. All rights reserved. Copyright