function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
bleesterbleester 

Retrieving picklist values by record type

Hi SFDC developers -

 

I've been trying to see if there is a way in Apex to retrieve the values of a picklist by record type.  The getPickListValues() method doesnt seem to take input arguments for record type id.  Also the DescribeSObjectResult object seems to retrieve record types info, but this child object doesnt seem to be able to get the values either.   Is there sometihng I'm missing or is there another creative solution for this?  

 

The basic requirement is on VF page to dynamically show task object picklist values based on what country a user is  from (we'll get that off user record and match to a record type on the task object and get the appropriate values). 

 

Thanks everyone!

   

jeffdonthemicjeffdonthemic

I don't think that this has been fixed yet. See this thread: Link

 

Jeff Douglas

Informa Plc

http://blog.jeffdouglas.com

VKrishVKrish

I have the same issue. I was hoping this would be fixed after Winter 11 release. But it still behaves the same.

Do anyone have an alternate solution?