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
Rajesh T 19Rajesh T 19 

What are the things needs to be consider before upgrading the Apex classes API version (e.g. older like 35 to 49 )

In our sandbox there are around 100 Apex classes having older version which was created few years ago. Now I needs to update it to current version so please guide me who has idea on this? 

Thanks in advance !
AbhishekAbhishek (Salesforce Developers) 
This is the only way ... 

To set the Salesforce API and Apex version for a class or trigger:
Edit either a class or trigger and click Version Settings.
Select the version of the Salesforce API. This is also the version of Apex associated with the class or trigger.
Click Save.


You can't change all at a time, An idea is already for it,

https://trailblazer.salesforce.com/ideaView?id=08730000000J5p3

Check it once.

For further reference check this too,

https://salesforce.stackexchange.com/questions/229795/is-there-a-way-to-upgrade-api-versions-of-all-apex-classes-without-manually-upda

https://salesforce.stackexchange.com/questions/40417/how-to-update-out-of-date-api-versions

Let me know if it helps you and close your query by marking it as solved so that it can help others in the future.

Thanks.