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
Sharmila SahooSharmila Sahoo 

How can I get Name of all apex class having api version less than 36 in my org? Please suggest as it is really important requirement. We need to upgrade classes having older api version

Best Answer chosen by Sharmila Sahoo
Dilip_VDilip_V
HI Sharmila,

Use this query.
select name from ApexClass where APIversion=36

ApexClass is just like custom object.
For more info
https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_apexclass.htm

Mark it as best answer if it  helps.

Thanks.

All Answers

Dilip_VDilip_V
HI Sharmila,

Use this query.
select name from ApexClass where APIversion=36

ApexClass is just like custom object.
For more info
https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_apexclass.htm

Mark it as best answer if it  helps.

Thanks.
This was selected as the best answer
Sharmila SahooSharmila Sahoo
Best Answer