You are on page 1of 11

Data Model in Salesforce

Presented by:
-

Deviyani Bajpai

Srikant Joshi

Object In Salesforce

Object
Equal to Database Table

Standar
d

Custom
Defined by
Developer

Predefined/CRM Related

Fields
Equal to Database Table
column

Standar
d

Automatically Created

Footer

Custom
Defined by
Developer

Copyright 2011 Deloitte Development LLC. All rights reserved.

Standard Data Model


Standard Objects
Accounts
Contact
Lead
Opportunity
Case

Footer

Standard Fields
Id
Name
CreatedBy/Date
LastModifiedBy/Date
OwnerId
IsDeleted

Copyright 2011 Deloitte Development LLC. All rights reserved.

Object Fields In Salesforce

Standard Fields
System Assigned but can be initialized
during record creation

Indexed
System
Assigned/N
ot
Updatable

Required

Referred to User/ User


Group

Name

Created
By

ID

Footer

User
Assigned
Modifiable

System
Generated
Not
Modifiable
Unique

Text

Auto
Number

Owner

Last
Modified
By

Date Time
Created
Date

Last
Modified
Date

Copyright 2011 Deloitte Development LLC. All rights reserved.

Custom Fields in Salesforce

Numeric

Calendar

Number
Date

Limited
Required
Option

Formatte
d

Check
Box

Email

Text

Text

Calculati
on

Auto
number

Text Area
(Long)
Currency

Pick List

Phone

Formula
Text Area
(Rich)

Date time
Percent

Footer

Pick
List(Multi
select)

URL

Encrypte
d

Roll-up
Summary

Copyright 2011 Deloitte Development LLC. All rights reserved.

Field Dependencies

Field
Dependency
Can be made dependent
among two fields

Controlling Field
Pick List/Check Box

Footer

Dependent Field
Custom Pick List

Maximum
number of
values allowed
in controlling
field is 300
Copyright 2011 Deloitte Development LLC. All rights reserved.

Object Relationships

Relationship
s

Parent-to-Child
Relationship

Lookup
Loosely Coupled
No Cascade
Independent
ownership and
sharing

Self
lookup relationship
to itself
7

Footer

MasterDetail
Tightly coupled
Cascade
Inherited ownership and
sharing

Many-ToMany

Using Junction
Object+2 MasterDetail

Copyright 2011 Deloitte Development LLC. All rights reserved.

Lookup Relationships

Hiring
Managers(Users)

No cascade. Deletion of parent does not


delete child

No impact on security

Roll up summary fields cannot be


established

Position

8
8

Footer

Copyright 2011 Deloitte Development LLC. All rights reserved.

Master Detail Relationships

Job Application

Master=Parent | Detail=Child

Standard objects can't be on the detail


side

Don't exceed 10,000 child records for a


master-detail relationship

Undeleting the master record also


undeletes detail and sub detail records

Roll-Up Summary fields on parent object

Feedback Review

9
9

Footer

Copyright 2011 Deloitte Development LLC. All rights reserved.

Many-to-Many relationship

Two Master-Detail Relationships


Required 3rd object called junction object

10

Footer

Copyright 2011 Deloitte Development LLC. All rights reserved.

Quick Revision
What is a custom object?
User Defined objects
List example of custom field types.
Text, Number, email, URL, pick list, checkbox, phone, currency,
percent. Auto number
List the 4 types of custom relationships that can be built on force.com
platform. Describe the differences of them.
Lookup
Master-Detail
Self
Many-to-many

11

Footer

Copyright 2011 Deloitte Development LLC. All rights reserved.

You might also like