본문 바로가기

개발자정보

세일즈포스(Salesforce) account contact relationship

반응형

 

Go to Setup Enter “Account Settings” and Check the checkbox beside “Allow users to relate a contact to multiple accounts”. 

Under Contact to multiple Account Settings we have following option:

When users try to delete an account that has direct contacts that are related to other accounts, choose the either one of the option below.

i) Block users from deleting the account.

ii) Allow users to delete the account, and automatically delete all direct contacts even if they are related to other accounts.

When users replace the primary account on a contact record, choose the below either one of the option

 

i) Save the relationship between the contact and the previous primary account as an indirect relationship.

 

ii) Delete the relationship between the contact and the previous primary account.

Now go to Object Manager -> Account -> Page Layout -> Select the page layout in which you want to make change ->Add Related Contacts to the related list -> Save

Go to any account record -> Go to related.

You will see Related Contacts in the related List

So, as you see in the related contact, all the direct contacts of the account will automatically display here

 

Now Click on Add Relationship Button.

On the next screen, select the Contact that you wish to associate with this Account and their Role, and then click on Save.

Account Contact Relationship Object

The Account Contact Relationship (AccountContactRelation) is a Standard object is like a junction object between Account and Contact. It enables the creation of many-to-many relationships between account and contact. Account Contact Relationship is having lookup to  Account and contact instead of master-detail relationships.

Account and Account Hierarchy

Next topic is Account Hierarchy. Go to an Account record and there you will see a field called parent account. What is that field?

Let’s consider Wal-Mart. It will have child account like Wal-Mart Supercenter, Wal-Mart discount store, Wal-Mart Neighborhood Market, Wal-Mart Express know all these subsidiaries will form the child account. So, the account hierarchy is used to defining the account structure.

Also note that getting access to the parent account will not grant access to the child’s account by default. For providing access, you need to use role hierarchy or security

settings but not account hierarchy.

Summary

  • The parent account hierarchy is not supported for person accounts
  • There is a limitation of displaying up to 500 accounts
  • If the user displaying the hierarchy doesn’t have access to the account data, the additional columns displayed to the right of the account name won’t be displayed
  • A Custom Report Type will be needed to report on hierarchies more than one level deep
  • One account can’t have multiple direct parents
반응형