Skip to main content
Nikhil Reddy 님이 #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개
  1. 2020년 5월 28일 오후 1:49
    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.)