Newer Version Available

This content describes an older version of this product. View Latest

GlobalValueSet

Represents a set of values used by a global picklist. Available from API version 39.0 or later.

Where possible, we changed noninclusive terms to align with our company value of Equality. We maintained certain terms to avoid any effect on customer implementations.

Important

Supported SOAP Calls

create()query()retrieve(), search()update()upsert()

Supported REST HTTP Methods

Query, GET, POST, PATCH

Fields

Field Name Details
CustomValue
Type
CustomValue[]
Properties
Filter, Group, Sort
Description
A list of the global picklist values.
Description
Type
string
Properties
Filter, Nillable, Sort
Description
A picklist value’s description. It’s useful to include a description for a picklist value so the reason for creating it can be tracked. Limit: 255 characters.
FullName
Type
string
Properties
Create, Group, Nillable
Description
The full name of the associated metadata object in the Metadata API.
Query this field only if the query result contains no more than one record. Otherwise, an error is returned. If more than one record exists, use multiple queries to retrieve the records. This limit protects performance.

Any global value set created in API version 57.0 or later automatically has the __gvs suffix appended to FullName. When you make any CRUD-based call with the GlobalValueSet type, you must append the suffix to the FullName field when you reference the type.

MasterLabel
Type
string
Properties
Filter, Group, Sort
Description
Sorted
Type
boolean
Properties
Filter, Group, Sort
Description
True if the picklist values are sorted alphabetically.

CustomValue Metadata

Metadata about the global value set is returned in the CustomValue field.

Field Type Description
Color string The color assigned to the picklist value when it’s used in charts on reports and dashboards. The color is in hexadecimal format; for example, #FF6600. If a color isn’t specified, it’s assigned dynamically upon chart generation.
Default boolean Required. Indicates whether this value is the default selection for the global picklist and the custom picklists that share its picklist value set. This field is set to true by default.
Description string A picklist value’s description. It’s useful to include a description for a picklist value so the reason for creating it can be tracked. Limit: 255 characters.
IsActive boolean Indicates whether this value is active or inactive. The default value is true. Users can select only active values from a picklist. An API retrieve operation for global picklist values returns all active and inactive values in the picklist. But retrieving the values of a non-global, unrestricted picklist returns only the active values.
Label string The global picklist value’s label, or API name. If you don’t specify the label when creating a value, it defaults to the text of the picklist value (ValueName). The ValueName isn’t used if you update the label.
ValueName string The text of the picklist value.