Learn from industry experts! Admin batch starts from 19 Feb.
Hurry up!
Book your slot now!

6

SOQL Multi level Relationships

What Is Multi-Level Relationships In Salesforce?

In SOQL, you can traverse up to a maximum of five levels when querying data from child object to parent.

SELECT Name, Position__r.Contact.Account.Owner.FirstName
    FROM Job_Application__c;
    SELECT Name, (SELECT Name FROM Job_Applications__r)
    FROM Position__c

Five Levels:

Job Application → Position → Contact → Account → User

salesforce-developer
Next Topic

Need more support?

Get a head start with our FREE study notes!

Learn more and get all the answers you need at zero cost. Improve your skills using our detailed notes prepared by industry experts to help you excel.

Book A 15-Minutes Free Career Counselling Today!