Skip to content
Back to articles

Imported guide · Published 2026-08-07

how-to-create-a-custom-object-in-salesforce-a-step-by-step-guide

How to Create a Custom Object in Salesforce: A Step-by-Step Guide

Creating a custom object in Salesforce allows you to store information that doesn’t fit naturally into Salesforce’s standard objects such as Accounts, Contacts, Leads, or Opportunities.

For example, you might create a Project object to track customer projects, or a Service Request object to manage internal requests.

1. Open Object Manager

  1. Log in to Salesforce.
  2. Click the Setup gear icon in the upper-right corner.
  3. Select Setup.
  4. In the Quick Find box, type Object Manager.
  5. Click Object Manager.

2. Create the Custom Object

  1. Click Create in the upper-right corner.
  2. Select Custom Object.
  3. Enter the basic information for your object.

For example:

Salesforce automatically generates the API name, such as Project__c.

Record Name

The Record Name is the primary identifier for each record.

You can choose:

For example:

Project-00001
Project-00002
Project-00003

3. Configure Optional Settings

Salesforce provides several additional settings when creating the object.

Depending on your requirements, you may enable:

For most business objects, Allow Reports is particularly useful.

4. Save the Object

Click Save.

Your custom object is now available in Salesforce.

You’ll see its details in Object Manager, including:

5. Create Custom Fields

Your new object will probably need additional fields.

From Object Manager → Your Object → Fields & Relationships, click New.

Salesforce gives you numerous field types, including:

For example, a Project object might contain:

6. Create Relationships

Relationships allow your custom object to connect to other Salesforce records.

For example, you could create an Account lookup on the Project object.

Go to:

Object Manager → Project → Fields & Relationships → New → Lookup Relationship

Select Account as the related object.

Now a Project can be associated with an Account.

Lookup vs. Master-Detail

Lookup Relationship

Master-Detail Relationship

Choose Master-Detail when the child record truly belongs to the parent and shouldn’t exist independently.

7. Configure the Page Layout

Go to:

Object Manager → Project → Page Layouts

Open the appropriate layout and drag your fields onto the page.

You can organize fields into sections such as:

Project Information

Dates

Financial Information

Save the layout when finished.

8. Configure Object Permissions

Creating the object doesn’t automatically mean every user should have access to it.

Go to:

Setup → Profiles or Permission Sets

Then configure permissions for the custom object:

Permission Sets are generally preferable for granting additional access without modifying a user’s profile.

9. Configure Sharing

Go to:

Setup → Sharing Settings

Find your custom object and configure its organization-wide default (OWD).

For example:

Project — Private

This means users won’t automatically see every Project record.

You can then use:

to provide additional access.

10. Add the Object to the Navigation

To make the object easy for users to access:

  1. Go to Setup → App Manager.
  2. Find the Lightning app you want to modify.
  3. Click the dropdown arrow.
  4. Select Edit.
  5. Select Navigation Items.
  6. Add your custom object.
  7. Save.

Users can now access the object directly from the app’s navigation bar.

11. Test the Object

Before releasing it to users, test the entire experience.

Create several test records and verify:

Example

Suppose you’re building a Salesforce system for a consulting company.

You could create:

Custom Object: Project__c

with:

Then create a lookup relationship:

Project → Account

Your resulting data model might look like:

Account
↓
Projects
↓
Project Tasks

This gives Salesforce a structured way to manage information that isn’t covered by the standard objects.

Quick Summary

Setup → Object Manager → Create → Custom Object → Configure fields → Create relationships → Configure page layout → Set permissions → Configure sharing → Add to app → Test

That’s the basic process for creating a production-ready custom object in Salesforce.

Originally published 2026-08-07. Imported from SF Admin Guide; original content retained without images. Historical job listings and dated product guidance may no longer be current.

Browse all articles