Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I noticed you can choose/change which version of the API when you create a class or trigger. Are there are benefits to using a new or older version?

share|improve this question
up vote 5 down vote accepted

Selecting a newer version will generally give you access to additional features, since the functionality available to your code is tied to the API version. To take a somewhat random example, the IsPartner field on Account can be updated in API version 16.0 and later. If you selected API version 15.0 or earlier for your code, IsPartner would be read-only.

The version number is there so your code doesn't break as Salesforce introduces new goodies. I can't think of a reason that you would pick an older version for new code, unless you're extending an existing system.

share|improve this answer
Interesting. Thanks for the info! – Evan Johnson Jan 28 '13 at 3:41

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.