GeneralExtensions.AssignEntityToUser Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Assign an Entity to the specified user ID
public static bool AssignEntityToUser (this Microsoft.PowerPlatform.Dataverse.Client.ServiceClient serviceClient, Guid userId, string entityName, Guid entityId, Guid batchId = default, bool bypassPluginExecution = false);
static member AssignEntityToUser : Microsoft.PowerPlatform.Dataverse.Client.ServiceClient * Guid * string * Guid * Guid * bool -> bool
<Extension()>
Public Function AssignEntityToUser (serviceClient As ServiceClient, userId As Guid, entityName As String, entityId As Guid, Optional batchId As Guid = Nothing, Optional bypassPluginExecution As Boolean = false) As Boolean
Parameters
- serviceClient
- ServiceClient
ServiceClient
- userId
- Guid
User ID to assign too
- entityName
- String
Target entity Name
- entityId
- Guid
Target entity id
- batchId
- Guid
Batch ID of to use, Optional
- bypassPluginExecution
- Boolean
Adds the bypass plugin behavior to this request. Note: this will only apply if the caller has the prvBypassPlugins permission to bypass plugins. If its attempted without the permission the request will fault.