---
schema_version: "1"
id: 8e0abe5d5580ea37c147f37b8f673e9cf104c28e7f2b08028c283d0fca1611ff
title: Create a Custom Object
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexcode/apex_qs_customobject.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_qs_customobject.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 00baa275dfbe5ea0fb548046ef07169aa2d24dced9af7a5fd775186022270e15
description: In this step, you create a custom object called Book with one custom field called Price.
---
# Create a Custom Object

In this step, you create a custom object called Book with one custom field called Price.

Prerequisites:

A Salesforce account in a sandbox Professional, Enterprise, Performance, or Unlimited Edition org, or an account in a Developer org.

For more information about creating a sandbox org, see “Sandbox Types and Templates” in Salesforce Help. To sign up for a free Developer org, see the [Developer Edition Environment Sign Up Page](http://developer.force.com/join "HTML (New Window)").

1. Log in to your sandbox or Developer org.
2. From your management settings for custom objects, if you’re using Salesforce Classic, click **New Custom Object**, or if you’re using Lightning Experience, select **Create** | **Custom Object**.
3. Enter Book for the label.
4. Enter Books for the plural label.
5. Click **Save**.
    
    Ta dah! You’ve now created your first custom object. Now let’s create a custom field.
6. In the **Custom Fields & Relationships** section of the Book detail page, click **New**.
7. Select Number for the data type and click **Next**.
8. Enter Price for the field label.
9. Enter 16 in the length text box.
10. Enter 2 in the decimal places text box, and click **Next**.
11. Click **Next** to accept the default values for field-level security.
12. Click **Save**.

You've created a custom object called Book, and added a custom field to that custom object. Custom objects already have some standard fields, like Name and CreatedBy, and allow you to add other fields that are more specific to your implementation. For this tutorial, the Price field is part of our Book object, and the Apex class you’ll write in the next step accesses it.

- [Next →](https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_qs_class.htm "Add an Apex Class")

#### See Also

- [_Salesforce Help_: Find Object Management Settings](https://help.salesforce.com/HTViewHelpDoc?id=extend_click_find_objectmgmt_parent.htm&language=en_US)