When using the GlideSPScriptable - getForm API, the value returned by Title is inconsistent:
- In tables such as Incident, the title value is the "Short Description"
- In tables such as Requested Item, the title value is "Number"
The global $sp object is used to access the GlideSPScriptable methods:
$sp.getForm("incident", "<the form sys_id>"); where the JSON title value is short description for the incident table.
The returned value for the title is based on finding a sys_ui_title record for a specific table, the Document Title list is located at:
<your instance name>.service-now.com/nav_to.do?uri=%2Fsys_ui_title_list.do
Navigate to the document title for the specific table (or create a new one) and ensure that the field "Fields" contains the desired value. For example check that the Incident table field is set to "Short Description":
<your instance name>.service-now.com/nav_to.do?uri=sys_ui_title.do?sys_id=d974a22347820100ba13a5554ee490f8