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
Deepu2123Deepu2123 

Apex API version changing

Hi Developers,

I need a small help from you guys. I got the new requirement Apex classes API Version. In our org we have lot of apex classes with different  API Versions. So i need to update the API Version. Do we have best practices or any suggestion if i chnage the API Version is there any conflict.

Please provide me an update or technique to change the API version without any conflict.

Thanks,
SC.
Manj_SFDCManj_SFDC
Hi Charan,

some times your sandbox and production org have different version at the time of deployment you may get face problems regarding versions
Changing API versions can only be done in a sandbox or developer org You cannot directly change production

please refer these
https://help.salesforce.com/articleView?id=code_version_settings_apex.htm&type=5
https://salesforce.stackexchange.com/questions/70387/what-is-the-best-practice-re-api-version-of-your-apex-classes
Raj VakatiRaj Vakati
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.