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
- Salesforce Higher Education: Transforming Modern Universities15 Apr 2025 Blog
- AI Agents The Future of Business Applications09 Apr 2025 Blog
- Why Purpose-Built AI Agents Are the Future of AI at Work07 Apr 2025 Blog
- How the Atlas Reasoning Engine Powers Agentforce03 Apr 2025 Blog
- Leveraging AI for Code Analysis, Real-Time Interaction, and AI-driven Documentation02 Apr 2025 Use-case
- Transforming Healthcare with AI-Powered Patient Health Monitoring with Fitbit & Salesforce01 Apr 2025 Use-case
- 5 Myths About Autonomous Agents in Salesforce28 Mar 2025 Blog
- AI for Nonprofits: Boosting Fundraising with Salesforce Einstein, Agentforce, and Smarter InsightsShape25 Mar 2025 Use-case
- AI-Powered Vaccination Scheduling with Einstein Copilot & Predictive AI21 Mar 2025 Use-case
- Leveraging AI to Enhance Sales Effectiveness13 Mar 2025 Use-case
- Revolutionizing Manufacturing with AI: Predictive Maintenance, Supply Chain Optimization, and More11 Mar 2025 E-Book
- NetSuite for Manufacturing: Streamlining Operations and Solving Key Challenges07 Mar 2025 Blog
- How to Build Your First Agent in Salesforce Agentforce24 Feb 2025 Blog
- ERP vs Salesforce Revenue Cloud: Which One is Right for Your Business?24 Feb 2025 E-Book
- Revolutionizing Manufacturing with Salesforce: A Playbook for Efficiency & Growth18 Feb 2025 E-Book
- Salesforce 2025 Game-Changing Trends You Need to Know28 Jan 2025 Blog
- Agentforce 2.0: Everything You Need to Know About the Latest Update22 Jan 2025 Blog
- The Ultimate Guide to NetSuite Development: Tools and Techniques10 Jan 2025 Blog
- How Salesforce Nonprofit Cloud Transforms Fundraising Strategies10 Jan 2025 Blog
- The Impact of Salesforce Development Partners on Small and Medium Businesses08 Jan 2025 Blog
Categories
Featured by



