StatusOptionMetadata.TransitionData Property

Applies To: Microsoft Dynamics CRM 2013, Microsoft Dynamics CRM Online

Gets or sets the status transitions allowed for this status.

Namespace: Microsoft.Xrm.Sdk.Metadata
Assembly: Microsoft.Xrm.Sdk (in Microsoft.Xrm.Sdk.dll)

Syntax

'Declaration
<DataMemberAttribute> _
Public Property TransitionData As String
[DataMemberAttribute] 
public string TransitionData { get; set; }

Property Value

Type: String
The encoded XML document that defines the allowed transitions.

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="https://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

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Server 2008, Windows Server 2012, Windows 7 (All Versions), Windows 8 (All Versions)

Target Platforms

Windows Server 2008, ,Windows Server 2012, ,Windows 7 (All Versions),

Change History

See Also

Reference

StatusOptionMetadata Class
StatusOptionMetadata Members
Microsoft.Xrm.Sdk.Metadata Namespace

Send comments about this topic to Microsoft.
© 2013 Microsoft Corporation. All rights reserved.