StandardValueSet
Represents the set of values in a standard picklist field.
This type extends Metadata and inherits its fields.
StandardValueSet components have the suffix .standardValueSet and are stored in the standardValueSets folder.
Introduced in API version 38.0.
- Type: string
- Required: No
- Introduced: API version 41.0
- Description: Groups picklist and enumerated values. For example, for the picklist values of the
Statusfield on the Service Appointment object,DoneandFinishedcan both have a grouping string ofCompleted.
- Type: boolean
- Required: Yes
- Description: Required. Indicates whether a global value set is sorted in alphabetical order. By default, this value is
false.
-
Type: StandardValue[]
-
Required: No
-
Description: Defines each value in a standard picklist’s value set. The
groupingStringvalue is available in API version 38.0 and later.When you deploy a StandardValueSet, this array must contain at least one picklist value. Otherwise, you receive an error.
When setting standardValue on Record Types, including person account record types, new picklist values loaded into your organization through the Metadata API don’t display in the picklist UI by default. For users to see the new values, go to the Record Types list for the object containing the picklist field, click Edit , and add the new value to the Selected Fields list.
The following example shows a StandardValueSet component that’s defined as the Stage standard picklist on a customized opportunity object.
For a list of standard value set names for standard picklists, see StandardValueSet Names and Standard Picklist Fields.
This metadata type doesn’t support the wildcard character * (asterisk) in the package.xml manifest file. For information about using the manifest file, see Deploying and Retrieving Metadata with the Zip File.