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
IT Admin 179IT Admin 179 

soql query - contact - related contact

Hi All,

I am trying to query through this topic:  trying to get  student names (contact ),  students' parent name (related contact), and the student's parent's mailing state (related contact).

I have difficulties find the relationship between contact, and related contact,  may I get some helps on this query?
When I click a contact,  There is a relationship field (see picture) , has relationship number , related contact, when I clicked on the related contact's name, for instance 'Paul',  'Paul''s contact information will show up, and I can see his mailing information.

Please help!

Thank you so much


TUser-added image

 
Rahul KumarRahul Kumar (Salesforce Developers) 
Hi,

To Retrieve the Related List Data May I request you to please refer the below link for reference. Hope it will be helpful.

Please mark it as best answer if the information is informative.so that question is removed from an unanswered question and appear as a proper solution.

Thanks
Rahul Kumar