View Categories

Metadata Picklist Extra Information

1 min read

Picklist Metadata (from the Metadata API) #

Pull metadata-enriched Picklist values, including field details, value set source, controlling field, and active status, per Object or for a specified Object.

Results are loaded to table ss_SysPicklistX

Parameters #

ParameterPurpose
@ObjectNameSalesforce Object Name (for example Account).alternatively pass “All” to retrieve all Objects
@EnvSQL Sales Environment Name, see Setup
@Special1Future use, not currently used
@Special2Future use, not currently used

Example of Use – All #

exec ss_MetaPickX 'DEMO', 'All'

Example of Use – Single #

exec ss_MetaPickX 'DEMO', 'Account'

ss_SysPicklistX table #

Column NamePurpose
ObjectNameThe Salesforce object the picklist field belongs to (e.g. Account, Opportunity)
FieldNameAPI name of the picklist field
FieldLabelUser-friendly label of the field as shown in the UI
FieldTypeField type (e.g. picklist, multipicklist)
ValueSetSourceWhere the picklist values are sourced from (e.g. Local or Global value set)
ValueSetNameName of the global value set if used; NULL for locally defined picklists
RestrictedWhether the picklist restricts values to the defined list only (1 = restricted, 0 = unrestricted)
SortedWhether the picklist values are sorted alphabetically (1 = sorted, 0 = manual order)
ControllingFieldAPI name of the controlling field if this is a dependent picklist; NULL if not dependent
ValueAPI value of the picklist option
LabelDisplay label shown to users for the picklist value
ActiveWhether the picklist value is active and available for use (1 = active, 0 = inactive)
DefaultValueWhether the picklist value is the default for the field (1 = default, 0 = not default)

Leave a comment

Your email address will not be published. Required fields are marked *