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
BB 

Changing the api version to a higher one is affecting the functioning of the class ?

Hi,

If i have an apex class that has API version 29 and now i change  it to 45 for example, it will be somehow affected  the funtioning of the apex class, teoretically speaking.

Thanks in advance
Best Answer chosen by B
Khan AnasKhan Anas (Salesforce Developers) 
Hi,

Greetings to you!

If you have class both before and after the version in a transaction they will get different results for the same call. Depends on your code, version changing have some breaking changes. If you're not using the features that have breaking changes, then upgrading is fairly risk-free.

Please refer to the below links which might help you further with the above issue.

https://salesforce.stackexchange.com/questions/70387/what-is-the-best-practice-re-api-version-of-your-apex-classes

https://salesforce.stackexchange.com/questions/40019/what-are-all-of-the-reasons-why-salesforce-customers-should-upgrade-the-api-vers

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

https://salesforce.stackexchange.com/questions/250699/should-i-update-trigger-api-version

I hope it helps you.

Kindly 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. It will help to keep this community clean.

Thanks and Regards,
Khan Anas