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
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.js
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
8: 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 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
-
Key Questions to Ask When Hiring a NetSuite Development Partner08 Jan 2025 Blog
-
Salesforce Agentforce Demystified: Your Essential Guide08 Jan 2025 Blog
-
Salesforce and NetSuite Integration: Driving Business Efficiency with Precision06 Jan 2025 Blog
-
Everest Group has positioned Mirketa as an Aspirant in the report24 Dec 2024 Press Release
-
Salesforce Einstein20 Dec 2024 E-Book
-
Order to Cash Cycle with NetSuite20 Dec 2024 E-Book
-
Empower Your Marketing Strategy with Salesforce Marketing Cloud's Automation Studio Activities13 Dec 2024 Blog
-
Salesforce CPQ for Subscription-based Businesses10 Dec 2024 Blog
-
Unleashing the Magic of Einstein Prediction Builder10 Dec 2024 Blog
-
Customized Templates and Branding with Salesforce Experience Cloud10 Dec 2024 Blog
-
Unleashing the Power of Real- Time Reports and Dashboards in NPSP10 Dec 2024 Blog
-
Top 4 Salesforce Automation Tools in 202409 Dec 2024 Blog
-
Salesforce Service Cloud Implementation: The Ultimate Guide09 Dec 2024 Blog
-
Salesforce CRM Implementation Partner Enhancing Automation in Healthcare09 Dec 2024 Blog
-
Shorten Your Sales Cycle in 8 Steps: Salesforce CPQ Implementation Guide09 Dec 2024 Blog
Categories
Featured by



