Skip to content

Instantly share code, notes, and snippets.

@karkranikhil
Created March 19, 2024 08:59
Show Gist options
  • Select an option

  • Save karkranikhil/55aebf9be3d936520daff404577cdb7d to your computer and use it in GitHub Desktop.

Select an option

Save karkranikhil/55aebf9be3d936520daff404577cdb7d to your computer and use it in GitHub Desktop.
SOQL to see picklist
SELECT EntityParticle.DeveloperName, Label, Value, IsActive
FROM PicklistValueInfo
WHERE EntityParticle.EntityDefinition.QualifiedApiName = 'Opportunity'
ORDER BY EntityParticleId, Label
//If you need to see all picklist controlling fields ( dependencies ), check this SOQL out:
SELECT EntityParticle.DeveloperName, Label, Value, IsActive, EntityParticle.IsDependentPicklist, EntityParticle.FieldDefinition.ControllingFieldDefinition.DeveloperName
FROM PicklistValueInfo
WHERE EntityParticle.EntityDefinition.QualifiedApiName = 'Account'
AND EntityParticle.IsDependentPicklist = TRUE
ORDER BY EntityParticleId, Label
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment