Create the Data
We will create the core tables for our application. To create a table in App Engine Studio:
-
Click the Add icon (⨁ Add) for Data on the App Home tab.
-
On the How do you want to add data to your app? screen, select the Create a table tile.
-
Click on the
button -
On the How do you want to create a table? screen, select the Upload a spreadsheet tile.
-
Click on the
button -
On the Let's choose the spreadsheet you want to upload screen, click the Drag and drop or browse to upload spreadsheet link
-
Browse and select the Telework Data.xlsx file you downloaded
-
Click on the
button -
Our spreadsheet has multiple sheets. We only need the first one "Telework Arrangement".
-
Select ☑ Import spreadsheet data in the "Telework Arrangement" box.
-
Click on Convert to table to the right of the Telework Arrangement Sheet name.
tipWe need to set what value to display when these records will be referenced
-
Let's set the display value
-
Click the Expand/Collapse icon (⌄) to see advanced configuration options.
-
Check Display
-
Click on the
button
-
-
Set the table label to Arrangement.The table name will auto populate.
-
Click on the
button -
For the admin role, click the All checkbox
-
For the user role, click the All checkbox and then remove the Delete permission
-
Click on the
button -
A loading screen will appear while the table is being created. When it completes, Click
-
We haven't converted all the sheets in the spreadsheets, so we'll see this message pop up
-
Click
-
Again, click the Add icon (⨁ Add) for Data on the App Home tab.
-
On the How do you want to add data to your app? screen, select the Create a table tile.
-
Click on the
button -
On the How do you want to create a table? screen, Select Create from an existing table.
-
Click on the
button -
Type Task, then select the table Task [task] and Click on the
button -
Give the table the following properties
Field Name Field Value (1) Table label Telework Case (2) Auto number Checked ☑ (3) Prefix TLW tipYou can add an identifiable tracking number to your records to make them easier to manage and follow. Selecting this option will automatically add your designated tracking number to each record in this table.
-
Click on the
button -
Click the All checkbox for the admin role.
-
Click the Create, Read, and Write checkbox for the user role.
-
Click on the
button -
Once the table is ready, let's add the fields (columns) we need. Clic Edit table.
-
Close the guide to the Table Builder screen
infoWe can see all the fields that our table inherited from the Task table, making building applications faster.
-
Let's add the fields for our application. Click the Add new field link at the top of the screen
-
In the new row created, add the following values:
- Label: Arrangement
- Hit the [ENTER] key
- Column name: arrangement (auto-generated)
- Hit the arrow key ▸ [twice]
- Hit the [ENTER] key
- Type: Reference then select Arrangement
-
Again, click the Add new field link at the top of the screen
-
In the new row created, add the following values:
- Label: "Days per week"
- Hit the [ENTER] key
- Column name: (auto-generated)
- Type: Integer
-
Again, click the Add new field link at the top of the screen
-
In the new row created, add the following values:
- Label: Reason
- Hit the [ENTER] key
- Column name: reason (auto-generated)
- Hit the arrow key ▸ [twice]
- Hit the [ENTER] key
- Type: Choice
- Choice Type: Dropdown with -- None –
- Choices:
- Dependent Care
- Medical
- Reasonable Accommodation
-
Click
-
We now have all the data elements we need to manage our use case. Click the filter options button and then select Hide extended fields. You should have 3 fields as below:
-
At the top right, Click on the
button to finalize your configurations. -
Congratulations, you've built the first tables in your solution.
Let's take a look at the form that has been generated for our table and adjust the layout.
-
At the top-center of the table, click Form views
As we created our table by extending the Task table, we inherited some fields we don't need for our use case.
-
Remove the following fields (by clicking the X)
- Number
- Configuration Item
- Active
- Parent
-
Users want to see who opened the case. We can easily fulfill the requirement by reusing the Opened by field from the Task table. In the Fields tab to the left is where existing fields can be added.
Note that there are more than 60 fields available to use. The number of fields may be different as other ServiceNow application may add fields onto the Task table.
-
Click the circled plus icon ⊕ to add a field above
-
(1) Type Opened by in the Search box and then (2) click on the Opened by field
-
Repeat the operation to add the field Arrangement
-
Add the field Days per week
-
Add the field Reason
-
Now we'll add the Activity formatter that provides a way to present the audit history of a particular record
-
(1) Click More and then (2) click Formatters
-
Drag the "Activities (filtered)" field onto the form below the Short description field.
-
Your form should look like this:
-
On the top right, Click on the
button
Exercise Recap
In this exercise, we learned how to create a new application and map out the data elements important to enable our business process.
We learned to use the Table Builder to add and configure columns including Reference fields and Choice lists.
We were able to complete all these tasks using simple point-and-click administration and without requiring specialized application or database knowledge.