CrmServiceClient.UpdateStateAndStatusForEntity Method (String, Guid, Int32, Int32, Guid)
Applies To: Dynamics CRM 2015
Updates the State and Status of the Entity passed in.
Namespace: Microsoft.Xrm.Tooling.Connector
Assembly: Microsoft.Xrm.Tooling.Connector (in Microsoft.Xrm.Tooling.Connector.dll)
Syntax
public bool UpdateStateAndStatusForEntity(
string entName,
Guid id,
int stateCode,
int statusCode,
Guid batchId = null
)
public:
bool UpdateStateAndStatusForEntity(
String^ entName,
Guid id,
int stateCode,
int statusCode,
Guid batchId = null
)
member UpdateStateAndStatusForEntity :
entName:string *
id:Guid *
stateCode:int *
statusCode:int *
batchId:Guid = null -> bool
Public Function UpdateStateAndStatusForEntity (
entName As String,
id As Guid,
stateCode As Integer,
statusCode As Integer,
batchId As Guid
) As Boolean
Parameters
entName
Type: System.StringName of the entity
id
Type: System.GuidGuid ID of the entity you are updating
stateCode
Type: System.Int32Int version of the new state
statusCode
Type: System.Int32Int Version of the new status
batchId
Type: System.GuidOptional : Batch ID to attach this request too.
Return Value
Type: System.Boolean
true on success.
See Also
UpdateStateAndStatusForEntity Overload
CrmServiceClient Class
Microsoft.Xrm.Tooling.Connector Namespace
Return to top
© 2016 Microsoft. All rights reserved. Copyright