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
Dan NorfleetDan Norfleet 

Upgrading API Versions

We had Salesforce create a Health Assessment report for us.  Found that we had 6 Apex Classes / 2 Apex Triggers / 5 Visualforce Pages that were using old versions of API's.  Within the "New Code using old API" section we had 37 Apex Classes / 2 Apex Triggers / 4 Visualforce Pages using old versions of API's.

We are new to this process so any guidance / answers / suggestions would be much appreciated for the following questions:
What are others doing to keep API's as current as possible (would it be a good practice to set time aside once a year to make sure all Classes / Triggers / Pages are using the most current version of API's)?  We are requiring when code is updated to upgrade to latest API, but sometimes code doesn't change often.
Can someone give a guess or rough estimate the amount of time it would take 2 people to go through process of upgrading to the latest versions of API's?  (ie so many hours per change or estimate of 40/80/120 ... hours)
What is the recommended process for Apex Classes to upgrade to the latest API version.
What is the recommended process for Apex Triggers to upgrade to the latest API version.
What is the recommended process for Visualforce Pages to upgrade to the latest API version.
Thanks for any guidance you can provide.  Trying to keep our environment as stable / healthy as possible.

Dan
Best Answer chosen by Dan Norfleet
MagulanDuraipandianMagulanDuraipandian
Hi Dan,
Testing takes more time than upgrading. There may be minimal changes required by the developers to adjust the components with latest API version.

This will take 50 to 80 hours including testing, deployment and validation.

Upgrade it in the lower environment. Thoroughly test it before pushing it to Production.

--
Magulan Duraipandian
www.infallibletechie.com

All Answers

MagulanDuraipandianMagulanDuraipandian
Hi Dan,
Testing takes more time than upgrading. There may be minimal changes required by the developers to adjust the components with latest API version.

This will take 50 to 80 hours including testing, deployment and validation.

Upgrade it in the lower environment. Thoroughly test it before pushing it to Production.

--
Magulan Duraipandian
www.infallibletechie.com
This was selected as the best answer
Lorenzo Calò 6Lorenzo Calò 6
So, i need just to update the API version of Apex in sandbox and then to deploy it in prod environment? is it correct?
Alexis MassonAlexis Masson

Hi,

Also interested by the answer, or the confirmation of Lorenzo's question !

 

Thanks :)

Farzana Khan 7Farzana Khan 7
Can some one please let me know if on saving the updated API version it right away notifies you if domething is wrong?
 
Seetha Arulprakash 3Seetha Arulprakash 3
@Farzana - if you had used any methods that were deprecated in the newer versions, it would be flagged up as error when deploying.