Now that we have understood about custom objects fields and field types it's time for us to move on
to object of relationships in any CRM system.
It is a very common scenario that objects are related to one another.
So what do we mean by objects are related to one another.
Let's consider our data model.
Here we have six entities right.
At least let's consider these major entities courses students instructors departments extracurricular
activities.
These entities are definitely not independent entities right.
They are connected to each other.
For example for every class there will be multiple students enrolled.
Right.
So there is a connection between courses and students.
Similarly instructors for every course there will be an instructor and the same instructor will handle
more than one course.
Right.
So courses and instructors are related to one another.
Then again departments extracurricular activities.
Every student will have an extracurricular activity bag to give him what her and every student will
belong to the department right.
So these entities are basically related to one another and how they are related is what we are going
to understand more in Salesforce.
There are different types of relationships that are available.
First is the look of relationship the master detailed relationship Many to Many relationship safe relationship
hierarchical external look up and internal look up a relationship.
But before we deep dive into these relationships we need to understand one concept that is holding a
lot of the related what is a relationship type whether it is one too many or many too many.
So when they say one too many or many to many what is that.
It means how one object is related to another object.
So that is the difference.
Say for example in our scenario let's consider courses and departments one goals will be tacked to one
department right.
However one department office multiple courses right.
Let's say for example strategic management so strategic management does a course and lets Daggett to
maybe the MBA department.
All right so strategy management course has got MBA department.
Back to it.
However the MBA department office not only in the strategic management course but other the MBA classes.
Right.
So one course has got one department back to it.
However the same department has got multiple courses to offer.
So this is the one to many relationship.
One course record is associated to one department record.
However the same department record is associated to multiple goals for a class.
So this is the concept of one of the many relationship next nexus Many to Many relationship right one
too many is done now many too many in many to many relationship let's say courses and students in one
goals there have been multiple students enrolled.
All right.
Definitely.
There will be many students picking up one particular of course similarly one student will be in Jordan
multiple classes right.
It is.
It works on both sides.
One goes has got multiple students.
Similarly one student has got multiple courses associated with him or her.
So in this scenario that is called a Many to Many relationship.
This is the baseline we need to have this concept pretty clear for us to jump into the object relations
that we haven't since force.