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
Shifs SalheenShifs Salheen 

Insert records in another Salesforce org

Hi All,

I want to insert records when i click on Save button of VF page in another Salesforce organization using Apex. Please help me how to achieve this.Currently I have done locally but how to do ifor inserting records in another Salesforce org.
Akash_CRMAkash_CRM
Hi Shifs,

You can use Salesforce to Salesforce in avhieving this, below is the documentation on same. You can publish the record from the Source ORG to the Destination ORG based on the requirement.

https://developer.salesforce.com/page/An_Introduction_to_Salesforce_to_Salesforce

Regards,
Akash
Shifs SalheenShifs Salheen
Hi Akash_Jaiswal,
My requirement is when any insert,update,delete operations is done on one salesforce org,it should be reflected to another salesforce org.So can this be achieved using Salesforce to Salesforce as you mentioned above.
Akash_CRMAkash_CRM
Hi Shiffs,

Yes your requirement to Insert, Update and Delete records from Target ORG based on the relevant operations performed in the Source ORG can be achieved using Salesforce to Salesforce, You can reffer the below documentation for further details:

https://developer.salesforce.com/page/Best_Practices_for_Salesforce_to_Salesforce

Regards,
Akash.