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
Ken_KoellnerKen_Koellner 

No self-relations?

Being that when I try to define a parent-child relationship the object itself isn't offered, that would imply the SFDC doesn't support self-relationships.  Correct?

 

Best Answer chosen by Admin (Salesforce Developers) 
Greg HGreg H

You can relate the object to itself using the lookup field relationship but not  a master-detail field relationship.

-greg

All Answers

Greg HGreg H

You can relate the object to itself using the lookup field relationship but not  a master-detail field relationship.

-greg

This was selected as the best answer
Ken_KoellnerKen_Koellner

Is there any performance benefit to doing so, i.e. using a lookup relationship?  My guess is there is none.

 

werewolfwerewolf
No, there's no performance benefit to doing that.  You should create such a relationship if you have a need to represent hierarchical data, like a Parent Account or Parent Case (both of which are already standard fields, I'm just using them as examples).
Andy.xuAndy.xu

Hi,when a lookup self relationship is created,but can't lookup any recoreds with filtration,why?if there is not filtration,this can lookup records.

Thanks!