+ Start a Discussion
ShreyankaShreyanka 

How to find all existing Apex class, Triggers, Visualforce pages & Visualforce components version

Hi Everyone,

How to find all existing Apex class, Triggers, Visualforce pages & Visualforce components version below 21.0.

And how to upgrade all of them to current Api version.

Please help me to achieve this.

Thanks in advance!
Sai PraveenSai Praveen (Salesforce Developers) 
Hi Shreyanka,

If you edit the apex class in the org in sandbox you will find the version settings tab where you can change the version of the Apex class  as shown below.

User-added imageYou can restrieve all the apex class and triggers in VS code and find the versio numbers and change them at once and deploy the same to the org as well.

If this solution helps, Please mark it as best answer.

Thanks,
 
ShreyankaShreyanka
Hi Sai Praveen,
Could you please tell me how exactly we can retrieve them and change them at once.
If there is a code to do that, could you please share that to me.

Thanks!