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

Joined query for 2 unrelated objects

I have 2 objects which are completely unrelated to each other. Howerver, they both are related to the Contact object. How do I find the records from Contact which are common to both the objects.
Danish HodaDanish Hoda
hi Sambit,
Use 2  Map<String, List<records>>
the key will contain ContactIds and List<records> will contain the records of objects