Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online
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 Function AssignEntityToUser (
    userId As Guid,
    entityName As String,
    entityId As Guid,
    batchId As Guid
) As Boolean
Parameters
- userId 
 Type: System.Guid- User ID to assign too 
- entityName 
 Type: System.String- Target entity Name 
- entityId 
 Type: System.Guid- Target entity id 
- 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
Microsoft Dynamics 365
© 2016 Microsoft. All rights reserved. Copyright