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
harsha vardhan vasa 9harsha vardhan vasa 9 

Hi Team, soql query from child to parent

Hi Team,
i have object A(ei_site__C) which have look up relationship to premise__C object B. 
i need a soql query to retrieve object b related object a records which ahs record type value has "residential".


 
VinayVinay (Salesforce Developers) 
You can try below query.
 
Select Id, Name, CustomObject1__r.residential from CustomObject2__c

https://medium.com/code-85/how-to-query-parent-and-child-relationships-in-soql-13445ace3c7f

Please mark as Best Answer if above information was helpful.

Thanks,