SlideShare a Scribd company logo
2
Most read
3
Most read
4
Most read
RELATIONSHIPS
TYPES OF RELATIONSHIP
● Master-Detail
● Look up
● Many-Many
Master-Detail Relationship
●
Master Detail relationship is the Parent child relationship. In which Master
represents Parent and detail represents Child. Rollup summary fields can only be
created on Master records which will calculate the SUM, AVG, MIN of the Child
records.
●
Up to 2 allowed to object.
●
Parent field on child is required.
● Access to parent determines access to children.
● Deleting parent automatically deletes child.
●
A child of one master detail relationship cannot be the parent of another.
●
Lookup field on page layout is required.
SCHOOL
CLASSROOM
LOOKUP RELATIONSHIP
●
Up to 25 allowed for object
●
Parent is not a required field.
● No impact on a security and access.
● No impact on deletion.
● Can be multiple layers deep.
● Lookup field is not required.
Position
Job
app 1
Job
app 2
Job
app 3
Many to Many Relationship
Naukri.com
Monster.com
Job Posting on
Monster.com
For Jr.Software dev
Job Posting on
Monster.com
For Sr.Software dev
Job Posting on
Naukri.com
For Sr.Software dev
Position:
Jr.Software dev
Position:
Sr.Software dev
MANY ONE MANY
You can use master-detail relationships to model many-to-many relationships between
any two objects
.
A many-to-many relationship allows each record of one object to be linked to multiple
records from another object and vice versa.
To create a many-to-many relationship, simply create a custom junction object with two
master-detail relationship fields, each linking to the objects you want to relate.
Other Relationships
●
Junction objectsJunction objects are used to create many to many relationships between objects.
● The Recruiting application example, you can see that a Position can be linked to
many Candidates, and a Candidate can apply for different Positions. To create this
data model you need a third object "Job Application" that links the 2.
Self RelationshipSelf Relationship
An Object which uses LookUp relationship in the same object is called as Self
Relationship.
Relationships in Salesforce

More Related Content

PPTX
Salesforce admin training 1
PPTX
Salesforce sharing and visibility Part 1
PPTX
Profiles and permission sets in salesforce
PDF
Salesforce Lightning Process builder
PPTX
Approval Process in Salesforce
PDF
Apex Enterprise Patterns: Building Strong Foundations
PPTX
Apex code (Salesforce)
PPTX
Sharing and security in Salesforce
Salesforce admin training 1
Salesforce sharing and visibility Part 1
Profiles and permission sets in salesforce
Salesforce Lightning Process builder
Approval Process in Salesforce
Apex Enterprise Patterns: Building Strong Foundations
Apex code (Salesforce)
Sharing and security in Salesforce

What's hot (20)

PPTX
Salesforce data model
PPTX
Data model in salesforce
PDF
Introduction to the Salesforce Security Model
PPTX
Introduction to Apex for Developers
PPT
Salesforce Presentation
DOC
major project report Property Management
PDF
Salesforce crm projects
PDF
Google Firebase presentation - English
PDF
Ecommerce website proposal
PPTX
Introduction to APIs (Application Programming Interface)
PPTX
Salesforce Integration Pattern Overview
PPTX
Online Job Portal Presentation
PPTX
Introduction to Salesforce Platform - Basic
PPTX
Employee Management System
PPT
Salesforce Tutorial for Beginners: Basic Salesforce Introduction
PDF
Understanding Azure AD
PPT
Security and Your Salesforce Org
PDF
Lwc presentation
PPTX
Apex Trigger in Salesforce
Salesforce data model
Data model in salesforce
Introduction to the Salesforce Security Model
Introduction to Apex for Developers
Salesforce Presentation
major project report Property Management
Salesforce crm projects
Google Firebase presentation - English
Ecommerce website proposal
Introduction to APIs (Application Programming Interface)
Salesforce Integration Pattern Overview
Online Job Portal Presentation
Introduction to Salesforce Platform - Basic
Employee Management System
Salesforce Tutorial for Beginners: Basic Salesforce Introduction
Understanding Azure AD
Security and Your Salesforce Org
Lwc presentation
Apex Trigger in Salesforce
Ad

Similar to Relationships in Salesforce (20)

