SavedQuery (View) Entity OptionSet Attribute Metadata
[Applies to: Microsoft Dynamics CRM 2011]
The saved query (view) 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 saved query (view) entity.
LogicalName | Type | OptionValue | OptionDescription |
---|---|---|---|
componentstate |
Picklist |
0 |
Published |
Picklist |
1 |
Unpublished |
|
Picklist |
2 |
Deleted |
|
Picklist |
3 |
Deleted Unpublished |
|
statecode |
State |
0 |
Active |
State |
1 |
Inactive |
|
statuscode |
Status |
1 |
Active |
Status |
2 |
Inactive |
Statecode to Statuscode Mapping
The following table shows the mapping between the default statecode and statuscode picklist values.
State | State value | Status | Status value |
---|---|---|---|
Active |
0 |
Active |
1 |
Inactive |
1 |
Inactive |
2 |
See Also
Concepts
SavedQuery (View) Entity Metadata
SavedQuery (View) Entity Messages and Methods
Other Resources
Extend Microsoft Dynamics CRM for Outlook
Microsoft Dynamics CRM 2011
Send comments about this topic to Microsoft.
© 2013 Microsoft Corporation. All rights reserved.