Skip to main content

Exercise 2.1: Create Travel Request Table

Duration: 10 minutes

  1. Under Data, click Add
  1. On the Add Data page, click Create a blank table
  1. Click Continue
  1. On the next page, select Create from an extensible table
  1. Click Continue
  1. On the next page, click Table, and select Task under Recommended Tables
info

The task table is one of the core tables provided on the platform. Any table that extends task can take advantage of task-specific functionality such as SLAs and Approvals. This speeds up the overall process and ease of building logic and functionality.

  1. Click Continue
  1. For Table label, enter Travel request. Table name should be auto-populated.
  1. Check Auto number
  1. For Prefix, enter TRV
  1. Click Continue
  1. Allow all access for admin and Create and Read access for user
  1. Click Continue
  1. Click Edit table
  1. If presented with the Welcome to Table builder pop-up, read through the steps, then close it
  1. You should now be on the Table Builder interface, in the Spreadsheet view
note

Instead of adding fields individually via table builder, we will add fields directly onto the form view instead. But note that there are several ways to add fields to a table.

  1. Click on the Forms pill
  1. The current form layout is inherited from the task table, we will only keep the fields relevant to us
  1. Remove the following fields from the form:
    - Priority
    - Assigned to
  1. The form should look like this
  1. On the left panel, click Add a field in the table
  1. On the pop-up modal, enter Departure date under Column label, the Column name should be auto-populated
  1. Change Type to Date
  1. Click Add
  1. Click Add another one
  1. Enter Return date under Column label, the Column name should be auto-populated
  1. Change Type to Date
  1. Click Add
  1. Click Add another one
  1. Repeat the steps above for the following 2 fields:

    Column labelType
    Estimated AirfareDecimal
    Reason for travelChoice
  1. The panel on the left should show 4 new fields with a purple highlight
  1. Drag and drop those 4 fields onto the form
tip

You will need to ensure that you see a grey outline box with a plus icon before releasing the field

  1. Search and add two more standard fields onto the form beneath the Number and State fields: Opened by, Approval (These come standard with the Task table)
  1. Click Save on the top right of the form
  1. Within your form, locate and click Reason for travel
  1. The right-side panel will update for the configuration of this field. Expand Choices, then click Edit (1)
  1. On the Edit choices for Reason for travel screen, click + Add a choice
  1. Under Label, enter Customer meeting, the Value field should auto-populate
  1. Add another two Labels: Internal meeting and Training
  1. On the bottom right, click Apply
  1. Click Save

    At this point, we could also capture the Origin and Destination via a String field so that the users can enter free text, but for more consistency, let's create an Airports table so that users can select these locations (like how you would select on any airline reservation website)

note

Great, you now have a table to store the Travel Requests!