[SalesForce] Salesforce Case integration via REST API call

I have two sales-force org (org 1 and org 2).I am insert a new account in my org 1 now i want that every time a org 1 account created then org 2 will automatically update its account with org 1 data using rest API .

Best Answer

You can make your own rest api callouts from the account create trigger in org1 to the salesforce standard api of org2. or alternatively you can set up 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 Feature will allow you to sync records between the 2 orgs without the need to write additional callouts in apex.

Writing a custom rest api is something I would only do in a scenario where I have additional logic that needs to be executed or when additional abstraction is preferred in the API.

Related Topic