Domain Display value - Can we display name only without path?

mattcox
Tera Contributor

Hello,

 

I'm working in a domain separated environment on my Helsinki instance and my users are complaining that it's too diffiuclt to determine domain in lists and form views. This is because the views are showing the full path of the domain so:

 

  TOP/Support Division/Customers/Big  Ones/CustomerA

 

When they want to show

   Customer A

 

I've scourered the community and documentation and cannot find out how to just display the short name on the domains.

 

Is it possible to just display the value of the "Name" field from the domain table in lists and the domain picker? Note that "Name" is what's labeled as the display value on the domain table already, but apparently there is some special behind-the-scenes code that is walking the domain tree and displaying the full path in the reference field display value.

1 ACCEPTED SOLUTION

shruti_tyagi
ServiceNow Employee
ServiceNow Employee

Hey Matt,



When you look in configure list or form layout we are Domain is actually sys_domain filed on domain table. If you go to domain table Domain (sys_domain) column and hierarchy. But in your case you want to show the Name of Domain rather than full hierarchy, in that case you can configure your form or list dot walk domain.name and you will see name for



Screen Shot 2018-01-12 at 11.37.23 AM.png



Screen Shot 2018-01-12 at 11.38.27 AM.png



I understand Column Label 'Name' can be little confusing for users. In that case you will need to do same thing you guys are discussing about to create new custom field and copy value of domain.name on that field. Did you tried to put default value in dictionary record something like 'current.domain.name'



Thanks


Shruti


If the reply was informational, please like, mark as helpful or mark as correct!


View solution in original post

13 REPLIES 13

Shishir Srivast
Mega Sage

I think, that's not possible. It takes the full name, Can we try to create one custom field and pass the Domain name there and set that field as display true.


Mrigank Gupta
Giga Expert

Hi Matt,



Service now system shows the whole hierarchy for the for the domain of the current record.


If you want to show it on the form, then its better to create a custom field and show the display value in it. I am not sure if by any way we can change the display values in the domain picker.



-Mrigank


Using a custom field is also showing the same behavior. In list views (which is where it's most critical) we're still seeing the whole domain path, even if we use our custom field as display.



Seems like there is something special in the code-path for displaying the domain name that walks the tree and provides the full path. It makes sense if you need to know exactly where something is (like in the domain picker I can see this), but it really makes it hard to read when you have multiple domains for a single client due to special security requirements (such as an EU division where staff must reside in the EU to view data).


how are you assigning the value in custom field?