Skip to main content

Set Up Your Org

Learning Objectives

After completing this unit, you’ll be able to:
  • Describe the business value of custom objects and fields.
  • Create and edit custom objects and fields.
  • Create a custom tab for a custom object.

Meet Ursa Major Solar

Ursa Major Solar is a Southwest-based supplier of solar components and systems. It’s a small company with around 200 employees, but it’s growing fast, and it’s looking to Salesforce to help the company blossom. Maria Jimenez, its admin, is in charge of configuring and customizing Salesforce to meet Ursa Major’s needs.

Maria

Ursa Major Solar is expanding its energy consultation business and offering personalized energy assessments to its customers. But Ursa Major Solar doesn’t have a place to track and manage the results. Using custom objects and fields, Maria’s going to build an energy consulting app. By creating a custom object called Energy Audit, and creating a few custom fields for it, Ursa Major Solar can track information on its customers’ energy usage and recommend which type of solar panel installation is a good fit.

Throughout this module, we’ll follow in Maria’s footsteps as she gets Salesforce into shape for the Ursa Major Solar team to use. You'll create a custom object, custom fields, a custom app and more, and you can do it all in your Trailhead Playground. No special app installation is required.

Maria's first task is to create the Energy Audit object. It will be used in later units, so let’s get started!

Create a Custom Object

Salesforce provides standard objects and fields for common business record types, such as accounts, leads, and contacts. But every organization is unique and needs a way to tailor how data is stored. Ursa Major Solar is no different. Custom objects and fields give them a way to manage and store data to best fit their needs.

All right! Let’s create the custom Energy Audit object.
  1. From the Object Manager in Setup, click Create | Custom Object.
  2. Enter Energy Audit as the label, and Energy Audits as the plural label.Energy Audit Custom Object
  3. Select the box to indicate that it starts with a vowel sound.
  4. In the Search Status section, select Allow Search.
  5. Select Launch New Custom Tab Wizard after saving this custom object. You’ll see why in a minute.
  6. Leave the rest of the values as they are, and click Save. Easy peasy, right?

Create a Custom Object Tab

Maria’s created the custom object, but she needs a way to make it easily accessible to her users. Creating a custom tab for a custom object is a great way to do that.
Note
This is a key step in configuring a custom object. Without a custom tab, you can’t add a custom object to an app.

Let’s define a new tab to access the data stored in the custom Energy Audit object. This way, the Ursa Major Solar consulting team can easily find and open the object.

Because you selected Launch New Custom Tab Wizard after saving this custom object, you’re right where you need to be, and the Energy Audit object is already selected.
  1. Click the Tab Style lookup icon, and select the Sun color scheme and icon for the custom tab. Custom Tab Creation Screen
  2. Click Next, then Next again.
  3. Choose the custom apps that you want the new custom tab to be available in. For now, let’s make the tab visible for just the Sales users. Deselect Include Tab, and select only Sales (standard__LightningSales).
  4. Click Save.
Note

What’s a custom app, you say? It’s basically a set of fields, objects, permissions, and other functions assembled to support a business process. We find out more about that—and creating one—in the next unit.

Now you see the details of the Energy Audit custom object.

Energy Audit object details

Create Custom Fields

Maria’s not done yet. The Energy Audit object needs some custom fields so the Ursa Major energy consultants can enter information about the audit. Besides needing the Account the audit is associated with and how much energy the customer uses, the consultants also recommend where to install the solar panels. Let’s start there.

The first thing to consider when creating a custom field is figuring out what type of field you need. Let’s create a picklist field so the consultants can choose from a list of solar panel installation options.

  1. Click Fields & Relationships, then click New.
  2. Choose Picklist as the field type and click Next.
  3. Give it a label: Type of Installation.
  4. Select Enter values, with each value separated by a new line.
  5. Enter the picklist values, making sure to enter each one on a new line.
    • Rooftop
    • Carport
    • Ground mounted
  6. Select Use first value as default value, and then click NextCustom Field
  7. Leave the field-level security settings as they are, and click Next.
  8. Leave Energy Audit Layout selected, and click Save.
That one field isn’t quite enough, though. The energy consultants also need to capture how much the customer is paying each month and what their monthly energy usage is. They also need a place to write up their audit evaluation. Let’s create a few more custom fields to let them do that. Unless indicated otherwise in the Parameters column, leave each field setting as-is.

Field Type Label Parameters
Lookup Relationship Account Related To: Account

Always require a value in this field.

Currency Average Annual Electric Cost Length: 16

Decimal Places: 2

Help Text: Annual cost per square foot.

Always require a value in this field.

Number Annual Energy Usage (kWh) Help Text: Usage per square foot.

Always require a value in this field.

Text Area (Long) Audit Notes # Visible Lines: 5

Now the custom object is really taking shape. Nice work! And don’t forget that it’s easy to modify an existing custom field to fit your needs at any time. Let’s say you want to sort your data even more granularly. Or you want to change a text-entry field to a picklist to clean up data for reports. You can always come back and get things just right for your business needs.

Create Energy Audit Records

An object is nothing without records to fill it out. Prior to implementing Salesforce, Ursa Major Solar was tracking audits in a spreadsheet. Oh, the horror! Part of Maria’s job as the admin is to enter those audit records into Salesforce. And, we use them later in the module. Let’s get to it.

  1. From the App Launcher (App Launcher icon), find and select Energy Audits.
  2. Click New.
  3. Add a record with these parameters.
    • Energy Audit Name: Burlington evaluation
    • Type of Installation: Rooftop
    • Account: Burlington Textiles Corp of America
      Hint: Type Burlington into the Account field to see all accounts that match what you entered.
    • Average Annual Electric Cost: 1.86
    • Annual Energy Usage (kWh): 23
      These numbers seem small, but they’re cost and usage per square foot. For buildings with many thousands of square feet, that adds up to a lot of energy use and a big bill!
  4. Click Save & New.
  5. Let’s add a few more records to flesh things out.

    Energy Audit Name Type of Installation Account Average Annual Electric Cost Annual Energy Usage (kWh)
    UA Spring assessment Carport University of Arizona 2.19 30
    GenePoint 5-year review Rooftop GenePoint 1.56 21
    sForce Los Altos Hills campus Ground mounted sForce 1.77 25

Nice job! We’ll put those into use shortly.

Enable Feed Tracking

Maria wants her energy consultants to be able to follow changes to the energy audit records and see feed updates when those audit records are changed. To accomplish this, she enables Feed Tracking on the Energy Audit object. Turning on Feed Tracking enables Chatter feeds for an object.

  1. From Setup, enter Feed Tracking in the Quick Find box, then select Feed Tracking.
  2. Select Energy Audit from the object list.
  3. Select Enable Feed Tracking.
  4. Select all of the fields except Owner and All Related Objects.
  5. Click Save.
Keep learning for
free!
Sign up for an account to continue.
What’s in it for you?
  • Get personalized recommendations for your career goals
  • Practice your skills with hands-on challenges and quizzes
  • Track and share your progress with employers
  • Connect to mentorship and career opportunities