Table of Contents
In Salesforce, we have a very unique way of deploying from sandbox to production. So that we can deploy the code without any errors in the production org. The deployment process is very easy as well.
Create and upload a change set in your source sandbox organization
Now let’s discuss creating and uploading the change set in the sandbox org stepwise:
Step 1: Firstly, log in to your Salesforce sandbox org.
Step 2: Now, in the quick find box search for Outbound change set and enter into it.
Step 3: Simply click “New” and give it the desired name and required description and then click “Save”.
Step 4: From the related list “Change Set Components” add profiles to which you want to give access for this change set.
Step 5: Now the important thing!! Select the “Component Type” and then select the specific component you want to add to the Change set.
Step 6: Another important thing is to select the target organization you want to send the change set from “Change Set Detail” related list. Just click upload and select the organization. That’s it from the sandbox side.
After successfully uploading the change set you will receive an e-mail confirming the upload.
Now, let’s look at the production side.
Complete the deployment in your target production organization
Step 1: Similarly, now log into your production org and search for “Change Set” in the quick find.
Step 2: Here, Click “Inbound Change Sets” and enter it.
Step 3: The change set you have uploaded earlier will be found under “Change Sets Awaiting Deployment” and click on it.
Step 4: Now, Click Validate to validate it.
Note: You can deploy it only if you have at least 75% code coverage.
Step 5: Finally, click deploy.
That’s it, you are done with the deployment.
Generally, there are few other ways to deploy your code into salesforce production org. but mostly developers use this “Sandbox to production” method.