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
IT Admin 179IT Admin 179 

soql (select description from recordtype)

i used
soql (select description from recordtype)

result should be (1. a family member of a student 2. a student and potential studens 3. not a student account,)  but instead in developer console it gives me result of credit card names, banks names, do you know i need to edit some editing on this query?

Thx  
Glyn Anderson 3Glyn Anderson 3
The RecordType object contains record types for every sObject type in your org.  It sounds like you want the record types for only a single object (Contact, perhaps).  For that, you need to add a WHERE clause:

<pre>
SELECT DeveloperName, Description FROM RecordType WHERE SobjectType = 'Contact'
</pre>
 
Glyn Anderson 3Glyn Anderson 3
Did this answer solve your problem?  If so, please mark the question as "Solved".  If not, let us know.  If you solved it yourself another way, please post your solution.  Thanks!