StandardValueSet defines the values and value-specific business meaning of a standard picklist field. It is separate from the field definition: for example, OpportunityStage is the value-set component for Opportunity.StageName. Each standardValue entry belongs to that component; it is not a separately deployed metadata component.
This type controls more than labels. Depending on the field, a value can identify a won opportunity stage, a closed case status, a converted lead status, or another business state. Value activation, default selection, and availability for a record type are separate settings.
Key Elements
| Element | What the Element Controls |
|---|---|
fullName |
The component's inherited name: the Salesforce standard value-set name, such as OpportunityStage. It need not match the field API name or an Object.Field expression. |
standardValue |
The contained value definitions. A deployed component must contain at least one entry; an empty array causes a deployment error. |
standardValue.fullName, standardValue.label
|
The individual value's API name and display text. If label is omitted during creation, it defaults to the value's API name. |
standardValue.isActive |
Whether the value is active. Users can select only active values. |
standardValue.default |
Whether the value is a default selection. This does not determine whether it is active or selected for a record type. |
sorted |
Required boolean controlling alphabetical ordering. The default is false. This is an ordering setting, not a business-state classification. |
groupingStringEnum, standardValue.groupingString
|
Grouping information for picklist and enumerated values, with groupingString supplying per-value grouping information. |
standardValue.won |
For Opportunity Stage, whether the value represents a closed and won stage. |
standardValue.probability |
The probability percentage associated with an Opportunity Stage value. |
standardValue.forecastCategory |
The forecast category for an Opportunity Stage value. Exposed values are BestCase, Closed, Forecast, MostLikely, Omitted, and Pipeline. |
standardValue.closed |
For Case Status and Task Status, whether the value represents a closed status. |
standardValue.converted |
For Lead Status, whether the value represents a converted status. |
standardValue.highPriority |
For Task Priority, whether the value represents a high-priority item. |
standardValue.allowEmail |
For Quote Status, whether the value allows users to email a quote PDF. |
standardValue.reverseRole |
For partner roles, the corresponding reverse role value in a partner relationship. |
Behavior and Constraints
Activation, defaults, and record types are separate
A value's presence in StandardValueSet does not make it available in every record type's picklist. Keep these controls distinct:
-
standardValue.isActivedistinguishes active from inactive values. Users can select only active values. -
standardValue.defaultidentifies a default selection; it does not activate a value. - Record type selections determine which values appear in that record type's picklist UI.
New picklist values loaded through Metadata API do not automatically appear in the picklist UI for record types, including person account record types. The affected record type must also select the new values. In Setup, open the object's Record Types list, click Edit for the affected record type, and add the new value to the Selected Fields list.
Business meaning is not inferred from the label
The specialized properties on standardValue apply to particular standard fields. Do not treat them as interchangeable status flags.
Opportunity Stage values combine won, probability, and forecastCategory. Renaming a stage is a different configuration change from changing its win status, probability percentage, or forecast category.
Likewise, closed identifies closed Case and Task statuses, while converted identifies converted Lead statuses. Those properties carry meaning independently of whether the label contains words such as "Closed" or "Converted". The same distinction applies to high-priority Task values, Quote Status email permissions, and partner reverse roles.
Grouping can also differ from the label. For example, Service Appointment Status values named Done and Finished can both have a groupingString of Completed. Distinct labels can therefore belong to the same business grouping.
Deployment and Retrieval
Use the value-set name, not a derived field name
Metadata API stores these components in the standardValueSets folder with the .standardValueSet suffix. Retrieve the value-set component separately from the standard field definition.
StandardValueSet does not support the * wildcard in package.xml. Retrieval and deployment manifests must explicitly name the required value sets. Use Salesforce's StandardValueSet Names and Standard Picklist Fields mapping rather than concatenating object and field names.
For example, the manifest entry for the values of Opportunity.StageName is:
<types><members>OpportunityStage</members><name>StandardValueSet</name></types>
A retrieval failure can indicate a naming mismatch rather than an unsupported picklist. Reported examples include IPolicyPremiumFrequency for InsurancePolicy.PremiumFrequency and HProviderProviderType for the Healthcare Provider object's ProviderType field.
Retrieve and deploy a named component
The CLI can target a single named value set. A 2024 community example uses these commands for CaseStatus:
sf project retrieve start -o sourceOrgAlias -m StandardValueSet:CaseStatus
sf project deploy start -o targetOrgAlias -m StandardValueSet:CaseStatus
Do not assume a partial value list is additive
A deployed StandardValueSet must contain at least one standardValue. An empty array is not a way to clear the picklist; it causes a deployment error.
Deploying only newly added values must not be assumed to preserve every existing active value. In a reported CaseStatus deployment, existing target values omitted from the payload became inactive. The reported remedy was to include the existing values alongside the new values when those existing values needed to remain active. This is reported deployment behavior, not a documented deletion operation.
Deployment of the value set also does not replace record type configuration. A successfully deployed, active value can still be absent from a record type's picklist until that record type selects it.
Relationships
Field definitions and record type configuration remain separate from the contained standardValue definitions. The following metadata types can reference the value set through their picklist elements.
Referenced By
-
CustomObject:picklist -
RecordType:picklist
Name-based translation association: A StandardValueSetTranslation component associates with a StandardValueSet through the component-name pattern <valueSetName>-<languageCode>. Preserve the complete value-set name, including any namespace, and the complete language-code suffix when resolving the association. The associated component is the value set, not CustomObject.
This naming relationship does not prove that a translation component exists in an org, and it does not establish that the value set and translation must be deployed together.
Reported Issues
-
Existing values can become inactive after a partial deployment. In a 2019 report involving
CaseStatus, target values omitted from the deployed value set became inactive. The answer recommended including existing values that must remain active along with the new values. Case Status deployment report. -
A retrieval failure can come from a non-obvious component name. In a 2019 Financial Services Cloud discussion,
InsurancePolicyPremiumFrequencyandInsurancePolicy.PremiumFrequencydid not retrieve the desired value set. The accepted answer identifiedIPolicyPremiumFrequencyforInsurancePolicy.PremiumFrequency. Insurance Policy naming report. -
Using the field name alone can produce a component-not-found result. In a 2022 Health Cloud report, the author could not retrieve the Healthcare Provider object's
ProviderTypevalues using that name. The author reported that Salesforce Support suppliedHProviderProviderTypeas the value-set name. This remains a community-reported mapping. Provider Type naming report. -
Source tracking can miss a field-dependency change involving a standard picklist. In a 2020 scratch-org report, adding a dependency between Opportunity Stage and a custom Loss Reason picklist produced no detected source changes. The answer recommended explicitly retrieving
CustomObject:Opportunityrather than relying on source tracking to detect the change. Field-dependency retrieval discussion. -
A change-set-only deployment was reported as unavailable for standard picklist changes. In a discussion opened in 2018 about deploying
Case.Origin, with an answer last edited in 2024, the accepted answer reported that Standard Value Sets were not available in change sets. Treat this as a reported change-set limitation, not as a limitation of Metadata API deployment. Change-set deployment discussion. -
Querying
StandardValueas a top-level Tooling API column was reported to fail. In a 2017 discussion, the query returned a "No such column" error. The answer retrievedMetadatainstead and read the nested value array, using aMasterLabelorDurableIdfilter. This concerns the Tooling API query shape, not the XML structure of a Metadata API component. Tooling API query discussion. -
A successful Tooling API read does not establish that a direct PATCH update will work. In a 2022 report about adding a Contact Lead Source value, direct PATCH attempts returned
MALFORMED_ID. The answer reported that the Tooling API describe result markedStandardValueSetas neither createable nor updateable. Direct REST update discussion.
Common Questions
Can I retrieve all StandardValueSet components with a wildcard?
No. StandardValueSet does not support * in package.xml. Explicitly list each required value-set name using Salesforce's standard value-set mapping.
Why is my deployed picklist value missing from a record type?
The value must be active and selected in the affected record type's picklist configuration. New values loaded through Metadata API do not automatically appear for record types, including person account record types.
Can I deploy only the new standard picklist values?
Do not assume that this is additive. A reported CaseStatus deployment made omitted target values inactive. Include existing values that must remain active alongside the new values.
Which metadata component contains Opportunity Stage values?
OpportunityStage is the StandardValueSet component for Opportunity.StageName. Its values can carry won, probability, and forecastCategory settings in addition to their names and labels.
How are standard picklist translations linked to the value set?
StandardValueSetTranslation uses the component-name pattern <valueSetName>-<languageCode>. Preserve any namespace and the complete language-code suffix. The naming association does not mean a translation exists or that both components must be deployed together.