Opportunity Entity OptionSet Attribute Metadata
[Applies to: Microsoft Dynamics CRM 2011]
The opportunity entity contains a number of attributes with the underlying type of OptionSetMetadata. This includes attributes of type Picklist, State, and Status. 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 with option set values for the opportunity entity.
LogicalName | Type | OptionValue | OptionDescription |
---|---|---|---|
budgetstatus |
Picklist |
0 |
No Committed Budget |
Picklist |
1 |
May Buy |
|
Picklist |
2 |
Can Buy |
|
Picklist |
3 |
Will Buy |
|
initialcommunication |
Picklist |
0 |
Contacted |
Picklist |
1 |
Not Contacted |
|
need |
Picklist |
0 |
Must have |
Picklist |
1 |
Should have |
|
Picklist |
2 |
Good to have |
|
Picklist |
3 |
No need |
|
opportunityratingcode |
Picklist |
1 |
Hot |
Picklist |
2 |
Warm |
|
Picklist |
3 |
Cold |
|
pricingerrorcode |
Picklist |
0 |
None |
Picklist |
1 |
Detail Error |
|
Picklist |
2 |
Missing Price Level |
|
Picklist |
3 |
Inactive Price Level |
|
Picklist |
4 |
Missing Quantity |
|
Picklist |
5 |
Missing Unit Price |
|
Picklist |
6 |
Missing Product |
|
Picklist |
7 |
Invalid Product |
|
Picklist |
8 |
Missing Pricing Code |
|
Picklist |
9 |
Invalid Pricing Code |
|
Picklist |
10 |
Missing UOM |
|
Picklist |
11 |
Product Not In Price Level |
|
Picklist |
12 |
Missing Price Level Amount |
|
Picklist |
13 |
Missing Price Level Percentage |
|
Picklist |
14 |
Missing Price |
|
Picklist |
15 |
Missing Current Cost |
|
Picklist |
16 |
Missing Standard Cost |
|
Picklist |
17 |
Invalid Price Level Amount |
|
Picklist |
18 |
Invalid Price Level Percentage |
|
Picklist |
19 |
Invalid Price |
|
Picklist |
20 |
Invalid Current Cost |
|
Picklist |
21 |
Invalid Standard Cost |
|
Picklist |
22 |
Invalid Rounding Policy |
|
Picklist |
23 |
Invalid Rounding Option |
|
Picklist |
24 |
Invalid Rounding Amount |
|
Picklist |
25 |
Price Calculation Error |
|
Picklist |
26 |
Invalid Discount Type |
|
Picklist |
27 |
Discount Type Invalid State |
|
Picklist |
28 |
Invalid Discount |
|
Picklist |
29 |
Invalid Quantity |
|
Picklist |
30 |
Invalid Pricing Precision |
|
Picklist |
31 |
Missing Product Default UOM |
|
Picklist |
32 |
Missing Product UOM Schedule |
|
Picklist |
33 |
Inactive Discount Type |
|
Picklist |
34 |
Invalid Price Level Currency |
|
Picklist |
35 |
Price Attribute Out Of Range |
|
Picklist |
36 |
Base Currency Attribute Overflow |
|
Picklist |
37 |
Base Currency Attribute Underflow |
|
prioritycode |
Picklist |
1 |
Default Value |
purchaseprocess |
Picklist |
0 |
Individual |
Picklist |
1 |
Committee |
|
Picklist |
2 |
Unknown |
|
purchasetimeframe |
Picklist |
0 |
Immediate |
Picklist |
1 |
This Quarter |
|
Picklist |
2 |
Next Quarter |
|
Picklist |
3 |
This Year |
|
Picklist |
4 |
Unknown |
|
salesstage |
Picklist |
0 |
Qualify |
Picklist |
1 |
Develop |
|
Picklist |
2 |
Propose |
|
Picklist |
3 |
Close |
|
salesstagecode |
Picklist |
1 |
Default Value |
statecode |
State |
0 |
Open |
State |
1 |
Won |
|
State |
2 |
Lost |
|
statuscode |
Status |
1 |
In Progress |
Status |
2 |
On Hold |
|
Status |
3 |
Won |
|
Status |
4 |
Canceled |
|
Status |
5 |
Out-Sold |
|
timeline |
Picklist |
0 |
Immediate |
Picklist |
1 |
This Quarter |
|
Picklist |
2 |
Next Quarter |
|
Picklist |
3 |
This Year |
|
Picklist |
4 |
Not known |
Statecode to Statuscode Mapping
The following table shows the mapping between the default statecode and statuscode picklist values.
State | State value | Status | Status value |
---|---|---|---|
Open |
0 |
In Progress |
1 |
Open |
0 |
On Hold |
2 |
Won |
1 |
Won |
3 |
Lost |
2 |
Canceled |
4 |
Lost |
2 |
Out-Sold |
5 |
See Also
Reference
PicklistAttributeMetadata
StateAttributeMetadata
StatusAttributeMetadata
Concepts
Opportunity Entities
Opportunity Entity Metadata
Opportunity Entity Messages and Methods
Opportunity Entity Privileges
Microsoft Dynamics CRM 2011
Send comments about this topic to Microsoft.
© 2013 Microsoft Corporation. All rights reserved.