+ Start a Discussion
VSK98VSK98 

how to query for all classes in salesforce

Hi All,

I wanna to know , how many classes in my org., i dont know how to write soql query on it.

Please let me know 

Adv Thnx
Siv
 
sampath goud 4sampath goud 4
Hi VSK,

Below is the query.

SELECT count() FROM ApexClass

Mark this as best answer if this resolves your query.

Regards
Sampath
Mahesh DMahesh D
Hi VSK,

As Sampath said you can write above query in Workbench or Data loader to retrieve all the classes.

There are in-built system tables where you can retrieve, Classes, Triggers...etc

Apart from writing the query, there is a Google Chrome plug-in which will be very helpful for you.

https://chrome.google.com/webstore/detail/salesforce-advanced-resou/hgghifjinbelollgliobhggnlhkaaeec?hl=en

It is a plug-in to the chrome and very helpful for any developer.

Please let me know if this helps you.

Regards,
Mahesh