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
Akshay JuwaAkshay Juwa 

I want to query a record type Id where the developers name is certain for the specific record id.

VinayVinay (Salesforce Developers) 
Hi Akshay,

You can try below query.
select Id,Name from recordtype where sObjectType='Objectname'

Please mark as Best Answer if above information was helpful.

Thanks,
mukesh guptamukesh gupta
Hi Akshay,

Please follow below code:- 
 
Account acc = [Select,Id, Name, RecordType.Name, RecordTypeId Where id = 'recodrId']; //recodrId is account Id

if you need any assistanse, Please let me know!!

Kindly mark my solution as the best answer if it helps you.

Thanks
Mukesh