function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
AndegosuAndegosu 

Best/easiest way to copy all changes from sandbox to production

I need to copy everything from my sandbox to production org. Everything is working fine in Sandbox and I have proficient test coverage. When I use change sets to push from the sandbox to produciton I end up with one confusing error after another with no clear error message. There is also no easy way to auto add all changes, filter, searh and edit change set components.

Is there an easier/better way to deploy from sandbox to production?
Best Answer chosen by Andegosu
Deepali KulshresthaDeepali Kulshrestha
Hi Andegosu,

You can use the Ant Migration Tool to retrieve components, create the scripted deployment, and repeat deployment patterns.

I suggest you visit these below links, it will help you:

https://developer.salesforce.com/docs/atlas.en-us.daas.meta/daas/forcemigrationtool.htm

https://developer.salesforce.com/docs/atlas.en-us.daas.meta/daas/forcemigrationtool_install.htm

I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.

Thanks and Regards,
Deepali Kulshrestha.

All Answers

Sridhar Bojja 5Sridhar Bojja 5
You can use ant depolyment tool
Ajay K DubediAjay K Dubedi
Hi Andegosu,

- There is no better way than change set to deploy data from sandbox to production.
- First, in your Production org, go to "Deployment Settings" and edit your sandbox's deployment settings to allow inbound changes to Production. 
In your sandbox, go to "Outbound Change Sets," create a new one, and add all of your fields to it, 
then upload it to your Production org. Back in your Production org, your changeset will be available under "Inbound Change Sets" after it is processed. 
If you don't have any Apex code, you'll be able to deploy it without worrying about test coverage.

- Try to create a separate change set for the individual class and its test class, and if you have any dependent class then firstly deploy that class on which the first class is dependent.

I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.

Thanks,
Ajay Dubedi
Deepali KulshresthaDeepali Kulshrestha
Hi Andegosu,

You can use the Ant Migration Tool to retrieve components, create the scripted deployment, and repeat deployment patterns.

I suggest you visit these below links, it will help you:

https://developer.salesforce.com/docs/atlas.en-us.daas.meta/daas/forcemigrationtool.htm

https://developer.salesforce.com/docs/atlas.en-us.daas.meta/daas/forcemigrationtool_install.htm

I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.

Thanks and Regards,
Deepali Kulshrestha.
This was selected as the best answer