function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ckevin1984Ckevin1984 

Question about Look-up relationship and Master-detail relationship

Can i do the rollup summary in the other object in a Look-up relationship just like doing the rollup summary in the parent object in the Master-detail relationship. And if it is possible, can you tell me the differences between the two object types. Waiting for your helps. 
jhenningjhenning

No, you cannot have a rollup summary field that uses a Lookup relationship. it must be on the parent of the master/detail relationship.

 

Lookup Relationships:

Loosely coupled
Child field value may be optional
No cascade delete
Independent ownership & sharing
Maximum 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
Can be multiple levels deep
If master is a standard object: 2 additional subdetails
If master is a custom object:  3 additional subdetails
 

Pradeep_NavatarPradeep_Navatar

Roll up Summary is only available with the Master-detail relationship. Rolling up of Summary on lookup relationship can
be achieved through the trigger on insert, delete events.

 

Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved.

rajjjjrajjjj

HI John,

 

In master-detail----->

Its master field value which is always required on Child.

And cascade delete is on master...If you delete master then childs also can be deleted.

 

---->Can be multiple levels deep
If master is a standard object: 2 additional subdetails
If master is a custom object:  3 additional subdetails 

 

for these statements u mean if childobj1 has master as masterobj1...then masterobj1 may also have 2 more which means

total 3 details....But a master can have multiple details ri8???

 

Can u explain what it was exactly????