SetStateRequest.State Property


Gets or sets the state of the entity record. Required.

 property Microsoft::Xrm::Sdk::OptionSetValue ^ State { Microsoft::Xrm::Sdk::OptionSetValue ^ get(); void set(Microsoft::Xrm::Sdk::OptionSetValue ^ value); };
public Microsoft.Xrm.Sdk.OptionSetValue State { get; set; }
member this.State : Microsoft.Xrm.Sdk.OptionSetValue with get, set
Public Property State As OptionSetValue

Property Value


Type: OptionSetValueThe state of the entity record.


The State property corresponds to the StateCode attribute of an entity. It specifies the possible states for an entity record. It is shown as the Status in the Microsoft Dynamics 365 application. For a list of the state values, refer to the entity metadata. You can find this information in the metadata for your organization. See the preceding metadata browser information.More information: 8597998f-764f-4c73-b63d-9f5e02c78061#bkmk_RecordStateandStatus.

Applies to