You need to sign in to do that
Don't have an account?
Sreenivas V
how to query the relationship objects in soql?
SOQL to fetch the cases related to logged in users
Relationships: User - > service apartments -> work orders -> cases
SA (Parent) - work orders (child) - Cases (Parent to work orders)
Relationships: User - > service apartments -> work orders -> cases
SA (Parent) - work orders (child) - Cases (Parent to work orders)
May I suggest you please check with below links on how to query the relationship objects in Salesforce.
Please tweak it as per your objects so that it can help you out.
- https://webkul.com/blog/relationship-query-salesforce/
- http://www.sfdcpoint.com/salesforce/relationship-query-apex-salesforce/
Hope this helps.Kindly mark this as solved if the reply was helpful.
Thanks,
Nagendra
Correct me if I am worng the loggedin user's record mean owner of the reord right..if yes please try to execuite the below query in developer console.
--
Thanks,
Prashant