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
ksandipam1.3911488281559465E12ksandipam1.3911488281559465E12 

Need selected record types of an object

I have 10 active record types in an object. I have given access to 5 record types to my profile. When I query the record types of that object, then I am able to get all the active record types. But I want to receive only those assigned record types of that object. any solution from query or apex code?
harsha__charsha__c
This link may help you, which derives record types via describe calls and check with "isAvailable()" to know the accessibity of it

Accessible record types of an object (http://salesforce.stackexchange.com/questions/5063/finding-if-which-users-have-a-record-type-available-to-them-using-soql)

- Regards,
Harsha