What is a relationship in Salesforce? Can you tell me how many different relationships are there and what each of them does?

There are various sorts of relationships that may be built between items in Salesforce. Using objects to organize information is a key feature of Salesforce. To demonstrate your understanding of how data is organized, you will need to explain that you understand the many ways objects may be arranged into relationships.


Example answer:

In Salesforce, a relationship offers information on how two items are related as well as the functionality of these two objects. Salesforce relations are classified into numerous types:


The master-detail relationship is a closely linked relationship between Salesforce objects, which implies that if a master record is removed, any child records connected with it are also deleted. In this form of connection, the parent record controls the child record's visibility and sharing behavior. It signifies that a parent object's security settings apply to the child object.

Lookup relationships
are loosely connected relationships between Salesforce objects, which implies that even if the parent record is destroyed, the child records remain in the system. Both the parent and the youngster have their own sharing and security options.

Another type of search relationship is the self-relationship. Lookup connections in Salesforce may be used to construct self-relationships between items; a maximum of 40 self-lookups are allowed.


In addition to the regular lookup relationship, we may use an external lookup relationship to connect an external object to a parent external object whose data is stored in an external data source. To put it another way, it enables us to connect two external items. An indirect lookup relationship allows us to connect an external item to a standard or customized object. We can only make an indirect lookup to an object on the parent object that has a unique external ID field that is utilized to match the entries in this connection.

Many-to-many connection:
In Salesforce, the many-to-many relationship allows us to attach a child record to several parents. A campaign, for example, is tied to numerous leads, and one lead may have several campaigns.

Image by Nataliya via pexels.com
Image by Nataliya via pexels.com
Image by Karolina via pexels.com
Image by Karolina via pexels.com

Toplist Joint Stock Company
Address: 3rd floor, Viet Tower Building, No. 01 Thai Ha Street, Trung Liet Ward, Dong Da District, Hanoi City, Vietnam
Phone: +84369132468 - Tax code: 0108747679
Social network license number 370/GP-BTTTT issued by the Ministry of Information and Communications on September 9, 2019
Privacy Policy