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

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


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) 

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.

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