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
henryCHhenryCH 

Visualforce & Record Types

Hi all,

 

I have some questions regarding basic features I would have expected in Visualforce/Apex:

 

  • How do you determine which record types are available for the current user?
    A list of all available record types for a certain object is pretty useless if you don't know which are atually available for which profile.
  • How do you find out which picklist values a user may see depending on the record type of the current record?
    Again, a list of all available picklist value is usless unless I do not know which of them may be displayed to the current user.

Especially in salesforce instances with lots of record types and record type dependent picklists, it's essential to follow the existing configuration in Visualforce pages / controllers. So any suggestions or workarounds are greatly appreciated.

 

Thanks and best regards,

Henry

 

 

 

henryCHhenryCH

I could have sworn that the isAvailable() method for the RecordTypeInformation was not in the Developer Guide yesterday, but may be I just missed it. Sorry, I probably should have RTFM.

 

So any suggestions regarding the picklist values?

 

Best regards,

Henry