I have an object, lets say Team, which is used to indicate which team a user belongs to. My requirement is that I have to find all the users that belong the team that the logged in user belongs to and then retrieve records from another unrelated custom object whose owner are members of the same team.
I tried using sub-query but it I cannot find how to relate conditions from different models.
Question
How can we list out records based on soql query of to unrelated Sobjects?
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
