Thursday, February 16, 2012

Upgrading the API version of an Apex class in Salesforce

Salesforce tracks the API version used when an Apex class was created to "prevent breakages with backwards-incompatible changes".

I recently wanted to upgrade from the version 20.0 API to 24.0 API so that test methods wouldn't run with live data.

The change can be made under the Version Settings tab for the Apex Class.