/pushAccount

Code example that copies Account record from one org to the other via Salesforce Connect + Lightning Quick Action or Visualforce Page

Primary LanguageApex

Included are examples of code that allow you to insert a record into an external org using Salesforce Connect.

The Lightning Component called pushAccout can be configured as a Quick Action from the Account Detail Page.

The Classic Visualforce page, also called pushAccount, can be added to the page layout - or you can configure a button to open a window to prompt the user.

One could add duplicate checking and other error handling as needed - have a nice day.