Newer Version Available
GlobalPicklistValue
File Suffix and Directory Location
GlobalPicklistValue components have the suffix .globalPicklistValue and are stored in the globalPicklistValues folder.
Version
GlobalPicklistValue components are available in API version 37.0 and later.
Fields
PicklistValue
This metadata type defines a value in the picklist and specifies whether this value is the default value. This type extends the GlobalPicklistValue metadata type and inherits all its fields. In API version 36.0 and earlier, PicklistValue extends the Metadata type and inherits its fullName field.
Note the following when working with picklist values:
- When you retrieve a standard object, all picklist values are retrieved, not just the customized picklist values.
- When you deploy changes to standard picklist fields, picklist values are added as needed.
- To deactivate a global picklist value, you can invoke an update() call on GlobalPicklist with the value omitted, or with the value’s isActive field set to false. Or, you can invoke an update() call directly on GlobalPicklistValue with the isActive field set to false.
- If picklist values are missing from a component definition, they get deactivated when deployed. Deactivation occurs for picklist values of both standard and custom fields.
| Field Name | Field Type | Description |
|---|---|---|
| allowEmail | boolean | Indicates whether this value lets users email a quote PDF (true), or not (false). This field is only relevant for the Status field in quotes. This field is available in API version 18.0 and later. |
| closed | boolean | Indicates whether this value is associated with a closed status (true), or not (false). This field is only relevant for the standard Status field in cases and tasks. This field is available in API version 16.0 and up to version 36.0. In version 37.0, this field is in GlobalPicklistValue. |
| color | string | Indicates the color assigned to the picklist value when used in charts on reports and dashboards. The color is in hexadecimal format; for example, #FF6600. If a color is not specified, it is assigned dynamically on chart generation. This field is available in API version 17.0 and later. In version 37.0 and later, this field is in GlobalPicklistValue. |
| controllingFieldValues | string[] | A list of values in the controlling field that are linked to this picklist
value. The controlling field can be a checkbox or a picklist. This field is
available in API
version 14.0 and later. The values in the list depend on the field type:
|
| converted | boolean | Indicates whether this value is associated with a converted status (true), or not (false). This field is relevant for only the standard Lead Status field in leads. Your organization can set its own guidelines for determining when a lead is qualified, but typically, you want to convert a lead as soon as it becomes a real opportunity that you want to forecast. For more information, see “Convert Qualified Leads” in the Salesforce online help. This field is available in API version 16.0 and later. |
| cssExposed | boolean |
Indicates whether this value is available in
your Self-Service
Portal (true), or not (false). This field is only relevant for the standard
Case Reason field in cases. Self-Service provides an online support channel for your customers - allowing them to resolve their inquiries without contacting a customer service representative. For more information about Self-Service, see “Setting Up Self-Service” in the Salesforce online help. This field is available in API version 16.0 and later. |
| default | boolean | Required. Indicates whether this value is the default picklist value in the specified picklist (true), or not (false). This field is available in API version 36.0 and earlier. In version 37.0 and later, this field is in GlobalPicklistValue. |
| description | string | Description of a custom picklist value. This field is only relevant for the standard Stage field in opportunities. It is useful to include a description for a customized picklist value so that the historical reason for creating it can be tracked. This field is available in API version 16.0 and up to version 36.0. In version 37.0 and later, this field is in GlobalPicklistValue. |
| forecastCategory | ForecastCategories (enumeration of type string) |
Indicates whether this value is associated
with a forecast category (true), or not
(false). This field is only relevant for the
standard Stage field in opportunities. For more
information about forecast categories, including the valid string values listed
below, see “ Working with Forecast Categories ” in the Salesforce
online help.
This field is available in API version 16.0 and later. |
| fullName | string | The name used as a unique identifier for API access. The fullName can contain only underscores and alphanumeric characters. It must be unique, begin with a letter, not include spaces, not end with an underscore, and not contain two consecutive underscores. This field is inherited from the Metadata component. |
| highPriority | boolean | Indicates whether this value is a high priority item (true), or not (false). This field is only relevant for the standard Priority field in tasks. For more information about tasks, see “Considerations for Using Tasks” in the Salesforce online help. This field is available in API version 16.0 and later. |
| probability | int | Indicates whether this value is a probability percentage (true), or not (false). This field is only relevant for the standard Stage field in opportunities. This field is available in API version 16.0 and later. |
| reverseRole | string |
A picklist value corresponding to a reverse role name
for a partner. If the role is “subcontractor”, then the reverse role
might be “general contractor”. Assigning a partner role to an
account in Salesforce
creates a reverse partner relationship so that both accounts list the other as a
partner. This field is only relevant for partner roles. For more information, see “Partner Fields” in the Salesforce online help. This field is available in API version 18.0 and later. |
| reviewed | boolean | Indicates whether this value is associated with a reviewed status (true), or not (false). This field is only relevant for the standard Status field in solutions. For more information about opportunities, see “Creating Solutions” in the Salesforce online help. This field is available in API version 16.0 and later. |
| won | boolean | Indicates whether this value is associated with a closed or won status (true), or not (false). This field is only relevant for the standard Stage field in opportunities. This field is available in API version 16.0 and later. |
Declarative Metadata Sample Definition
For an example of a GlobalPicklist component with a package.xml that references it, see GlobalPicklist