How can I get Name of all apex class having api version less than 36 in my org? We need to upgrade classes having older api version.Please guide us regarding that.

  • 2
    this is the query to get all apex class and api version. SELECT name,ApiVersion FROM ApexClass WHERE ApiVersion < 36 – Shravan Boddula Oct 6 '16 at 5:17

It's better if you create a view in Apex class section in your org. There you can filter the classes by applying filter based on ApiVersion of classes.

enter image description here

Other then this you can perform Query also on ApexClass Object. The following Query would work for you:

Select Apiversion,Name from ApexClass where Apiversion<36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.