Introductions are fun, and this time around, we will be scratching the surface a little more to understand how to model your Salesforce Data. In this session, we will learn about the difference between Standard and Custom Object, Different data types in Salesforce, and the Lookup vs Master Details relationship.
What are Objects in Salesforce
- Salesforce Objects are like DB tables
- We use them to store persistent data
- It has additional properties and features.
Standard vs. custom objects
|Standard Objects||Custom objects|
|API names of standard objects do not end with __c||API names of standard objects do not ends with __c|
|API names of custom objects end with __c||Example of the custom object name is Employee__C or Department__c|
|Limited Customization||Fully Customizable|
|Examples of standard objects are Account, Contact & User||Standard Objects are out of the box: The objects provided by Salesforce are called standard objects.|
Lookup VS Master detail
|Master Detail||Detail object is deleted when the Parent is deleted|
|This is parent-child relationship||This links two objects together|
|Both linked records have independent sharing and security settings.||No effect on linked records|
|Roll-up summary fields are not available on lookups||Parents can have Roll-Up Summary fields|
|Reference to linked records is optional||The detail record must have a Master record reference|
|The detail record inherits the sharing and security settings of its master record.||Both linked records have independent sharing and security settings.|
Choosing between Standard & Custom Objects, Relationships in the CTA exam.
Model your Salesforce Data Session
Please try the Trailhead module below for further learning:-