Create a data table
Create a table to store the data for your application.
Before you begin
Role required: admin, sn_app_eng_studio.user, or delegated developer
About this task
The first phase in building the data model for the employee travel request application is to create a table. In our tutorial, we create a blank table that extends the Task table.
| Phase 1 | Image omitted: app-tutorial-progress-wip.png In progress icon | Create a data table |
| Phase 2 | Image omitted: app-tutorial-progress-not-started.png Not started icon | Configure a data table |
| Phase 3 | Image omitted: app-tutorial-progress-not-started.png Not started icon | Share data between tables |
This procedure covers the first part of the task demonstrated in the tutorial video. The rest of the procedure is outlined in the next topic Configure a data table.
Follow along to create a table for the employee travel request application.
[Omitted video] Description: Third video in the app creation tutorial series. Create and configure a data table to capture the necessary data for your application.
| Timestamp | Section |
|---|---|
| 0:10 | Create a data table. |
| 0:14 | Create a table by extending the Task table. |
| 0:21 | Define table properties. |
| 0:33 | Add permissions to your table. |
Procedure
Navigate to All > App Engine > App Engine Studio.
Select the travel request application.
On the application dashboard, select + Add next to Data.
Select Create a blank table.
A blank table enables you to create the fields, rows, and columns in your table from scratch. You can import existing data, such as spreadsheets or PDFs, to create the table for your application.
Select Continue.
Select Create from an extensible table.
Extensible tables are tables with built-in capabilities and functionality that you can use to create new tables. If you don't want to create a table from an extensible table, you can create a table from scratch by selecting Create new table.
Select Task from the Table list.
The Task table is one of the extensible tables available in the ServiceNow AI Platform.
The Task table is one of the commonly extended tables in the ServiceNow AI Platform. The Task table includes built-in functionality for approvals and assignments, which we need for the table in our tutorial application.
Select Continue.
Define the properties of your new table.
We define the following properties for the table in our tutorial:
Field Description Tutorial table properties Table label Unique label to identify the table. Travel requestTable name Database name for the table. Auto-populates based on the Table label that you provided. No action needed Table name prefix Database prefix for the table. Auto-populates based on the application that you created the table in. No action needed Make extensible Option to enable other tables to share data from this table. For more information, see Table extension. No action needed Auto-number Option to track table records with a unique number. Select the check mark Prefix Abbreviated name of the table to append to the beginning of record numbers. TRAStarting number Number to identify the first record created for your table. No action needed Number of digits Maximum number of digits for the record number. No action needed Select Continue.
Control who has access to content in the table by adding permissions to each existing role, or creating new roles.
Note: At least one role must have read access for you to be able to preview the table.
In our tutorial, we grant the following permissions to the admin and user roles.
| Role | Permissions |
|---|---|
| Admin | All |
| User |
|
Select Continue to add the roles to your new table.
Select Edit table to continue setting up your new table.
Result
You have created a table for your application.
What to do next
Complete the setup of your table by proceeding to the next phase: Configure a data table