- Salesforce Advanced Administrator Certification Guide
- Enrico Murru
- 375字
- 2021-06-24 12:24:20
Advanced aspects of object relationships
As experienced administrators, we already know the basics of the relationships between Salesforce objects: they are links between different objects that allow you to connect different records all together. The best and easiest way to get a view of all relations between objects is the Schema Builder, which can be found at Setup | Objects and Fields | Schema Builder.
When we have a lot of relations, having a whole picture of how the objects relate to each other can be a hard job, and this tool can help to untangle the problem. Be careful! Don't select all the objects in your org; otherwise, all we will see is a plate of spaghetti, as shown in the following screenshot:

On the left sidebar, let's select a few objects, such as Account, Contact, Case, and Opportunity. We will get the following view:

Each connector starts from the child object (the end with the small circle) and ends up on the parent object. We can then deduce the following:
- The Case object is related to itself (which means that it is related to another record of the same type), Contact, and Account.
- The Contact object is related to itself (if we have a look at all of the fields belonging to Contact, we'll find the ReportsTo field, which relates a contact with a parent contact) and to its parent Account.
- The Opportunity object has two relations with the Account object (one is the Account field and the other is PartnerAccount field).
- Finally, the Account object has a single relation with itself (the ParentAccount field).
If we add the User and Contract objects to this picture, the mess becomes excessive, and it isn't so easy to deduce every relation (try it yourself).
And all of this is all about standard relations on the Sales/Service Cloud data model. Imagine how much spaghetti you can add with custom relationships!
Salesforce provides different kinds of relationships between objects. These are as follows:
- Master–detail relationships
- Many-to-many relationships
- Lookup relationships
- Hierarchical relationships
- External relationships
We'll also be covering a special kind of field called a roll-up field, and considerations about formula fields regarding relationships.
- Ansible Configuration Management
- Microsoft Power BI Quick Start Guide
- Seven NoSQL Databases in a Week
- 數據中心建設與管理指南
- 電腦上網直通車
- 物聯網與云計算
- 可編程控制器技術應用(西門子S7系列)
- Maya極速引擎:材質篇
- 四向穿梭式自動化密集倉儲系統的設計與控制
- 單片機C語言程序設計完全自學手冊
- Learning ServiceNow
- Serverless Design Patterns and Best Practices
- 大型機系統應用基礎
- 單片機C51應用技術
- 基于Quartus Ⅱ的數字系統Verilog HDL設計實例詳解