← back to the release
retirementApex

Get Compiler Warnings for Apex API Versions 9.0 Through 19.0

Apex classes and triggers saved at API versions 9.0 through 19.0 will be retired in a future release, and the Apex compiler now warns when you compile or deploy code at those versions (in Setup, Salesforce CLI, VS Code extensions, Web Console, and Tooling API). Update affected classes and triggers to API version 20.0 or later; managed package code at these versions must be fixed by the package developer. This retirement is unrelated to the Salesforce Platform API retirement and does not affect Visualforce, Flow, or Process Builder versions.

identifiers
Apex API versionApexClassApexTrigger
metadata types
ApexClassApexTrigger
flags
enabled by defaultrequires action
how
Identify flagged classes and triggers from compiler warnings and update them to API version 20.0 or later.
who
when
Warnings now; retirement in a future release.
where
Apex API versions 9.0-19.0 in Enterprise, Performance, Unlimited, and Developer editions.
read it on salesforce.com