Display value at reference field

shun6
Giga Sage

Hi all,

I want to know which value would be displayed in reference field.

For example, User[sys_user] has department reference field and [name] value is displayed but when I check the Department[cmn_department] table configuration,  Display is set false at all fields.

In this case, how to be determined display value.

1 ACCEPTED SOLUTION

Sainath N
Mega Sage
Mega Sage

@shun6 : Please see the below information from other community article.

A reference field must have a display value and as the docs indicate if no field is set to display = true, the platform checks for other values.

Reference fields look for the display value in the following order:

  1. A field with display=true in the system dictionary on the lowest sub-table for extended tables.
  2. A field with display=true in the system dictionary on the parent table.
  3. A field named name or u_name.
  4. The Created on field of the referenced record.

https://www.servicenow.com/community/now-platform-forum/why-is-the-display-value-of-some-fields-set-...

Please mark this as correct answer and helpful if it resolved, or mark this helpful if this help you to reach towards solution.

View solution in original post

4 REPLIES 4

Sainath N
Mega Sage
Mega Sage

@shun6 : Please see the below information from other community article.

A reference field must have a display value and as the docs indicate if no field is set to display = true, the platform checks for other values.

Reference fields look for the display value in the following order:

  1. A field with display=true in the system dictionary on the lowest sub-table for extended tables.
  2. A field with display=true in the system dictionary on the parent table.
  3. A field named name or u_name.
  4. The Created on field of the referenced record.

https://www.servicenow.com/community/now-platform-forum/why-is-the-display-value-of-some-fields-set-...

Please mark this as correct answer and helpful if it resolved, or mark this helpful if this help you to reach towards solution.

@shun6 : As per the above explanation, as per #3, it shows name as display value from department[cmn_department] table.

 

Please mark this as correct answer and helpful if it resolved, or mark this helpful if this help you to reach towards solution.

 

shun6
Giga Sage

Thanks, It's very helpful !