Skip to content
Made with Docsie · generated from video

How to Create a Custom Object in Salesforce

This guide walks you through creating a new custom object in Salesforce Lightning, from accessing the Setup menu to filling out the object details and resolving common validation errors.

Salesforce· 10 steps· 6 screenshots· 833 words· Source video 2:08

Source: HOW TO CREATE A NEW CUSTOM OBJECT IN SALESFORCE (2022) by Salesforce Emily. The written guide below was generated from this video by Docsie.

This guide walks you through creating a new custom object in Salesforce Lightning, from accessing the Setup menu to filling out the object details and resolving common validation errors.

Prerequisites

  • Access to a Salesforce Lightning environment with login credentials.
  • Permissions sufficient to access Setup and the Object Manager.

Steps

1. Navigate to the Salesforce home page

Open your web browser and log in to your Salesforce Lightning environment. Ensure you are on the Sales app, visible in the top left of the screen. The main dashboard displays Quarterly Performance, Today's Events, Today's Tasks, and an Assistant panel.

Locate the gear icon (⚙️) in the upper right corner of the screen and click it to open the settings dropdown menu. In the dropdown, select Setup (Setup for current app).

Salesforce home page with the gear icon dropdown open and the cursor on "Setup"
Salesforce home page with the gear icon dropdown open and the cursor on "Setup"

2. Access the Setup home page

The screen transitions to the Setup Home page. A notification bar at the top may display security alerts. The left sidebar contains navigation options such as Setup Home, Release Updates (Beta), Lightning Experience Transition Assistant, and others.

The main panel displays Setup Home with a Create button on the right.

3. Open the Object Manager

In the Setup navigation bar, click Object Manager, located next to Home. The Home tab remains visible, and the main panel updates to show featured setup options such as Mobile Publisher, Real-time Collaborative Docs, and Join the Trailblazer Community. The left sidebar remains unchanged.

4. Start creating a new custom object

In the Object Manager view, you see a list of existing objects with columns for Label, API Name, and Description. Click the Create dropdown button on the right side of the screen, then select Custom Object from the dropdown.

5. Open the New Custom Object wizard

The screen updates to New Custom Object under the Object Manager. The main panel is initially blank while the wizard loads.

6. Enter custom object information

The New Custom Object form appears. A yellow banner at the top states: "Permissions for this object are disabled for all profiles by default. You can enable object permissions in permission sets or by editing custom profiles."

Under Custom Object Information, fill in the following fields:

  • Label: Enter New Object
  • Plural Label: Enter New Objects
  • Object Name: Enter New Object

The Description field is visible but not yet filled in at this point.

New Custom Object form with the Label, Plural Label, and Object Name fields being filled in
New Custom Object form with the Label, Plural Label, and Object Name fields being filled in

7. Complete the object description

In the Description field, enter: This object is to show how to create a new custom object.

At this point, the form contains:

  • Label: New Object
  • Plural Label: New Objects
  • Object Name: New Object
  • Description: This object is to show how to create a new custom object

The Context-Sensitive Help Setting is set to "Open the standard Salesforce.com Help & Training window."

New Custom Object form fully filled in, including the description
New Custom Object form fully filled in, including the description

You have now completed the initial steps to create a new custom object in Salesforce Lightning. Continue with the steps below to configure additional settings and save your new object.

8. Review the form and enter record name details

The New Custom Object form displays the following filled-in fields:

  • Object Name: New Object
  • Description: This object is to show how to create a new custom object

Under Enter Record Name Label and Format, the following values are set:

  • Record Name: Name
  • Data Type: Text

The environment is the Salesforce Lightning Setup interface, with the Object Manager tab active. No errors are shown at this point, and the form is ready for further input.

Salesforce New Custom Object form with Object Name, Description, and Record Name fields filled in, no errors shown yet
Salesforce New Custom Object form with Object Name, Description, and Record Name fields filled in, no errors shown yet

9. Attempt to save the object and address validation errors

When you attempt to save the custom object, a yellow banner reappears: "Permissions for this object are disabled for all profiles by default. You can enable object permissions in permission sets or by editing custom profiles."

A red error message also appears: "Error: Invalid Data. Review all error messages below to correct your data." The Object Name field at this point contains New_Object, and an additional error message under Object Name states: "Error: The Object Name field can only contain underscores and alphanumeric characters. It must be unique, begin with a letter, not include spaces, not end with an underscore, and not contain two consecutive underscores."

The cursor is positioned in the Object Name field, indicating that a correction is needed. The Save, Save & New, and Cancel buttons are visible at the top of the form.

Salesforce New Custom Object form showing an error for an invalid Object Name, with error messages highlighted
Salesforce New Custom Object form showing an error for an invalid Object Name, with error messages highlighted

10. Attempt to save again after the error

If you click Save again without correcting the Object Name field, the error persists. The field still contains the invalid value New_Object, and the same error messages remain visible, indicating the issue has not yet been resolved.

Salesforce New Custom Object form with Save clicked again, error for invalid Object Name still present
Salesforce New Custom Object form with Save clicked again, error for invalid Object Name still present

What's next

  • Correct the Object Name field to meet Salesforce requirements: use only letters, numbers, and underscores; begin with a letter; avoid spaces; do not end with an underscore; and do not use consecutive underscores.
  • Once the error is resolved, click Save to successfully create the custom object.

Generated by Docsie Video-to-Docs on 2026-09-08 from a 2-minute video. Screenshots are frames from the source video and belong to their creator, Salesforce Emily. If you own this video and want the guide removed or credited differently, contact us.

Video to Documentation

Have your own Salesforce training videos?

Docsie turned a 2-minute YouTube video into the guide above, screenshots included, with no manual writing. Upload your Zoom, Teams, Loom or screen recordings and get the same for your team.

Steps + screenshots extracted automatically
Export to Markdown, DOCX, PDF or publish to a portal