0

Is there a way to upgrade api versions of all apex classes without manually updating each of them?

I have read this link and try to achieve but not able to deploy in the sandbox using the VS code.

Is there any other ways to update the API version for all apex classes and triggers?

6
  • Can you elaborate "Unable to deploy"? Are there any issues? – kurunve Aug 7 '20 at 14:27
  • I have a requirement to upgrade API version to all apex classes and apex triggers and I have find and replaced all versions from a mata.XML file and try to deploy a group of metadata like classes and got successful deployment message but when I check in the sandbox apex classes API version not updated. So, can you tell me how can I upgrade api versions. – Rajesh Kumar Aug 7 '20 at 14:36
  • You can just use metadata api of sfdx to retrieve all classes, then change api version in meta xml files and deploy them back – kurunve Aug 7 '20 at 14:41
  • 2
    The linked question includes multiple correct solutions. Please edit your post to elaborate on how you achieved this; it is likely a procedural mistake. – David Reed Aug 7 '20 at 14:50
  • If you have complication with vs code you can also do it from workbench - first retrieve all apex classes, extract the zip, modify the api version in each, create new zip file and deploy it with workbench. + Probably you can use some editor like notepad++ to modify all meta.xml files from the zip in bulk – Liron C Aug 7 '20 at 15:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.