With Contacts related to multiple Accounts I tried to modify my view of Account. Till now we were using this visualforce page.
<apex:page standardController="Account" extensions="AccountViewController">
<apex:pageMessages id="messages"></apex:pageMessages>
<apex:detail relatedList="false" showChatter="false" inlineEdit="true"/>
<apex:relatedList list="Contacts"/>
<div><c:CustomRelatedListsComponent /></div>
<apex:relatedList list="AccountCampaignMembers__r"/>
<apex:relatedList list="OpenActivities"/>
<apex:relatedList list="ActivityHistories"/>
<apex:relatedList list="SavingAnalyses__r"/>
<apex:relatedList list="Opportunities"/>
<apex:relatedList list="Peers__r" rendered="{!isLeadAccount}"/>
<div><c:CustomAccountHistory /></div>
<div><c:CustomDuplicatesAccount /></div>
</apex:page>
I would like to substitute Contacts for the related contacts. But I tried multiple combination of names and still doesn't work. Of course I searched thorugh Salesforce help but couldn't finde nothing. Does someone know first if this is possible and if it is the name of the related list?
AccountContactRelationships
AccountContactsRelationships
ContactsRelated
RelatedContacts
And some other more than even made less sense are the ones I tried.
contacts
? because for a particular account record related list name would becontacts
i guess.Child Relationship Name
listed there