ABSYZ ABSYZ

  • Home

    Home

  • About us

    Who We Are

  • Our Expertise

    What we Do

  • Our Approach

    How We Do It

  • Products

    What We Made

  • Industries

    Who We Do It For

  • Clients

    Whom We Did It For.

  • Article & Blogs

    What Experts Think

  • Careers

    Join The Team

  • Get In Touch

    Let’s Get Started

ABSYZ

Salesforce to Salesforce Integration

Home / Article & Blogs / Salesforce / Integration / Salesforce to Salesforce Integration
By kanchanbaghel inIntegration

While working on my last project one client requirement was to share records from one org to another org.

This blog introduces Salesforce to Salesforce integration, shows how one can enable it, how to manage connections between different environments and how to share data using the connections.

Before using S2S, we need to perform a few pre requisites,

1.Enable it first in our salesforce org.

2.As well as on the org with which we are going to share data.

Enabling Salesforce to Salesforce

To enable,

navigate to Setup -> App setup -> Customize -> Salesforce to Salesforce -> Settings. Edit, select Enable, and then select Save.

SS-1

Setting up a Connection

Let’s assume that company 1, as well as company 2, have enabled Salesforce to Salesforce. Even though both orgs have S2S enabled, we have to establish a formal relationship between the orgs before sharing can take place. This is done by setting up a connection.

As a best practice, in company 1, create an account representing the company 2 that will receive the connection, and also create a contact with email address under that account. This contact will typically be used when sending the S2S connection invitation.

Click On the Connections tab, click New to create a new connection with another org.

Once the invitation is accepted, the connection to Company 2 is established. In connection details section we can see the connection status as active. No objects (standard or custom) are shared yet. Only data we choose to share will be shared. For sharing the data we need to publish the object.

Publishing Objects

A one-way share between two environments is achieved by having the source environment publish, and the target environment subscribe.

Once the connection is established, the next step is to publish. let’s publish objects from Company 1.

  • Do this by clicking on Publish in the Connection tab, and selecting the object that we wish to publish. We can publish standard objects and all custom objects. For now we’ve selected Account.
  • Now we need to choose the fields that we wish to publish. Select Edit on an object to choose the fields that we wish to publish to the other environment.

Subscribing to Published Objects

The receiving environment (Company 2 in our case) doesn’t automatically have access to the data published from the Company 1 environment. Rather, the org must first subscribe to the objects.

Login to Company 2 and subscribe to these two objects and map the fields. This is done by navigating to the Connections tab, selecting the Appirio connection, and hitting “Subscribe”. You’ll now be presented with a list of the published objects to which you can subscribe:

Auto-Accept checkbox

If this option is selected, then records from the publishing org will be automatically accepted – the process will be entirely automatic. If you don’t select the checkbox, then an administrator will first have to review incoming records before they are accepted. The checkbox is not always displayed. In particular, child objects are automatically accepted if parent objects are accepted, and the option is not available for junction objects either.

Field Mappings and considerations

Map fields by clicking on Edit next to each object.

Here’s a little more about this field mapping and how to resolve these.

  • You can map a Text Field to any other field of equal or greater size.
  • Lookup or reference fields can be mapped to text fields(of size 80 or greater).
  • Auto number fields can also be mapped to toext fields (of size 30 or greater).
  • Lookup IDs are not available for publishing. You can enable S2S for those fields by creating a formula field and then publishing the formula field. In advanced section of formula field.

Using the Shared Connection

Let’s have a look on how the s2s connection can be used.

One-way share

One way share among two org is achieved by having source org publish and target org suscribe. Here source org acts as a master and would overwrite shared records in target org whenever there is a change to the record in the source environment.

Any changes made to the shared record in target org are lost.

Two-way share

Two-way share between orgs is achieved by having both orgs publish and subscribe to each others objects. Now shared records between the two org synchronize whenever there is a change on either side.

In both cases, the Salesforce to Salesforce mapping determines which fields would flow from one org to the other.

Sharing of Records

Go to List view for the object and Select the records and click on “Forward to connection”. Select the connection and related objects if there are any, and save.

When records are forwarded, records will be automatically created in the target environment if auto-accept for the object is enabled. If it’s not enabled, the records sent will need to be explicitly accepted in the target environment as shown in screenshots below. In particular, in the target environment select the object (Account in this example) tab, click on the Go button in “Accounts from connections”:

Then click on “Accept” to accept the record in the target org.

Rc.PNG

 

When two organizations wants to share data they can use S2S which provides a mechanism to transfer records from source to destination instances but also allows us to edit the values of the records which were transferred. The changes made to the records in the source instance will be replicated in the records in the destination instance.

References

  • Online documentation for Salesforce to Salesforce
  • An Introduction to Salesforce to Salesforce 
Salesforce to Salesfroce Integration
97
Like this post
4 Posts
kanchanbaghel

Search Posts

Archives

Categories

Recent posts

BioAsia 2023 in Hyderabad: An Annual International Event

BioAsia 2023 in Hyderabad: An Annual International Event

The Role Of Marketing in Small & Medium Enterprises

The Role Of Marketing in Small & Medium Enterprises

Salesforce For Retail: How Salesforce CRM Can Help Retailers

Salesforce For Retail: How Salesforce CRM Can Help Retailers

What is ChatGPT & How Does It Work?

What is ChatGPT & How Does It Work?

What Is Graphic Design? (Executive Summary 2023)

What Is Graphic Design? (Executive Summary 2023)

  • Previous PostJava Web Application Deployment on Heroku
  • Next PostDynamic Reusable Lightning Table Component

Related Posts

PLATFORM EVENTS IN SALESFORCE
Integration Salesforce

PLATFORM EVENTS IN SALESFORCE

Integrate SharePoint with Salesforce using Microsoft Graph API
Apex Integration Salesforce

Integrate SharePoint with Salesforce using Microsoft Graph API

Create/Update Salesforce Picklist definitions using metadata API
Integration Metadata API Salesforce

Create/Update Salesforce Picklist definitions using metadata API

Increase your Productivity with the Apex Metadata API
Integration Metadata API

Increase your Productivity with the Apex Metadata API

1 Comment

  1. Vineeth
    Reply
    24 April 2018

    Very useful thanks for sharing it

    Reply

Leave a Reply (Cancel reply)

Your email address will not be published. Required fields are marked *

*
*

ABSYZ Logo

INDIA | USA | UAE

  • About us
  • Article & Blogs
  • Careers
  • Get In Touch
  • Our Expertise
  • Our Approach
  • Products
  • Industries
  • Clients
  • White Papers

Copyright ©2022 Absyz Inc. All Rights Reserved.

youngsoft
Copy
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “ACCEPT ALL”, you consent to the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent. Privacy Policy
Cookie SettingsREJECT ALLACCEPT ALL
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled

Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.

CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.

Functional

Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.

Performance

Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.

Analytics

Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.

Advertisement

Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.

Others

Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.

SAVE & ACCEPT