Rollback deployments in Salesforce

How to rollback a Salesforce release with Blue Canvas and Git.

There are 3 ways to rollback a Salesforce release with Blue Canvas:

  1. Rollback from a previous state of your org
  2. Partially rollback select components
  3. Restore an org from another version of another org

Rolling Back to a Previous State of Your Org

Rolling back to a previous state of your org is simple.

  1. Click the Compare tab and select the sandbox or org that you want to rollback. Note: select the same org for source and destination.

  2. Once selected, click the Compare button.

  3. Click Create a Deployment Request.

  4. Below the Tag section in the DR you should see a dropdown menu titled Source Snapshot. Click the dropdown menu and you will see a list of the latest 50 commits to your org with timestamps.

1065

select commit for rollback here

  1. Select the commit just prior to the commit you want to rollback to. This will generate a list of components. You can select any or all of the components that you want to restore to that version.

  2. Title the Deployment Request and click Create Deployment Request

  3. Once the Deployment Request validates you can click `Quick Deploy' to deploy the rollback.

👍

Rollback Validations

Note that a rollback must validate normally like any other Deployment Request. Given the complex dependency chain associated with rollbacks, please note that it make take some tuning to get the rollback to go through successfully. Please contact support at [email protected] if you need help.

Partial Rollbacks

Because Blue Canvas is Git-based, we can actually create highly granular rollbacks of single components rather than to a full snapshot. Let's say that you want to just rollback a single field or restore a deleted Apex class without rolling back an entire release.

The process is much the same as creating a rollback. Just follow the steps above and select which components you want to rollback rather than selecting all.

Restore an Org from Another version of Another Org

Let's say you want to spin up a sandbox which looks like production 2 releases ago. You can now do that.

  1. Click the Compare tab and select the sandbox or org that you want to rollback. Note: select the different orgs for source and destination.

  2. Once selected, click the Compare button.

  3. Click Create a Deployment Request.

  4. Below the Tag section in the DR you should see a dropdown menu titled Source Snapshot. Click the dropdown menu and you will see a list of the latest 50 commits to your org with timestamps.

  5. Select the commit just prior to the commit you want to rollback to. This will generate a list of components. You can select any or all of the components that you want to restore to that version.

  6. Title the Deployment Request and click Create Deployment Request

  7. Once the Deployment Request validates you can click `Quick Deploy' to deploy the rollback.