From Summer 16 release, I can associate a single contact to multiple accounts. However,I am finding it hard to query(SOQL) and get all the related accounts for the contact. Has anyone done this ?

Thanks for the help! Regards Venkat


The object you are looking for is the AccountContactRelation.

As an example of how to query these relationships:

SELECT AccountId, ContactId FROM AccountContactRelation

Just found out, Once you have enabled multi Account in the application, a new junction object called AccountContactRelation is created, we can easily query like below

SELECT AccountId,ContactId FROM AccountContactRelation

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.