Partager via


CRUDExtentions.UpdateStateAndStatusForEntity Method

Definition

Overloads

UpdateStateAndStatusForEntity(ServiceClient, String, Guid, Int32, Int32, Guid, Boolean)

Updates the State and Status of the Entity passed in.

UpdateStateAndStatusForEntity(ServiceClient, String, Guid, String, String, Guid, Boolean)

Updates the State and Status of the Entity passed in.

UpdateStateAndStatusForEntity(ServiceClient, String, Guid, Int32, Int32, Guid, Boolean)

Updates the State and Status of the Entity passed in.

public static bool UpdateStateAndStatusForEntity (this Microsoft.PowerPlatform.Dataverse.Client.ServiceClient serviceClient, string entName, Guid id, int stateCode, int statusCode, Guid batchId = default, bool bypassPluginExecution = false);
static member UpdateStateAndStatusForEntity : Microsoft.PowerPlatform.Dataverse.Client.ServiceClient * string * Guid * int * int * Guid * bool -> bool
<Extension()>
Public Function UpdateStateAndStatusForEntity (serviceClient As ServiceClient, entName As String, id As Guid, stateCode As Integer, statusCode As Integer, Optional batchId As Guid = Nothing, Optional bypassPluginExecution As Boolean = false) As Boolean

Parameters

serviceClient
ServiceClient

ServiceClient

entName
String

Name of the entity

id
Guid

Guid ID of the entity you are updating

stateCode
Int32

Int version of the new state

statusCode
Int32

Int Version of the new status

batchId
Guid

Optional : Batch ID to attach this request too.

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

true on success.

Applies to

UpdateStateAndStatusForEntity(ServiceClient, String, Guid, String, String, Guid, Boolean)

Updates the State and Status of the Entity passed in.

public static bool UpdateStateAndStatusForEntity (this Microsoft.PowerPlatform.Dataverse.Client.ServiceClient serviceClient, string entName, Guid id, string stateCode, string statusCode, Guid batchId = default, bool bypassPluginExecution = false);
static member UpdateStateAndStatusForEntity : Microsoft.PowerPlatform.Dataverse.Client.ServiceClient * string * Guid * string * string * Guid * bool -> bool
<Extension()>
Public Function UpdateStateAndStatusForEntity (serviceClient As ServiceClient, entName As String, id As Guid, stateCode As String, statusCode As String, Optional batchId As Guid = Nothing, Optional bypassPluginExecution As Boolean = false) As Boolean

Parameters

serviceClient
ServiceClient

ServiceClient

entName
String

Name of the entity

id
Guid

Guid ID of the entity you are updating

stateCode
String

String version of the new state

statusCode
String

String Version of the new status

batchId
Guid

Optional : Batch ID to attach this request too.

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

true on success.

Applies to