You need to sign in to do that
Don't have an account?

Joined query for 2 unrelated objects
Hi,
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.
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.
Use 2 Map<String, List<records>>
the key will contain ContactIds and List<records> will contain the records of objects