Mass update API version for classes

14 views
Skip to first unread message

David Cheng

unread,
Jul 25, 2025, 12:28:57 PMJul 25
to Illuminated Cloud Q&A
I need to mass-change the <apiVersion> on a bunch of Apex classes and deploy them to the sandbox all at once.  I enabled Deploy on Save in the connection, but when I do Replace in Files on the classes folder, the classes are not deployed even though the -meta.xml files are being saved.

Is there an easy way to deploy only the classes where I updated the apiVersion?

Scott

unread,
Jul 25, 2025, 7:01:43 PMJul 25
to Illuminated Cloud Q&A, david...@idealistconsulting.com
You can use the Inconsistent API Version inspection to find and update metadata files that still use an older API version, and then if your files are managed in a version control system, you can use Deploy All Metadata with Contents set to All Changed Files (Local Changes) to deploy only the changed files relative to VCS.

Regards,
Scott Wells
Reply all
Reply to author
Forward
0 new messages