1. Sandbox Change Sets
1.1 Definition of Sandbox Change Sets
Change sets are packaged collections of metadata. The role of change sets is to send metadata from one environment to other related environments for deployment.
What is metadata?
- Metadata refers to configuration items in the management menu of the enterprise, such as objects, fields, layouts, permissions, processes, custom functions, etc.
- Metadata does not include business data.
1.2 Usage Scenes of Sandbox Change Sets
In the case of secondary implementation, in order not to affect the normal use of the production environment, we can create a sandbox environment and implement on this sandbox environment.
After the new content is configured in the sandbox and the test passes, the newly configured content in the sandbox needs to be migrated to the production environment.
At this point we can create a change set in the sandbox, add the metadata components that we want to synchronize to production to the change set, then send the change set from the sandbox to the production environment, and finally verify and deploy the change set in the production environment , to complete the process of migrating metadata from the sandbox to the production environment.
1.3 Sandbox Change Sets Types
-
Outbound Change Sets: An outbound change set is a collection of metadata sent from this environment to an external associated environment.
-
Inbound Change Sets: An inbound change set is a collection of metadata that has been sent from an externally associated environment to this environment. After an enterprise receives an inbound change set, it can perform a checkout and deploy operation.
1.4 Notes on Using Sandbox Change Sets
- The operation of deploying a change set will result in new or updated metadata in the environment, and the primary key for judging the new or updated metadata is usually the apiName of the metadata.
- The operation of deleting metadata cannot be completed through the change set, and the change set can only create or update metadata.
- Once the change set is successfully deployed, it cannot be rolled back with one click. If you need to delete the metadata of the change set deployment, you need to go to the background management interface to manually delete the deployed metadata one by one.