Notifications

43 views

Issue

Symptoms

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.

Releases

All.

Cause

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

Resolution

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

Additional Information

GlideSPScriptable API:

https://developer.servicenow.com/app.do#!/api_doc?v=jakarta&id=c_GlideSPScriptableScopedAPI

Article Information

Last Updated:2019-08-02 20:48:53
Published:2019-05-05