Skip to main content
Time Estimate

Create a Travel Approval Object

In the previous steps, you created the travel app using Lightning App Builder and created the first custom object for Departments. Now you create the object to store the Travel Approval requests.

  1. Navigate back to Object Manager.
  2. Click Create then select Custom Object.
  3. Enter these details:
    Parameter Value
    Label
    Travel Approval
    Plural Label
    Travel Approvals
    Object Name
    Travel_Approval (this field auto-populates)
    Record Name
    Travel Approval #
    Data Type
    Auto Number
    Display Format
    TA-{00000}
    Starting Number
    1

    Don’t click Save yet. You need to set a few more parameters first. Scroll down and select these additional options.
    • Allow Reports
    • Allow Activities
    • Track Field History
    • Allow Search
    • Add notes and Attachments related list to default page layout
    • Launch New Custom Tab Wizard after saving this custom object. 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 after your object has been created.
  4. Click Save.
  5. Click Lookup icon next to Tab Style and select Airplane.
  6. Click Next.
  7. Keep the Add to profiles screen as is, and click Next.
  8. In the Add to Custom Apps screen, select the Include Tab checkbox to deselect all apps. Select Travel App, then click Save.
  9. On the object configuration page, click Fields & Relationships, then click New.
  10. Select Text Area as the data type, then click Next.
  11. For Field Label, enter Purpose of Trip.
  12. Click Next.
  13. Leave the Establish field-level security screen as is, and click Next.
  14. Keep the Add to page layouts screen as is, and click Save & New to create more custom fields. 

    To create the remaining fields for the Travel Approval object, follow the parameters below.

  15. Create the Status field with a Picklist data type. Click Enter values, with each value separated by a new line. Use the following values:

    • New
    • Submitted
    • Pending Approval
    • Approved
    • Rejected
    • Draft
  16. Create the Trip Start Date field with a Date data type.
  17. Create the Trip End Date field with a Date data type.
  18. Create the Out-of-State field with a Checkbox data type.
  19. Create the Destination State field with a Text data type. Set the text Length to 2.
  20. Create the Department field with a Lookup Relationship data type, then select Department for the Related To field. Click Next 4 times, then Save.

You’ve just created the Travel Approval object and created a lookup relationship to the Department object. In the next step, you create the Expense Item object, where each expense line item for the travel request is created.

Share your Trailhead feedback over on Salesforce Help.

We'd love to hear about your experience with Trailhead - you can now access the new feedback form anytime from the Salesforce Help site.

Learn More Continue to Share Feedback