Activity › Forums › Salesforce® Discussions › What is a Self-Relationship in Salesforce?
Tagged: Custom Relationship, Relationship Object, Salesforce Relationships, Self Relationship in Salesforce
-
What is a Self-Relationship in Salesforce?
Posted by Rahul on March 27, 2018 at 12:19 PMHi,
What is a Self-Relationship in Salesforce and where we can use it?
Parul replied 7 years, 8 months ago 5 Members · 4 Replies -
4 Replies
-
Hello Rahul,
A Self-Relationship is a lookup relationship to the same object.
For example : we have a field on Account which is Parent Account that allows us to choose any account for being a parent account of an existing one.
Thanks!
- [adinserter block='9']
-
Hi Rahul,
Self-relationship:
When an object has a lookup with itself, it is a self-relationship. A self relationship creates a tree diagram of the objects. For example, the account has a lookup on himself, called Parent Account.
On the user object a special self-relationship called the hierarchical relationship helps create superior roles such as supervisor, manager on user object. The hierarchical relationship is a self-relationship of the user object.Hope this helps you.
-
Hi,
Self relationship :
By the name mean relation with oneself, means creating lookup of sobject within same sobject.
Lot of business scenarios required this type of relationship.Hierarchical relationship :
This type of relationship is a special lookup relationship available only for the user object. It allows users to use a lookup field to associate one user with another that does not directly or indirectly refer to itself. For example, you can create a custom hierarchical relationship field to store each user’s direct manager.Hope this helps.
-
Self Relationships:
You can create a relationship from an object to itself, but it must be a lookup relationship, and a single record can’t be linked to itself. However, a record can indirectly relate to itself.Thanks,
Log In to reply.