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?
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It only takes a minute to sign up.
Sign up to join this communityI 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?
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