How to send information from one Salesforce Org A to another Org B using Salesforce Integration?
Author
November 30, 2024
In today’s business world, sharing data between different parts of your organization is important. This blog will give you a straightforward, step-by-step guide on how to send information from one Salesforce org (let’s call it Org A) to another (Org B) using Salesforce Integration. In Org B, we will create a Connected App using the API. In Org A, we’ll set up an Authentication Provider and a Named Credential. Whether you’re an experienced Salesforce admin or new to the platform, this guide will help you learn how to move data between your orgs without any hassle. Let’s get started! In today’s business world, sharing data between different parts of your organization is important. This blog will give you a straightforward, step-by-step guide on how to send information from one Salesforce org (let’s call it Org A) to another (Org B) using Salesforce Integration. In Org B, we will create a Connected App using the API. In Org A, we’ll set up an Authentication Provider and a Named Credential. Whether you’re an experienced Salesforce admin or new to the platform, this guide will help you learn how to move data between your orgs without any hassle. Let’s get started!
Prerequisites:
1. Create/Have two Salesforce accounts (Org A and Org B)
- Go to the Salesforce website by visiting https://login.salesforce.com/?locale=in.
- Click on the “Try for Free” option.
- Select the type of Salesforce account you want and fill in your personal and company information.
- Create a username and password, add your phone number, and agree to the terms and conditions.
- Finish setting up your account, which includes configuring security settings and providing your organization’s details.
2. Basic understanding of Salesforce
Salesforce documentation: Here are the steps for How to send information from one Salesforce Org A (Source Org) to another Org B (Target Org) using Salesforce Integration.
Step 1: Create Objects and Fields.
- Follow the same steps in Org A and Org B.
- Go to Setup – Object Manager – Create Object
- Object – Candidate
- Create Field – Go to Field & Relationship of the Candidate Object.
Step 2: Remote Site Setting (Org A)
Remote Site Setting is a configuration that allows your organization to access external websites or services securely.
- Go to Setup – Quick Find Box – Remote Site Settings
- Click on New Remote Site
- Remote Site URL – Give the URL of your Org B.
Step 3: Create a Connected App (Org B)
A Connected App in Salesforce is a secure way to integrate external applications and services with your Salesforce org, allowing for seamless data sharing and interaction while maintaining security and control.
- Go to setup – Quick Find Box – App Manger – New Connected App.
- Give Connected App Name, Contact Email, and Contact Phone.
- Click on Enable OAuth Settings.
- Callback URL – Paste the callout of auth. Provider (Org A) as of now, LocalHost: 3000.
- Click on Manager Consumer Details after creating a connected App.
- Copy the Consumer key and Consumer Secret key.
Step 4: Create Auth. Provider (Org A)
An Auth. Provider in Salesforce is a feature that allows you to configure and manage external identity providers, enabling users to log in to Salesforce using their credentials from those providers.
- Go to Setup – Quick Find Box – Auth. Provider – New – Choose Provider – Salesforce.
- Give Auth. Provider Name, Paste Consumer Key, and Consumer Secret key of the connected app.
- Copy the Callback URL after creating auth. Provider.
- Paste the callback URL in the connected app (Org B).
Step 5: Create Named Credential (Org A)
In Salesforce, a Named Credential is a secure way to store and manage authentication information for external services or APIs, allowing for easy integration without exposing sensitive credentials in your code.
- Go to Setup – Quick Find Box – Named Credentials – New Legal
- Give Label, Name, and URL (Org‘s B URL).
- Identity Type – Named Principal, Authentication Protocol – OAuth 2.0, and choose Auth. Provider that you have created previously.
Step 6: LWC Component
Created LWC Component for submit date from the candidate – candidateRecord.
HTML: candidateRecord.Html
Use 3 Lightning-input and 1 Lightning-combobox.
- JS: candidateRecord.j
Validation
Added two validation rules that are
- When Email already exists – A candidate with this email address already exists.
- Submit the record without entering the required values – Please Enter the required values.
Step 7: Apex Controller Step
Callout
- Send the API request and create the record Org B also.
- //request.setEndpoint(‘callout: NamedCredential of Org A/services/data/v52.0/sObject/Object API of Org B’);
Step 9: Show the Record in Org A and Org B.
ORG A:
- Create Candidate Record using LWC Component.
- After submitting.
- Saved the record on the Candidate Record Page of Org A.
ORG B:
- Created record in Org B.
Conclusion
You’ve learned how to transfer data between Salesforce Org A and Org B using Salesforce Integration. With a Connected App in Org B and Authentication Provider and Named Credential in Org A, data moves seamlessly. Whether you’re new or experienced with Salesforce, this guide equips you for efficient data integration. Start sharing data easily between your orgs to boost your business operations.
Pranshu Goyal, Director of Products at Mirekta, states: “We envision DSM to be used by every small to a medium-sized organization dealing with bad data and want to get rid of duplicates easily with no cost. We have faced issues dealing with duplicates in our organization. That inspired us to make a solution that is not only simple to use but can be used widely to make the organization’s data clean to make them more efficient and productive. We want DSM to be a solution for every organization looking for duplicate management capability better than the Salesforce out-of-the-box solution with no additional cost.”
Recent Posts
-
XML Parsing: Using MINIDOM Vs Element Tree (etree) in Python02 Jul 2025 Blog
-
A step by step Guide to create Salesforce web-to-lead form30 Jun 2025 Blog
-
How AI is Transforming User Experience Design in 202526 Jun 2025 Blog
-
How a Salesforce NPSP Consultant Can Elevate Nonprofit Impact25 Jun 2025 Blog
-
Salesforce Load and Performance Testing: Essentials, Importance & Execution23 Jun 2025 Blog
-
Salesforce Website Integration Boost Leads, Automation & Customer Experience11 Jun 2025 Blog
-
Driving Results in Manufacturing with Salesforce Manufacturing Cloud11 Jun 2025 Blog
-
Accelerating Growth with NetSuite SuiteCommerce02 Jun 2025 Blog
-
Salesforce Service Cloud Services streamlining operations29 May 2025 Blog
-
AI for Nonprofits: Mirketa & Exec Precision Webinar27 May 2025 Press Release
-
AI for Nonprofits: Use Cases, Tools & Implementation Strategies20 May 2025 Webinar
-
Javascript Frameworks for Salesforce Lightning Design System18 May 2025 Blog
-
Building a Smart Campus with Salesforce Student Information System: A Road to Smarter Education16 May 2025 Blog
-
Salesforce Nonprofit Cloud: Benefits & Consultant Role15 May 2025 Blog
-
Salesforce Consulting for Nonprofits: Maximize Impact09 May 2025 Blog
-
What to Expect from a Salesforce Admin Service Provider09 May 2025 Blog
-
Maximizing Efficiency with Salesforce Cloud Integration Services09 May 2025 Blog
-
Step-by-Step Guide to Salesforce NPSP Implementation09 May 2025 Blog
-
A Guide on How to Use Salesforce Agentforce for Manufacturing02 May 2025 E-Book
-
Choosing the Right Salesforce Integration Partner: A Complete Guide22 Apr 2025 Blog
Categories
Featured by



