HTTP Callout from Flow - Part 2 - Connecting 2 Salesforce orgs
This blog is a continuation of my last blog in which we had a look at how to call a public REST API from a screen flow. Many of you were interested to know about how will this work out if the REST API needs authentication. How can we handle the authentication in the flow. Another use case which came up was if we can connect 2 Salesforce Org using this approach. So today, lets have a look at how we can establish a connection between 2 Salesforce Orgs. For this example, lets call one org as the Data Producer and another org as the Data Consumer. Data Producer Org: As the name suggests, this org will be responsible for providing the data. This org will host a REST webservice. We will also create a connected app in this org using which any external system can access this webservice. In our case, the external system will be another Salesforce org which is the Data Consumer Org. In your case, it can be any other system as well. Step 1: Create a REST Webservice in the Data Producer Org @Re