ContractDetail (Contract Line) Entity OptionSet Attribute Metadata

[Applies to: Microsoft Dynamics CRM 2011]

The contract detail (contract line) entity contains a number of attributes with the underlying type of OptionSetMetadata. This includes attributes of type PicklistAttributeMetadata, StateAttributeMetadata, and StatusAttributeMetadata. This topic shows the values for these attributes in a default, uncustomized installation of Microsoft Dynamics CRM. For information on how to generate and use enumerations for these values in your code, see Helper Code: Enumerations for Option Sets.

OptionSet Values

The following table lists the attributes and option set values for the contract detail (contract line) entity.

LogicalName Type OptionValue OptionDescription

contractstatecode

Picklist

1

Default Value

servicecontractunitscode

Picklist

1

Default Value

statecode

State

0

Existing

State

1

Renewed

State

2

Canceled

State

3

Expired

statuscode

Status

1

New

Status

2

Renewed

Status

3

Canceled

Status

4

Expired

Statecode to Statuscode Mapping

The following table shows the mapping between the default statecode and statuscode picklist values.

State State value Status Status value

Existing

0

New

1

Renewed

1

Renewed

2

Canceled

2

Canceled

3

Expired

3

Expired

4

See Also

Concepts

ContractDetail (Contract Line) Entity Metadata
ContractDetail (Contract Line) Entity Messages and Methods

Other Resources

Contract Entities

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