+ Start a Discussion
Jeffrey BrochsteinJeffrey Brochstein 

Listing of all Apex class in a given Org

Hi there  - Is it possible to view an entire list of all APEX classes for a given org without having to keep clicking on the 'next page' or 'show more' link. I notice that it maxs out at 1000 records when clicking either of these links, which presents an issue if the org has more than 1000 APEX class records and one is trying to document an entire listing of what is there.

Thanks - Jeff
Best Answer chosen by Jeffrey Brochstein
Martijn SchwarzerMartijn Schwarzer
Hi Jeffrey,

I'm not sure what your requirements are, but you can create a SOQL Query to get the information you need. You will need to query the ApexClass object like this:
 
List<ApexClass> classes = [select ApiVersion, Body, BodyCrc, CreatedById, CreatedDate, Id, IsValid, LastModifiedById, LastModifiedDate, LengthWithoutComments, Name, NamespacePrefix, Status, SystemModstamp from ApexClass LIMIT 10000];
Hope this helps!

Best regards,
Martijn Schwärzer
 

All Answers

Martijn SchwarzerMartijn Schwarzer
Hi Jeffrey,

I'm not sure what your requirements are, but you can create a SOQL Query to get the information you need. You will need to query the ApexClass object like this:
 
List<ApexClass> classes = [select ApiVersion, Body, BodyCrc, CreatedById, CreatedDate, Id, IsValid, LastModifiedById, LastModifiedDate, LengthWithoutComments, Name, NamespacePrefix, Status, SystemModstamp from ApexClass LIMIT 10000];
Hope this helps!

Best regards,
Martijn Schwärzer
 
This was selected as the best answer
Jeffrey BrochsteinJeffrey Brochstein
Martin - Thanks...I am seeing similar suggestions when searching on the matter.

Jeff