2

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

2

The object you are looking for is the AccountContactRelation.

As an example of how to query these relationships:

SELECT AccountId, ContactId FROM AccountContactRelation
| improve this answer | |
-1

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
| improve this answer | |

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.