Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

StatusOptionMetadata.TransitionData Property

Definition

Namespace:
Microsoft.Xrm.Sdk.Metadata
Assembly:
Microsoft.Xrm.Sdk.dll
Package:
Microsoft.PowerPlatform.Dataverse.Client v1.2.10

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Gets or sets the status transitions allowed for this status.

public:
 property System::String ^ TransitionData { System::String ^ get(); void set(System::String ^ value); };
[System.Runtime.Serialization.DataMember]
public string TransitionData { get; set; }
[<System.Runtime.Serialization.DataMember>]
member this.TransitionData : string with get, set
Public Property TransitionData As String

Property Value

The encoded XML document that defines the allowed transitions.

Attributes

Remarks

When the EntityMetadata.EnforceTransitions property is true, the data in this property defines which status changes are allowed. The document defines both the current status sourcestatusid and the allowed status values tostatusid.

&lt;allowedtransitions xmlns="http://schemas.microsoft.com/crm/2009/WebServices"&gt;
&lt;allowedtransition sourcestatusid="1" tostatusid="6" /&gt;
&lt;/allowedtransitions&gt;

Information about the statecode value that corresponds to the allowed status values is available by querying the StatusOptionMetadata.State property of the option with the StatusOptionMetadata.Value that corresponds to the tostatusid value.

More information: Define custom state model transitions

Applies to