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

oh yeah, that can be done using dotwalking. it didn't strike to me.  



Shruti,



Of course, I can just dot-walk to the domain record and display the name. Didn't even think of that. Not super ideal (as I'll have to adjust all the list layouts and teach my users how to personalize in this way), but better than what we have now.



I'll run this past my QA team and see if it satisfies the requirements.



Thanks for the help!



Matt


shruti_tyagi
ServiceNow Employee
ServiceNow Employee

Perfect,



If your question is addressed, can you please close this discussion by marking correct answer.



Shruti