Note: For customers migrating from the legacy workflow for synchronizing developer sandboxes using static environments, read this article on how to make the move: Migrating from legacy back propagation to Developer Sandbox Updates
What are Developer Sandbox Updates?
Gearset tracks promotions and releases to the default base branch you've set in your pipeline settings. This is usually the main or master branch, but your base branch may be an earlier branch when using Projects or other branching strategies.
Each promotion (merge commit) to your base branch is presented as one update you can deploy to your developer sandbox. A release is a single developer sandbox update.
Developer Sandbox Updates help you keep your sandbox up to date with your base branch.
Why use Developer Sandbox Updates?
When a developer sandbox is out of sync with your base branch, changes made in that sandbox are starting from an outdated source of truth. Building on an outdated source of truth leads to more merge conflicts and a higher chance of overwriting your teammates' work.
Developer sandbox updates:
Automatically track promotions to your base branch as ‘updates’, to show how out of sync your environments are.
Bring your sandboxes up to date with your base branch (or a specific promotion) in a single click.
Avoid dependency related deployment errors by maintaining the order that promotions were merged to your base branch.
Never lose your work in progress. Automatically detect work in progress, including uncommitted items in your sandbox, that may be impacted by the update. Merge your work in progress with the incoming updates to preserve both changes.
How to enable Developer Sandbox Updates
Prerequisites to enabling Dev Sandbox Updates feature:
Before enabling Updates on your developer sandbox environments, we recommend that your developer sandbox is as up to date with production, or your base branch as possible.
If you are an existing customer using the legacy workflow for synchronizing developer sandboxes using static environments, read this article on how to make the move.
By default, Developer Sandbox Updates will be enabled for all new developer sandbox environments added to a pipeline.
For those not automatically enabled, click on the developer sandbox environment, navigate to the Updates tab and click Enable updates.
You can also use the toggle to disable/enable updates for a specific Sandbox. Pictured below Enable updates option.
Now any promotions merged into your base branch will appear on your developer sandbox as Updates - you can deploy these back to your developer sandbox.
No additional set up of Git branches or CI jobs is required for this functionality.
Note: even if the feature has originated from a particular dev sandbox, you will still receive an update once the feature has merged into your base branch. This is to account for any extra commits/conflict resolutions throughout the promotion towards production that could need bringing back into that sandbox.
What do the Icons in Developer Sandboxes mean?
Circular Arrows Icon: This indicates that there are updates ready to sync showing the number of updates pending on the left side.
Yellow Exclamation Mark (!): This appears when there are 5 pending updates. It serves as a reminder that updates should be applied soon to keep it sync with your base branch.
Red Exclamation Mark (!): This appears when the number of pending updates reaches 10 or more. It indicates that updates are now critical and should be applied as soon as possible to avoid potential issues.
Updating your developer sandbox
You must have deployment level access to the sandbox in question or be a Team Owner to use this functionality.
Click Update now to update your developer sandbox.
By default, all pending updates are selected to be deployed directly to your developer sandbox together in one go. If you need to deploy a particular update before the others due to dependencies or validation errors, then select ‘up to a point’ in the order as below.
Gearset will capture work in progress in the sandbox that will be affected by the update, and attempt to merge your work in progress with the incoming changes. This is done point-in-time from the target sandbox to ensure you never overwrite your work in flight.
If there are no conflicts with your work in progress, the update will continue to deploy to the target sandbox.
If there are conflicts but Gearset is able to use semantic detection to handle the conflict, the update will continue to deploy.
If there is a true conflict we cannot automatically resolve, you can resolve the conflicts in Gearset.
Once you've committed your resolutions, Gearset will continue to deploy the update to your developer sandbox.
Refreshing your sandbox from your base branch
If there's no need to preserve any work in progress in your sandbox, you can refresh the sandbox from your base branch and discard work in progress.
You might want to discard work in progress because:
your changes are already captured in a pull request
you decided to take an alternative approach, so no longer need the changes
Open the settings menu and click Discard all changes and refresh this sandbox from master to refresh your sandbox from your base branch without checking for work in progress.
Click Perform a full refresh to deploy the updates your sandbox automatically.
Alternatively, click Deploy manually to open a comparison and choose the items in the update that you want to deploy. If an automatic update fails because your sandbox is missing some Salesforce features, this lets you skip the items causing errors.
All pending updates are included when you refresh the sandbox from your base branch. There's no way to deploy 'up to a point' for a specific update.
Clearing Developer Sandbox Updates
You can clear updates to skip deploying any items from those updates into your sandbox.
In the Updates tab on the developer sandbox, click on the cog, open the settings menu and click Clear selected updates.
You can select all updates to clear or up to a certain point. Below is selecting the earliest Update to Clear. If you need to Clear a specific Update (That isn't the earliest), you will need to update the sandbox to that point and then select it.
Who can "Clear updates" on Dev Sandboxes?
Team owners are able to Clear updates on a developer sandbox from the selection pictured below.
Who can clear updates in user-owned Pipelines?
In terms of user-owned Pipeline, it is an expected behavior that only the Pipeline owner can "Clear updates" for any Dev Sandbox within the Pipeline - all other users (including team owners) will see this option being greyed out.
Who can clear updates in team-shared Pipelines?
For a team-shared Pipeline, by default all team owners on the Gearset team have access to "Clear updates" on all Dev Sandboxes.
Can team members clear updates on their own Sandboxes?
This is possible to configure for both user-owned and team-shared Pipelines.
Access to clear updates can be granted to team members via Allow team members to clear updates option in your Pipeline settings. This allows team members to clear updates only for their own Sandbox(es).
Who can change the Allow team members to clear updates setting?
The pipeline owner, a team owner on a team-shared pipeline, and any team member with Admin access to the pipeline can turn this option on or off. Other team members can't change it, even with Edit access to the pipeline.
Resolving validation errors during Developer Sandbox Updates
If there is a validation error on your deployment, try selecting an earlier update to deploy 'up to a point'. Sometimes the order of your updates may be important, and an earlier update can required in your developer sandbox for a later update to deploy successfully.
You can also choose Select items to deploy option to manually select the items you want to deploy to your developer sandbox. This lets you skip metadata items that are causing validation errors, and deploy only the items that didn't error.
All deployments will be recorded in your Deployment history.
Can I amend the Problem Analyzer template used for the Developer Sandbox Update?
Sometimes you may need to amend a Problem Analyzer template to resolve a validation error when promoting a feature through your pipeline. That same error might happen when you try to update your developer sandbox.
The Problem Analyzer template used in your Developer Sandbox Updates is the same template that is configured in the CI job that is directly linked to your developer sandbox. Usually, this would be the first static environment (CI job) in your Gearset Pipeline.
You can update the Problem Analyzer template on this environment to change the template used in your Developer Sandbox Updates.




















