Start tracking your progress
Trailhead Home
Trailhead Home

Build the Game Night App

Welcome to the Game Night App!

For this project you make a simple app for managing game nights. Being the savvy developer you are, you’ve determined that the most important things for V1 is knowing what date and time the event starts, how long the event lasts, what game to play, and if you want to provide snacks, lunch, or dinner.

Time to open your Trailhead Playground and get started.

Create a New Object

  1. Click Gear icon to access Setup in Lightning Experience. at the top-right corner of your screen and select Setup.
  2. Click the Object Manager tab.
  3. Click Create and select Custom Object.
  4. Define the new custom object as follows.
    • Label: Game Night
    • Plural Label: Game Nights
    • Object Name: Game_Night
  5. Click Save.
  6. In Setup, click Home.
  7. Enter Tabs in the Quick Find box and select Tabs.
  8. Under Custom Object Tabs, click New.
  9. Create a new tab as follows.
    • Object: Game Night
    • Tab Style: select any icon
  10. Leave all defaults as is. Click Next, Next, and Save.

Create New Fields

  1. Click the Object Manager tab.
  2. Select the Game Night object.
  3. On the left-hand side, click Fields & Relationships.
  4. Click New.
  5. Choose Date/Time and click Next.
  6. For Field Label, enter Start Time. Leave Field Name as the default and click Next.
  7. Click Next and Save & New.
  8. Choose Number and click Next.
  9. For Field Label, enter Duration. Leave Field Name as the default.
  10. Enter Length as 16 and Decimal as 2 and then click Next.
  11. Click Next and Save & New.
  12. Choose Text Area and click Next.
  13. For Field Label, enter Game.Leave Field Name as the default and then click Next.
  14. Click Next and Save & New.
  15. Choose Picklist and click Next.
  16. For Field Label, enter Food. Leave Field Name as the default.
  17. Select Enter values, with each value separated by a new line.
  18. Enter the following values for the picklist (one per line).
    • Snacks
    • Lunch
    • Dinner
  19. Click Next, Next, and Save.

A final look at the Fields and Relationships for the Game Night object.

Add Your First Game Night

With the custom object and fields created, you need some sample data to test everything out. You'll create a record for everyone to play the game Trailhead Night of Fun in 2028 for 2 hours.

  1. Click the app launcher App Launcher icon  and select Game Nights.
    • Depending on your Playground environment, you may have to search for the object by entering Game Nights in the launcher search field.
  2. Click New.
  3. Give your game night the name Trailhead Night of Fun.
  4. Set the date/time to 31 July 2028 to 6:00 PM.
  5. Set Duration to 2.
  6. Fill in the Game field with Trailhead.
  7. For the Food, select Dinner.
  8. Click Save

A visualization of what your completed Trailhead Night of Fun looks like with title, start time, duration, game name, food, and so on.

retargeting