You need to sign in to do that
Don't have an account?
chadwtaylor
Retrieve list of Case Type (picklist)
I need to use SOQL to retrieve a list of CASE TYPE (picklist) under CASE.
Any tips on how to do this will be greatly appreciated.
function readOnly(count){ }
You need to sign in to do that
Don't have an account?
I need to use SOQL to retrieve a list of CASE TYPE (picklist) under CASE.
Any tips on how to do this will be greatly appreciated.
I was able to get the list of picklist values under object Case using this "databasedotcom" gem (for Rails developers).
Sample usage:
> c = client.materialize("Case")
=> Case
> c.picklist_values("Type")
=> [{"value"=>"Problem", "active"=>true, "label"=>"Problem", "defaultValue"=>false, "validFor"=>nil}, {"value"=>"Feature Request", "active"=>true, "label"=>"Feature Request", "defaultValue"=>false, "validFor"=>nil}, {"value"=>"Question", "active"=>true, "label"=>"Question", "defaultValue"=>false, "validFor"=>nil}, {"value"=>"RMA Request", "active"=>true, "label"=>"RMA Request", "defaultValue"=>false, "validFor"=>nil}, {"value"=>"Site Access Request", "active"=>true, "label"=>"Site Access Request", "defaultValue"=>false, "validFor"=>nil}, {"value"=>"Sales Query", "active"=>true, "label"=>"Sales Query", "defaultValue"=>false, "validFor"=>nil}]
Hi,
You can use following blog to retrieve picklist values dynamically using Apex.
http://blogs.developerforce.com/developer-relations/2008/12/using-the-metadata-api-to-retrieve-picklist-values.html