Friday, 23 June 2017

Enabling association of multiple accounts to a particular contact

Hi All,

As part of summer 16 release SFDC lunched a cool feature,Allow users to relate a contact to multiple accounts .

Now contacts are not necessarily to be linked to one Account, it can be multiple account based on different different role.

Demo - http://salesforce.vidyard.com/watch/fxqHZf2pER29kXRYvkwio3

Link to refer more info  - https://help.salesforce.com/articleView?id=shared_contacts_set_up.htm&language=en_US&type=0



How can we show in visualforce page ?  

<apex:page standardController="Account">
  <apex:detail relatedList="false"/>
  <apex:relatedList list="AccountContactRelations"/>
</apex:page>  
on the Account page one new related list (Related Contacts) will get introduced.



<apex:page standardController="Contact">
  <apex:detail relatedList="false"/>
  <apex:relatedList list="AccountContactRelations"/>
</apex:page>

on the Contact Page one new releated list (Related Accounts) will get introduced. 





No comments: