Skip to main content

Create the Data Model

Red Rover, Red Rover, Send Messages on Over

If you’ve ever tried conversing with a robot (and honestly, who hasn’t?), then you know it’s all bleeps, bloops, and robot dance moves. However, with the power of Salesforce, we can translate those 1s and 0s into parts of human speech. Which parts? Nouns, adjectives, and verbs, of course.

We start by setting up a simple object model to support our communication with the rover.

Create the Custom Object

Let’s make an object and tab.

  1. Click the setup gear Setup icon and select Setup.
  2. Click the Object Manager tab next to the Home tab.
  3. Click Create and select Custom Object.
  4. Update the custom object definition.
    • Label: Communication
    • Plural Label: Communications
    • Object Name: Communication

Screenshot of Custom Object Definition.

  1. Select Launch New Custom Tab Wizard after saving this custom object.
  2. Leave the defaults for the remaining fields, and click Save.

Make a Custom Tab

Note: If the tab wizard didn’t automatically launch, that’s OK. Enter Tabs in Quick Find and select Tabs. In the Custom Object Tabs section, click New.

Follow these steps to create a tab for your custom object.

  1. For Object, select Communication.
  2. Click Tab Style and choose any image.
  3. Click Next, Next, and Save.

Create the Custom Fields

Now we create fields on the Communication object. On the left column, click Fields & Relationships.

  1. Click Fields & Relationships and click New.
  2. For Data Type, select Picklist, and click Next.
  3. Fill in the custom field details.
    • Field Label: Adjective
    • Select Enter values, with each value separated by a new line. Enter the following values for the picklist (one per line).
      • dry
      • dusty
      • freezing
      • gaseous
      • cosmic
      • moist
      • stinky
    • Select Always require a value in this field in order to save a record.
      Screenshot showing options for Adjective custom field.
  1. Leave everything else as is, and click Next, Next, and Save & New.
  2. For Data Type, select Picklist, and click Next.
  3. Fill in the custom field details.
    • Field Label: Noun
    • Select Enter values, with each value separated by a new line. Enter the following values for the picklist (one per line).
      • banana
      • alien
      • astronaut
      • asteroid
      • spacecraft
      • pineapple upside-down cake
    • Select Always require a value in this field in order to save a record.
  1. Leave everything else as is, and click Next, Next, and Save & New.
  2. For Data Type, select Picklist, and click Next.
  3. Fill in the custom field details.
    • Field Label: Verb
    • Select  Enter values, with each value separated by a new line. Enter the following values for the picklist (one per line).
      • red-dirt rolling
      • shimmy-shammying
      • whirling
      • two-stepping
      • moonwalking
      • doing the robot (literally)
    • Select Always require a value in this field in order to save a record.
  1. Leave everything else as is, and click Next, Next, and Save & New.
  2. For Data Type, select Picklist, and click Next.
  3. Fill in the custom field details.
    • Field Label: Proper Noun
    • Select Enter values, with each value separated by a new line. Enter the following values for the picklist (one per line).
      • Cloudy
      • Astro
      • Codey
      • Earnie
      • Einstein
      • Blaze
      • Appy
      • Ruth
      • Hootie McOwlface
    • Select Always require a value in this field in order to save a record.
  1. Leave everything else as is, and click Next, Next, and Save & New.
  2. For Data Type, select Picklist, and click Next.
  3. Fill in the custom field details.
    • Field Label: Number
    • Select Enter values, with each value separated by a new line. Enter the following values for the picklist (one per line).
      • 1
      • 2
      • 3
    • Select Always require a value in this field in order to save a record.
  1. Leave everything else as is, and click Next, Next, and Save & New.
  2. For Data Type, select Picklist, and click Next.
  3. Fill in the custom field details.
    • Field Label: Direction
    • Select Enter values, with each value separated by a new line. Enter the following values for the picklist (one per line).
      • backwards
      • sideways
      • north
      • in endless circles
      • south
      • in big figure eights
      • widdershins
    • Select Always require a value in this field in order to save a record.
  1. Leave everything else as is, and click Next, Next, and Save.

And there you have it. Now we’ve got a simple framework for talking with the rover. Up next, we use automation to get the rover talking.

Comparta sus comentarios sobre Trailhead en la Ayuda de Salesforce.

Nos encantaría conocer su experiencia con Trailhead. Ahora puede acceder al nuevo formulario de comentarios cuando quiera desde el sitio de la Ayuda de Salesforce.

Más información Continuar para compartir comentarios