Difference Between display and reference topicd

samsirii256
Mega Contributor

Hi Community,    

I am exploring service now and have queries related to display and reference topics

 

Reference field type is used to refer data from other table

For example, name-reference- user

Above for name field data shown from user table

My doubt is how we are displaying data as display value is false

 

In case of display value is true and if we refer that table to other table then it shows data

In case of display false how it works

And display and reference are related

2 ACCEPTED SOLUTIONS

Aditya_hublikar
Giga Sage

Hello @samsirii256 ,

 

In ServiceNow, Reference fields and Display fields are related but serve different purposes. A Reference field establishes a relationship between two tables and stores the sys_id of the referenced record. For example, if the Caller field in the Incident table references the User (sys_user) table, it stores the selected user's sys_id. The Display field determines which field value should be shown to users when a record is referenced. For example, if the Name field in the User table has Display = True, ServiceNow displays the user's name in the Caller reference field .

 

Also refer this : https://www.servicenow.com/community/servicenow-ai-platform-forum/why-is-the-display-value-of-some-f...

 

 

If this helps you then mark it as helpful and accept as solution .

Regards,
Aditya

View solution in original post

HasanM
Kilo Sage

Hi @samsirii256 ,

A reference field stores the sys_id. What it shows is the field marked Display = true on the referenced table (for sys_user, that's Name). So it's the Display setting on the referenced table that matters, not the one on your reference field. If no field is marked Display, the system falls back to a field called name, then number, and so on.

Reference: Select a field as the table display value

If this helped, please mark it as the accepted solution.

View solution in original post

4 REPLIES 4

Aditya_hublikar
Giga Sage

Hello @samsirii256 ,

 

In ServiceNow, Reference fields and Display fields are related but serve different purposes. A Reference field establishes a relationship between two tables and stores the sys_id of the referenced record. For example, if the Caller field in the Incident table references the User (sys_user) table, it stores the selected user's sys_id. The Display field determines which field value should be shown to users when a record is referenced. For example, if the Name field in the User table has Display = True, ServiceNow displays the user's name in the Caller reference field .

 

Also refer this : https://www.servicenow.com/community/servicenow-ai-platform-forum/why-is-the-display-value-of-some-f...

 

 

If this helps you then mark it as helpful and accept as solution .

Regards,
Aditya

Hi @Aditya_hublikar/@HasanM 

thanks for your inputs

HasanM
Kilo Sage

Hi @samsirii256 ,

A reference field stores the sys_id. What it shows is the field marked Display = true on the referenced table (for sys_user, that's Name). So it's the Display setting on the referenced table that matters, not the one on your reference field. If no field is marked Display, the system falls back to a field called name, then number, and so on.

Reference: Select a field as the table display value

If this helped, please mark it as the accepted solution.

Abhishek_W
Giga Guru

Hi @samsirii256 ,

 

A Reference field doesn’t store the name. It stores the sys_id of the record in the other table , which is the real value. The Display flag on a field in the referenced table  decides which column’s value is shown in place of the sys_id. Only one field per table can be marked Display as true. If no field has Display as true, ServiceNow falls back to showing the sys_id or a default, which is why you see the unreadable value.
So the Reference field is the link as it stores sy s_id, and Display is the label . When you set Display as false on a field, that field just isn’t used as the label; the reference still works through the sys_id.

If this response has helped you,accept ✔️ the solution , mark helpful 👍.

Regards,

Abhishek