I want to write one query on Country/State picklist that if ( Country/State pick list == True) use this Query else this one

Is there any way to find that Country/State Pick list status value? any variable name of salesforce?

  • 2
    Can you provide us with more information? You wana do it on custom objector some standard functionality? Jan 31, 2014 at 6:26

1 Answer 1


you can use List values = ObjectName_c.pickList_c.getDescribe().getPickListValues(); for (Schema.PicklistEntry a : values) { a.getLabel(); a.getValue(); } this will give you picklist value and label

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.