Академический Документы
Профессиональный Документы
Культура Документы
Application Essentials:
Building your Data Model
Instructor: Parikshith
Field Types
Standard Fields associated with a Custom Object
Date Auto Number
ID
Created By
Last Modified By
Created Date
Data Model
Custom Objects
Custom Fields
Custom Relationships
Object Relationships
Two Main Types
Lookup
Master-detail
Lookup Relationships
Loosely Coupled
Child field value may be optional
No cascade delete
Independent ownership & sharing
Max 25 lookup relationships per child
Master-Detail Relationships
Tightly Coupled
Child field value is always required
Cascade delete
Inherited ownership & sharing
Maximum 2 master relationships per
detail object
Master-Detail Relationships
No impact on deletion
Note: Both relationship types look almost the same on a page layout: both
include a lookup field for the one side and related list for the many side.
Report Type
Category
Lookup
Master-Detail
Master Object
Many to Many
Self Relationships
A self relationship is a lookup relationship to the same object
Example: It is possible to create a lookup relationship
from position to position
The user object has a special type of lookup relationship the
hierarchy relationship. For example, a hierarchy relationship
allows developers to create a manager field on the UserObject to relate another user
Junction Objects
When modeling a many-to-many relationship, you use a
junction object to connect the two objects you want to relate
to each other
A junction object is a custom object with two master detail
relationships
When creating a junction object, consider the following:
Name the object with a label that indicates its purpose.
Use the auto-number data type.
Module Review
Examples of Custom field types
True or False. If an a field is set to universally required,
users will be required to populate it when loading data
through the API.
List the four types of custom relationships that can be built
on Force.com platform and describe the differences
between them