PPTX
Database Management System
PPTX
salesforce.pptx
PPTX
Create table relationships
PPTX
Create table relationships
DOCX
BIBLIOGRAPHY.docxdajlkahdcsddaasdadaddacx
DOCX
BIBLIOGRAPHY.docxcacsfwfwrFWFWFFWFSCSTRGFD
PPTX
Salesforce Training Institute & Courses Pune | SFDC Training PCMC
PPTX
RELATIONSHIP IN DBMS.pptx
DOCX
RELATIONSHIPS IN DXFGCHJKGFDATABASE.docx
PPTX
Introduction to database
PPT
Database
PPTX
SQL-queries-for-Data-Analysts-Updated.pptx
PDF
"Salesforce"
PPTX
Download different material from slide share
PPT
ENTITY RELATION SHIPS COMPLETE ANALYSIS UPDATED
PPTX
Data Models
PPTX
what is a database system-components.pptx
PPTX
Graphics designing.pptx
PPTX
RDBMS stands for Relational Database Management System
PPTX
salesforce.pptx
Database Management System
salesforce.pptx
Create table relationships
Create table relationships
BIBLIOGRAPHY.docxdajlkahdcsddaasdadaddacx
BIBLIOGRAPHY.docxcacsfwfwrFWFWFFWFSCSTRGFD
Salesforce Training Institute & Courses Pune | SFDC Training PCMC
RELATIONSHIP IN DBMS.pptx
RELATIONSHIPS IN DXFGCHJKGFDATABASE.docx
Introduction to database
Database
SQL-queries-for-Data-Analysts-Updated.pptx
"Salesforce"
Download different material from slide share
ENTITY RELATION SHIPS COMPLETE ANALYSIS UPDATED
Data Models
what is a database system-components.pptx
Graphics designing.pptx
RDBMS stands for Relational Database Management System
salesforce.pptx
Ad

More from MST Solutions LLC (8)

ODP
Workflow in Salesforce
ODP
Crm presentation
ODP
Overview of salesforce login tour
Workflow in Salesforce
Crm presentation
Overview of salesforce login tour

Recently uploaded (20)

PDF
August Patch Tuesday
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Empathic Computing: Creating Shared Understanding
PPTX
TLE Review Electricity (Electricity).pptx
PPTX
1. Introduction to Computer Programming.pptx
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PPTX
Spectroscopy.pptx food analysis technology
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
A comparative analysis of optical character recognition models for extracting...
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Heart disease approach using modified random forest and particle swarm optimi...
PDF
Approach and Philosophy of On baking technology
PDF
Mushroom cultivation and it's methods.pdf
August Patch Tuesday
Encapsulation_ Review paper, used for researhc scholars
MIND Revenue Release Quarter 2 2025 Press Release
Empathic Computing: Creating Shared Understanding
TLE Review Electricity (Electricity).pptx
1. Introduction to Computer Programming.pptx
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Diabetes mellitus diagnosis method based random forest with bat algorithm
Spectroscopy.pptx food analysis technology
Advanced methodologies resolving dimensionality complications for autism neur...
gpt5_lecture_notes_comprehensive_20250812015547.pdf
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
A comparative analysis of optical character recognition models for extracting...
Spectral efficient network and resource selection model in 5G networks
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Heart disease approach using modified random forest and particle swarm optimi...
Approach and Philosophy of On baking technology
Mushroom cultivation and it's methods.pdf

Relationships in Salesforce

  • 2. TYPES OF RELATIONSHIP ● Master-Detail ● Look up ● Many-Many
  • 3. Master-Detail Relationship ● Master Detail relationship is the Parent child relationship. In which Master represents Parent and detail represents Child. Rollup summary fields can only be created on Master records which will calculate the SUM, AVG, MIN of the Child records. ● Up to 2 allowed to object. ● Parent field on child is required. ● Access to parent determines access to children. ● Deleting parent automatically deletes child. ● A child of one master detail relationship cannot be the parent of another. ● Lookup field on page layout is required. SCHOOL CLASSROOM
  • 4. LOOKUP RELATIONSHIP ● Up to 25 allowed for object ● Parent is not a required field. ● No impact on a security and access. ● No impact on deletion. ● Can be multiple layers deep. ● Lookup field is not required. Position Job app 1 Job app 2 Job app 3
  • 5. Many to Many Relationship Naukri.com Monster.com Job Posting on Monster.com For Jr.Software dev Job Posting on Monster.com For Sr.Software dev Job Posting on Naukri.com For Sr.Software dev Position: Jr.Software dev Position: Sr.Software dev MANY ONE MANY
  • 6. You can use master-detail relationships to model many-to-many relationships between any two objects . A many-to-many relationship allows each record of one object to be linked to multiple records from another object and vice versa. To create a many-to-many relationship, simply create a custom junction object with two master-detail relationship fields, each linking to the objects you want to relate.
  • 7. Other Relationships ● Junction objectsJunction objects are used to create many to many relationships between objects. ● The Recruiting application example, you can see that a Position can be linked to many Candidates, and a Candidate can apply for different Positions. To create this data model you need a third object "Job Application" that links the 2. Self RelationshipSelf Relationship An Object which uses LookUp relationship in the same object is called as Self Relationship.