Abekus — AI learning and job matching platform logo

Standard vs custom objects

Lesson 2 of 82 in Salesforce Interview Mastery. Free to read, with practice questions to try.

Standard and custom objects

An object is a typed collection of records with fields, such as a table of companies or a table of orders. Every Salesforce org (one Salesforce instance) ships with built-in objects called standard objects, such as Account for the companies you deal with and Opportunity for the deals you hope to win. When a business needs data those objects don't cover, admins create a custom object. For Sahyadri Traders, Account and Opportunity come ready-made, but tracking each bulk order needs a custom object.

Labels and API names

Every object has two names. The object label is the display name users see on screen, and it can be friendly and plural. The API name is the unique name used in code and configuration, so renaming it later would break any code that refers to it. Standard objects use their plain API name with no suffix. Custom objects always end in __c, which tells you your org created them.

LabelAPI nameKind
AccountAccountStandard
OpportunityOpportunityStandard
OrderOrder__cCustom

So an order object might show as “Order” to users but must be referred to as Order__c everywhere else.

Choosing between them

The rule is simple: reuse a standard object when one fits the business concept, and create a custom object only when none does. Each Sahyadri Traders need maps to one object. A distributor is an Account, and the Diwali deal is an Opportunity, but the individual bulk order with its own status and total needs a custom object. Salesforce also has a standard Order object, but its full feature set comes with Order Management, Revenue Cloud or B2B Commerce licences, so this course models each bulk order as Order__c.

Business needObjectKind
A Pune grocery distributorAccountStandard
The Diwali deal we hope to closeOpportunityStandard
Each bulk order and its statusOrder__cCustom

Opportunity tracks the deal itself, while Order__c holds the order's own status and total.

Duplicating a standard object

A common mistake is creating a custom object for something a standard object already covers. Suppose a new team member wants to track distributors and builds a custom object called Distributor__c. Now Sahyadri Traders exists as an Account and also as a Distributor__c record, so the company's data is split across two places and reports disagree.

The correct approach is to check first. Distributors are companies, so they belong on the standard Account object you already have, and you can distinguish them from other accounts with a field. Create a custom object only after you have confirmed that no standard object fits the concept.

Practice questions

  1. 1.

    Which of these is a standard object, built into every Salesforce org?

    • A.

      Order__c

    • B.

      Distributor__c

    • C.

      Opportunity

    • D.

      Delivery__c

    Show answer
    Answer: C.

    Opportunity

    Opportunity is a standard object that every org ships with. Order__c, Distributor__c and Delivery__c all carry the __c suffix, so each is a custom object that an org creates.

  2. 2.

    Sahyadri's distributors are companies. Which approach does the lesson give for marking them apart from other accounts?

    • A.

      A new Distributor__c object for every distributor

    • B.

      A field on the standard Account object that marks distributors

    • C.

      A separate Opportunity for each distributor

    • D.

      A copy of each Account kept in a separate object

    Show answer
    Answer: B.

    A field on the standard Account object that marks distributors

    The lesson says distributors belong on the standard Account object and can be distinguished from other accounts with a field. A new custom object recreates the split the lesson warns against, Opportunity tracks deals rather than companies, and a copy in a separate object would split the data again.

  3. 3.

    A new team member creates Distributor__c for distributors, although the standard Account object already holds companies. What problem does the lesson describe?

    • A.

      Custom objects cannot hold fields

    • B.

      Sahyadri's data is split across two places, so reports disagree

    • C.

      Custom objects always run slower than standard ones

    • D.

      Distributors cannot be recorded as companies

    Show answer
    Answer: B.

    Sahyadri's data is split across two places, so reports disagree

    The lesson describes a split: Sahyadri Traders exists as an Account and as a Distributor__c record, so its data sits in two places and reports disagree. The other options are not in the lesson; custom objects can hold fields, no speed difference is taught, and distributors are companies that belong on Account.

4 more questions and the timed quiz for this lesson open with a free account.

Lessons in How the Salesforce Platform Fits Together

  1. What an org is
  2. Standard vs custom objects
  3. Metadata vs data records
  4. Sandbox types and their refresh trade-offs
  5. Record-triggered flow vs apex trigger
  6. Formula field vs roll-up summary field
  7. Lookup vs master-detail relationship
  8. Sf cli project and metadata deploy
  9. Scratch orgs from a definition file
  10. Unlocked vs managed packages

82 lessons across 10 topics. See the full course