Skip to main content
Bring your team and maximize your impact at Dreamforce. Register three or more to unlock $999 passes.

Tempo estimado

Create a Department Object

The next step in creating your organization’s travel approval app is to create the data model. The first object to create is the Department object. This object stores information about your departments such as name and cost center code.

  1. From Setup, click Object Manager

Navigation to the Object Manager from Setup.

  1. Click Create, then select Custom Object.

Navigation to create a Custom Object from within the Object Manager.

  1. Enter these details.

Field

Value

Label

Department

Plural Label

Departments

Object Name

Department (this field auto-populates)

Record Name

Department Name

Data Type

Text

  1. Now scroll down and select these options:
  • Allow Reports (1)
  • Allow Search (2)
  • Launch New Custom Tab Wizard after saving this custom object (3) 

Note

Be sure to check this box as it drives the next screens that will show. If you miss this option, you can create a custom tab by going to Setup, searching for and selecting Tabs, then creating a new tab later after your object has been created.

Screen showing option selected for the Department custom object: (1) Allow Reports, (2) Allow Search, (3) Launch New Custom Tab Wizard after saving this custom object.

  1. Click Save.
  2. Now, define your tab settings. Click the Lookup iconnext to the Tab Style field and select Books.

Screen showing tab customization options with Books chosen for the Tab Style.

  1. Click Next. Leave the next screen as is and click Next.
  2. Next, choose which applications to associate with this tab.
    • Click the Include Tab (1) option at the top of the column to deselect all apps.
    • Select only the Travel App (2) app from the list.
    • Click Save (3).

Tab setup options showing (1) Include Tab deselected, (2) Travel App selected via checkbox, and (3) Save button.

  1. On the next screen, click Fields & Relationships, then click New.
  2. Select Text as the data type, then click Next.
  3. Enter these details.
    • For Field Label, enter Department Code
    • For Length, enter 10
    • Select Required 
    • Select Unique, then select case sensitive
  1. Click Next.
  2. Leave the Establish field-level security screen as is, and click Next.
  3. Leave the Add to page layouts screen as is, and click Save.

Now that you created the Department Object, you’re ready to move on to the next step, creating the Travel Approval object. The Travel Approval object stores basic information about where employees are traveling and trip duration.

Compartilhe seu feedback do Trailhead usando a Ajuda do Salesforce.

Queremos saber sobre sua experiência com o Trailhead. Agora você pode acessar o novo formulário de feedback, a qualquer momento, no site Ajuda do Salesforce.

Saiba mais Continue compartilhando feedback