Create the data model
Define the data for the Marketing Services application in ServiceNow Studio.
始める前に
Role required: admin
このタスクについて
The first step in creating an application is defining the data. This lab will use the table inheritance feature of the ServiceNow AI Platform and extend the system Task table for all requests. This will allow the Marketing Services application to access base fields and capabilities of the platform, such as assigning requests to users and asking for approvals.
手順
- Navigate to All > App Engine > ServiceNow Studio.
- Select Create > File.
- In the Application field, select the Marketing Services application.
- Select the Data category, and select Table.
- Select Continue.
- Select Create a blank table.
- Select Continue.
- Select Create from an extensible table.
- Select Continue.
- Select the Table field, then select the Task table from the list.
- Select Continue.
- In the Table label field, enter Marketing Design Request.
- Select the check box for Auto number.
-
In the Prefix field, enter MDREQ.
- Select Continue.
-
Set permissions for the Marketing Design Request table.
- For the default admin role, select the check box for All permissions.
-
For the default user role, select the check boxes for the following permissions.
- Create
- Read
- Write
- Select Continue.
- Select Edit table once the table is ready.
-
Close the Welcome to Table Builder dialog by either selecting the Close dialog icon
) or selecting Next to complete the tour of Table Builder features.
- Select + Add a new field to add a field to the Marketing Design Request table.
- In the Column label field, enter Project name, then press the Enter key.
-
Hover over the field and select the open side panel icon
.
- In the Properties side panel, select the check box for Mandatory.
- In the Max. length field, enter 160.
-
Select Save.
- Select + Add a new field to add another field to the table.
- In the Column label field, enter Special instructions and press the Enter key.
-
Hover over the field and select the open side panel icon
.
- In the Properties side panel, enter 400 in the Max. length field.
-
Select Save.
- Select + Add a new field to add another field to the table.
- In the Column label field, enter Design copy and press the Enter key.
-
Hover over the field and select the open side panel icon
.
- In the Properties side panel, enter 160 in the Max. length field.
-
Select Save.
- Select + Add a new field to add another field to the table.
- In the Column label field, enter Media type and press the Enter key.
-
Set the field type to Choice.
- Select the value in the Type column to open the field type list.
-
Enter Choice in the Type field or select Choice from the list of field types.
- Select the Choice type field, then select Dropdown with --None-- from the list.
- Select in the Choices field.
- Enter Digital, then press the Enter key or select Add to add the choice.
- Add another choice by selecting in the Choices field.
- Enter Print, then press the Enter key or select Add to add the choice.
- Select Done.
- Select + Add a new field to add another field to the table.
- In the Column label field, enter External and press the Enter key.
-
Set the field type to True/False.
- Select the value in the Type column to open the field type menu.
-
Enter True/False in the Type field or select True/False from the list of field type options.
-
Search for the existing State field by entering State in the Filter fields search bar.
-
Hover over the State field and select the open side panel icon
.
-
In the Properties side panel, expand the Choices section by selecting the expand icon
).
-
Select Edit.
注:If you see View instead of Edit, check to make sure that you're in the Global scope so you can edit the table.
-
In the Edit choices dialog, change the label for the Work in Progress field to Assigned by using the Backspace key (or keyboard shortcut) and entering
Assigned.
- Scroll down in the choices list, then select + Add a choice.
- In the Label field, enter Design complete.
- In the Value field, enter 8.
-
Select the move choice icon
) for the Design complete field and drag the field between the Assigned and Closed complete fields.
- Select Apply.
- In the Changing this will create an override dialog, select Confirm.
- Select Save to save your changes.