View Categories

Metadata Picklist by Dependency

1 min read

Dependent Picklist Metadata (from the Metadata API) #

Pull dependent Picklist mappings by Record Type, including controlling field hierarchy, controlling values, dependent values, and internal dependency indexes, per Object or for a specified Object.

Results are loaded to table ss_SysPicklistDep

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_MetaPickDep 'DEMO', 'All'

Example of Use – Single #

exec ss_MetaPickDep 'DEMO', 'Account'

ss_SysPicklistDep table #

Column NamePurpose
ObjectNameThe Salesforce object the picklist field belongs to (e.g. Account, Opportunity).
RecordTypeIdUnique Salesforce ID of the Record Type the picklist values apply to.
RecordTypeNameName of the Record Type (e.g. Master, Customer, Partner).
FieldNameAPI name of the picklist field
ControllingField
Immediate controlling field (parent) if the picklist is dependent; NULL if not dependent.
ControllingFields
Full hierarchy of controlling fields (from immediate parent upwards), shown as a chain (e.g. County__c > Region__c).
ControllerIndex
Internal index assigned to controlling field values, used by Salesforce to map dependencies.
ControllingValue
Controlling picklist value that permits the dependent value.
DependentValueAPI value of the dependent picklist option.

​DependentLabel
Display label shown to users for the dependent picklist value.
ValidForList of controlling value indexes that this picklist value is valid for (used to define dependency mappings).
DependentActiveWhether the dependent picklist value is active (1 = active, 0 = inactive).
DependentDefaultValueWhether the dependent picklist value is the default (1 = default, 0 = not default).

Leave a comment

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