Created
March 19, 2024 08:59
-
-
Save karkranikhil/55aebf9be3d936520daff404577cdb7d to your computer and use it in GitHub Desktop.
SOQL to see picklist
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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