Hierarchy for location field issue

Anish9515
Tera Contributor

In my form department reference field that is referred to custom department field that is u_department 

I'm unable to see hierarchy when i click on department field
In configure dictionary for department field I have added in attributes (tree_picker=true)

Is there any properties are enable to see hierarchy for custom table

Could you please help me on this issue?

 

 

4 REPLIES 4

JP - Kyndryl
Kilo Sage

Hi Anish,

In your u_department custom table,  did you define a Parent field referencing the u_department table and also having attribute tree_picker=true ?    Did you populate values on every parent records to constitute the hierarchy ?

 

Regards,
JP

In u_department table parent field refers to cmn_department table
I don't what to changes on parent field 

@Ankur Bawiskar 

Sandeep Rajput
Tera Patron
Tera Patron

@Anish9515 Ideally tree_picker=true should do the trick for you. Also, are you using any reference qualifier on your department field. 

 

Keep in mind, when utilizing the tree picker on fields that have reference qualifiers, there is a notable pitfall that needs to be avoided. When creating the reference qualifier to only show specific values, you must take care to include all parent values of values you want to include.

 

Source: https://pathwayscg.com/tree-picker-in-servicenow/

For example , I have created on PDI on below screen shot

Anish9515_1-1717647520639.png

 

In Reference refer to hierarchy table I have created new one table (u_hierarchy)
There is no reference qualifier in my configure

added to true_picker==true on attribute tab

Anish9515_2-1717647676320.png

In Hierarchy table parent field is referred to cmn_location

 

In incident form there is location field it's referred to u_hierarchy table
Whenever user clicks on location field hierarchy should visible

Anish9515_3-1717647873438.png

Anish9515_4-1717647905621.png

 

 

Could you help me on this issue 

Note: - In my location field refers to "u_hierarchy" , In hierarchy table parent field refers to "cmn_location"