Module Assessment | Yext Hitchhikers Platform

loading
You must include a first name and last name in your profile to create challenge environments.

Background

As you know, Turtlehead Tacos wants to feature their Community Stories with dedicated schema-optimized Pages and make them a vertical in Search.

In the Entity Types Module , you created the Entity Type for “Community Story” and added the Videos and Description fields. Now, it’s time to add more fields for this type and a new field for the Restaurant type to store promotions.

Your Challenge

In this challenge, you will add fields to the Community Story entity type and the Restaurant entity type. Some of these fields will be built-in fields so be sure to check for those first before creating new fields or defining new field types.

  1. Navigate to Knowledge Graph > Configuration > Entity Types and click the dropdown next to Community Story > Edit Fields.

  2. Add the following fields to the Community Story Type in the “Core Information” section:

    • Organizer Email - add the built-in field to store the email address of the main point-of-contact.

    • Theme - create a new field allowing users to select from a list of options:

      • Type: Multi-Option Select
      • Name: Theme
      • ID: c_theme
      • Available Options: Environment, Education, Health, Arts, Criminal Justice, Hunger & Homelessness, Immigration
    • Goal - create a new field allowing users to enter a short description of the program’s goal.

      • Type: Single-Line Text
      • Name: Goal
      • ID: c_goal
    • Primary CTA - create a new field allowing users to enter a call-to-action in Search and on Pages.

      • Type: Call to Action
      • Name: Primary CTA
      • ID: c_primaryCTA
  3. Click Add Fields. Then click Save.

  4. Now you want to add a new Custom Field Type for Restaurant Promotions. Navigate to Knowledge Graph > Configuration > Field Types and click “Add Custom Field Type”.

    • Name the type “Promotion”
    • Add 4 subfields with the types and names exactly as listed below:

      Subfield Type: Single-line text
      Subfield Label: Title

      Subfield Type: Photo
      Subfield Label: Photo

      Subfield Type: Multi-line text
      Subfield Label: Description

      Subfield Type: URL
      Subfield Label: URL

  5. Navigate to Knowledge Graph > Configuration > Entity Types or Knowledge Graph > Configuration > Fields and create a new Custom Field on the Restaurant Type called “Restaurant Promotions” using the new type you just defined. Add the field to the “Core Information” section.

    • Type: Promotion (“Make it a List” selected)
    • Name: Restaurant Promotions
    • ID: c_restaurantPromotions
    • Field Settings: Set item count max of 3 items
    • Entity Type Availability: Restaurant (if you are adding a field through the Restaurant entity type, you won’t have to add this settings as you’re already on the entity type!)

Make sure that you name the fields, API names, types and options exactly as provided

Module Assessment
+<% util.points %> points
loading
Weekly Challenge Streak Weekly Challenge Streak: <% util.streakWeekly %>
You must include a first name and last name in your profile to create challenge environments.
Challenge account expires in <% util.expirationHours > 24 ? Math.round((util.expirationHours * 1.0) / 24) : util.expirationHours %> <% util.expirationHours > 24 ? (Math.round((util.expirationHours * 1.0) / 24) == 1 ? 'day' : 'days') : (util.expirationHours == 1 ? 'hour' : 'hours') %>.
Challenge account has expired. Please create a new account.
Report Card
Create the Theme custom field
Create the Goal custom field
Create the Primary CTA custom field
Create the Promotion custom field type
Create the Restaurant Promotions custom field
Add all the new fields to the Community Story entity type
Add the Restaurant Promotions field to the Restaurant entity type
Common Issues
Did you add the right field type? expand/collapse module
Make sure you add the field type exactly as specified in the instructions. Double check the fields you added to make sure they’re the correct type!
Make sure the field type display names and API names are correct. expand/collapse module
Field type display names and API names are case-sensitive and must be spelled exactly as specified in the challenge.
Make sure the field display names and API names are correct. expand/collapse module
Field display names and API names are case-sensitive and must be spelled exactly as specified in the challenge.
Previous Submissions
Attempt #<% submission.attemptNumber %>
<% submission.date %>
Score: <% submission.numericScore %>
Pending