Kopīgot, izmantojot


GeneralExtensions.AssignEntityToUser Method

Definition

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.

Returns

Applies to