Deployment using change sets in Salesforce

In this post, we will learn about how to do deployment using the change set in Salesforce. We will deploy the component from one sandbox to production using change sets. Change sets contain customizations that have been uploaded from a connected organization.

What are Change sets in Salesforce?

A change set is a means by which one organization can send customizations to another organization. Change sets in Salesforce are groupings of components that can be deployed from one Salesforce org to another Salesforce org. This is out of a box deployment user interface tool provided by Salesforce. Change sets contain information about the org. They don’t contain data, such as records.

What is an outbound change set?

Outbound change set: An outbound change set is a change set created in the Source organization that you want to deploy to the target organization. Sending an outbound change set to the target org doesn’t mean that the changes will be deployed in that org. The change set must be accepted and deployed.

What is an inbound change set?

Inbound change set: An inbound change set is a change set that is sent from the source Salesforce org to the target Salesforce org. A change set must be deployed for the changes to take effect.

Change sets in Salesforce

How to do deployments by using change sets in Salesforce?

Let’s see how we can deploy changes from one org to another org using change sets.

1. Create an Outbound Change Set

First step first. Login in your sandbox and complete your development. Once you are ready then create one change set in source org with below step

  1. Click on Setup the find “Outbound Change Set”
  2. Then Click on New button
Create an Outbound Change Set
  1. Provide the Change set name
  2. Then add a component in the change set.
add a component in the change set
  1. Click on add button to add all components which you want to deploy from sandbox to production.

2. Authorize a Deployment Connection

Now our changes are ready in the Change set but before sending it to production or another sandbox we need to make a connection between to sandbox/production. Follow the below step to accept income changes in production.

  1. Login to target org and search for Deployments setting
Authorize a Deployment Connection
  1. Then selects the source sandbox name and click on the edit button
  2. Then click on allow inbound changes checkbox
  3. then click on the Save button.

This is only one-time activity to make Deployment Connections.

3. Upload the Change Set

Now it is time to upload the change set into target org. Go back to source org where you create the outbound change set and click on the upload button. Then it will show all sandbox or production org which allow inbound changes. Select target org and click on the upload button

4. Deploy Changes to the Target Environment

Now it is time to accept the changes in target org. Follow below step

  1. log in to Target org
  2. Then search the “Inbound Change set”
  1. Select change set
  2. Then click in validate button to validate the changes.
  3. After validation click on Deploy button
  1. After deployment it will show deployment status.

Best Practices for Deploying Change Sets in Salesforce

Follow below best practices for deployment using change sets in Salesforce.

  1. Deploy all dependent components
  2. Add permissions and access settings to outbound change sets
  3. Clone a change set to add dependent components to an uploaded change set
  4. Use distinct names for global publisher layouts and Outlook publisher layouts
  5. Plan deployments around maintenance schedule
  6. Validate change sets before deployment
  7. View component details
  8. Limit change sets to 10,000 files
  9. Plan for tests to run in the target org

Learn about other deployment tools and deployment process here.


I hope this post will help you to under What is a change set in Salesforce and how to do the deployment in Salesforce using the change set.

Amit Chaudhary
Amit Chaudhary

Amit Chaudhary is Salesforce Application & System Architect and working on Salesforce Platform since 2010. He is Salesforce MVP since 2017 and have 17 Salesforce Certificates.

He is a active blogger and founder of Apex Hours.

Articles: 465


Leave a Reply

Your email address will not be published. Required fields are marked *