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
deepshikha shriwas 4deepshikha shriwas 4 

deploy records using a custom list button in salesforce itself

Hi ,

I have a functionality to develop a custom list view button by which i need to select the records and deploy them to another org.
Is there a possibility to do this for multiple records deployed in to other org.Kindly help please.

Thanks a lot in advance!!
E Jayaraman IyerE Jayaraman Iyer
Hi,

You can setup a Salesforce Connection between the two orgs you want the data to be Synced.

Also create a Visualforce Page, and add it to the List view button,

In the Visualforce controller, you can write the code using the PartnerNetworkRecordConnection and Insert it into other org.
Deepali KulshresthaDeepali Kulshrestha
Hi Deepshikha, 

There are several ways of doing it. 
1) Using ANT Migration Tool. 
2) Using Eclipse.

and you could use the Salesforce to Salesforce.
Salesforce to Salesforce is a Force.com feature that lets you configure two Force.com environments (orgs) so that they share data records in real time. This article describes several best practices to solve some of the complex salesforce to salesforce scenarios.

Please visit the below web link for details:

http://wiki.developerforce.com/page/Best_Practices_for_Salesforce_to_Salesforce

Here is the guide which for it, From installation of eclipse till deployment to another org. 
https://developer.salesforce.com/docs/atlas.en-us.eclipse.meta/eclipse/ide_getting_started.htm 

 Or You can use Change Set and ANT Migration Tool to migrate Metadata from one organization to another.
Deploying Components to Production​
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_qs_deploy.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