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
geetforcegeetforce 

Fetch Profile (Sharing Rules) based RecordType in Apex

Hi, I have a requirement where I have to create one VF page where I have to show all Record Type (same as standard Record Type selection page) along with some extra fields of Case object. I have implemented it by fetching list of Record Types for Case object by hitting [Select * From RecordType where IsActive = true and SobjectType ='Case' ] Now the problem is, we have few Profile where all record types are not visible and I am not able to filter out these record type based on profile. I tried using "with sharing" keyword but this don't help me too. Here My question is, is there any way to filter out all record type which is visible for Logged In user's profile. Thanks in advance.