How to Migrate Your Repository to a New Metadata API Version
Salesforce releases three new versions throughout the year, Winter, Spring and Summer. These releases include changes in the Metadata API as new functionality is added, while some metadata items are deprecated or removed.
If you are not using any of the metadata types affected by Salesforce's new release, you may not need to make any updates or adjustments. However, what if you want your repository to be in the latest version of Salesforce's Metadata API? Keep reading to learn how you can migrate your repository to a new API version.
If you would like to migrate your repository to the latest version of the Metadata API, follow one of the two approaches below:
- Use a "fake" deployment and let Copado do the rest:
- Commit the elements which have changed in the latest API version on a user story in the lowest environment in your pipeline.
- On the same user story, commit an element that has not changed in the org, or something that can be deployed without causing any issues, a label for instance.
- Promote the user story manually.
- In the Deployment record, deselect all the elements except for the unchanged metadata type, the label in this case.
- Execute the deployment.
- Copado will merge the branches and will only deploy the label.
- Repeat that for the following orgs.
- Recommit and recreate user stories in flight.
- Recreate non-deployed promotions.
- Commit to highest and merge to lowest manually:
- Commit the changes of the latest API version into master.
- Merge master manually into the org branch outside of Copado.
- Recommit and recreate the current feature branches.