Skip to main content
Nikhil Reddy preguntó en #Apex
Need help with SOQL query. When I search by contact I need to retrieve all the cases related to that contact and also all the other members that are related to each case.
2 respuestas
  1. 28 may 2020, 1:49 p.m.
    Hi Anutej,

    I have a jucntion object between case and contact to hold the relations between them. Now when i search by a contact name, I need to display all the cases that this contact is on and also i need to display all the other contacts which are on each of those cases returned.

    ( Note: One contact can have many cases and One case can have many contacts. Many-to-may relation between Case and contact.)