All Salesforce Interview Questions and Answers

Pages

  • Home
  • LWC
  • Apex
  • Certifications
  • SFDC GUI
  • CPQ
  • FLOWS
  • MuleSoft
  • Data Loader

Saturday, December 17, 2022

Account Contact Relationship in Salesforce

Today, we are going to understand about Account Contact relationship in Salesforce

Generally, how is the account and a contact related to each other?

Multiple contact is associated to one account. This means that if I am doing business with a company then there can be multiple point of contact associated to that company. This is a direct relationship between account and contacts.

Direct relationship:- The relationship between account and its associated contacts is a direct relationship.

One Contact associated to multiple Accounts

Let’s understand the concept with help of example. There is an independent consultant, Andy and he is point of contact for multiple businesses. In that case, one contact is associated to associated to multiple accounts.

Indirect relationship:– Multiple accounts associated with the contact represent indirect relationships.

I hope now account contact relationship is clear to you.

Enable Contact to multiple Accounts

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


at December 17, 2022
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)
  • Salesforce Certifications
    Salesforce Certified Administrator Salesforce Certified Advanced Administrator Salesfo...
  • What are the Different Types of Flows?
    As a Salesforce Admin, Salesforce flows are one of the most effective ...
  • Interview Questions and Answers on Test Classes
    1. What is the purpose of writing the test class? After developing an  apex class  or  apex trigger  we should write the unit tests a...
  • All Salesforce Interview Questions and Answers
  • Salesforce Certifications
  • Salesforce Scenario based Interview Questions
  • Interview Questions and Answers on Test Classes
  • Data Loader & Data Processing
  • APEX in Salesforce
  • Lightning Web Components
  • SFDC GUI
  • Salesforce CPQ
  • Einstein/Tableau CRM
  • OmniStudio
  • Salesforce Lightning Web Components Interview Questions
  • Salesforce Pardot
  • Salesforce Service Cloud
  • Salesforce Commerce Cloud
  • MuleSoft interview questions along with their answers
  • MuleSoft

Total Pageviews

Blog Archive

  • ►  2024 (10)
    • ►  December 2024 (6)
    • ►  November 2024 (4)
  • ►  2023 (139)
    • ►  November 2023 (1)
    • ►  September 2023 (3)
    • ►  August 2023 (1)
    • ►  July 2023 (2)
    • ►  June 2023 (9)
    • ►  May 2023 (1)
    • ►  April 2023 (21)
    • ►  March 2023 (2)
    • ►  February 2023 (25)
    • ►  January 2023 (74)
  • ▼  2022 (238)
    • ▼  December 2022 (238)
      • Performance Testing Tutorial – Types (Example)
      • White Box Testing – What is, Techniques, Example &...
      • Database (Data) Testing Tutorial with Sample Test ...
      • Defect/Bug Life Cycle in Software Testing
      • Bugzilla Tutorial – Defect Tracking Tool
      • STLC (Software Testing Life Cycle)
      • V-Model in Software Testing
      • What is Software Testing?
      • Tableau Data Connections to Databases and Multiple...
      • How to Download & Install Tableau Public (Free) & ...
      • Tableau Architecture & Server Components
      • What is Tableau?
      • BEST Cross Browser Testing Tools
      • Non Destructive Software Testing (NDT)
      • Design Verification & Validation Process
      • Salesforce Testing Tutorial
      • Salesforce Pardot
      • Salesforce Commerce Cloud
      • Salesforce Service Cloud Tutorial
      • Einstein Analytics
      • Salesforce Einstein Analytics
      • Server Side Controller | Salesforce Lightning
      • Wrapper Class In Salesforce Lightning Component
      • Salesforce Field Service Implementation
      • Salesforce Integration Interview Questions And Ans...
      • Salesforce Integration
      • How to Use Map in Lightning Component
      • Salesforce rest api integration to fetch a record ...
      • Decorators in Lightning Web Components
      • Lifecycle hooks in LWC
      • Salesforce Lightning Web Components Interview Ques...
      • Integration Procedure Basics Omnistudio
      • Salesforce Industries vs. Custom Salesforce Develo...
      • OmniStudio in Salesforce
      • WSDL
      • Jira Align
      • Difference Between JSON and XML
      • Differences between API and Web Services
      • Difference Between SOAP and REST API
      • Restful Web Services in Salesforce
      • SOAP In Salesforce
      • Web Service In Salesforce
      • Sandbox Limitations
      • Creating Sandbox in Salesforce
      • Sandboxes in Salesforce
      • Metadata Migrations in Salesforce
      • Salesforce Deployment
      • Change set in Salesforce
      • Apex - Deployment
      • Apex - Overview
      • Salesforce deployment
      • Workbench in Salesforce
      • Big Object in Salesforce
      • Large Data Volumes (LDV) in Salesforce
      • SOQL Best Practices
      • Apex Code Best Practices
      • Trigger Framework in Salesforce
      • Governor Limits in Salesforce
      • Salesforce Governor Limits? Best Practices & Examples
      • Triggers
      • Dynamic Apex in Salesforce
      • Batchable Apex and Schedulable Apex
      • Validation Rules in Salesforce
      • Relationships In Salesforce
      • Record level security in salesforce
      • Permission Sets In salesforce
      • Divisions in sfdc
      • Apex Data Loader * Data Loader is a cli...
      • Flow Collection Filter Element
      • Deactivating Users that are Running Dashboard User
      • Execute Custom Search when Opening Page
      • Automatic Dashboard Refresh in Salesforce
      • Creating Attachments in Apex Code
      • Retrieve Related Object Fields in Salesforce
      • Bypass Validation Rules from Apex
      • RefreshApex and Lightning Web Components
      • Certified Salesforce Platform Developer
      • Certified Salesforce Technical Architect
      • Certified Force.com Advanced Developer
      • Salesforce Certified Sales Cloud Consultant
      • Certified Service Cloud Consultant
      • Certified Pardot Consultant
      • Profiles, Permission sets & Roles
      • Tableau CRM (CRM Analytics)
      • Trigger basic concepts in Salesforce
      • Differences Between Data Import Wizard & Data Loader
      • Security Salesforce administrator interview Questions
      • salesforce administrator interview questions – Rel...
      • Top 100 Salesforce Interview Questions and Answers
      • What is event monitoring Analytics app?
      • Salesforce Developer Interview Questions & Answers
      • LWC Client-Side Caching of Apex Method Results
      • LWC Call Apex Methods Imperatively
      • LWC Wire Apex Methods to Lightning Web Components
      • LWC Use the Wire Service with Base Components
      • LWC Handle Errors in Lightning Data Service
      • LWC Display Data in a Table with Inline Editing
      • LWC Build Custom UI to Create and Edit Records
      • LWC Create a Record
      • LWC Edit a Record

Useful SFDC Links

  • InterviewPrep
  • Bobbuzzard
  • Salesforce Interview Questions

Pages

  • Home
Watermark theme. Powered by Blogger.