CrmServiceClient.UpdateStateAndStatusForEntity Method (String, Guid, String, String, Guid)
Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online
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,
string stateCode,
string statusCode,
Guid batchId = null
)
Public Function UpdateStateAndStatusForEntity (
entName As String,
id As Guid,
stateCode As String,
statusCode As String,
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.StringString version of the new state
statusCode
Type: System.StringString 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
Microsoft Dynamics 365
© 2016 Microsoft. All rights reserved. Copyright