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
renaiah anamalla 7renaiah anamalla 7 

Recordtypes.....

please help,
Account(object)
I have 2 recordtypes
Male
Female

i want retrive the record for Male 

Why the map using...
karthikeyan perumalkarthikeyan perumal
Hello Renaiah, 

using below Query with correct field name insted of Field1,Field2... 
 
Select field1,field2,.... from Account where RecordTypeId in (select id from RecordType where DeveloperName='Male')
Hope it will help you.

Thanks
Karthik

 
Dilip_VDilip_V
Hi Renaiah,

Use this query
 
Select id, name,RecordType.Name from account WHERE RecordType.Name='Male'
Please make it as best answer if it helps.
Thanks.