sys_id instead of value displayed

jean-pauldehaas
Tera Guru

Hi all,

 

i have a catalog item as follows:

variable 1: Owner of the team (reference to sys_user)

variable 2: email address (single line)

variable 3: organization (singe line)

 

Variable 2 and 3 should change when variables  1 changes, this works for both only variable 3 is displayed with the sys_id of the organization.

find_real_file.png

Catalog client script used:

 

find_real_file.png

 

what am i doing wrong here ?

1 ACCEPTED SOLUTION

Jaspal Singh
Mega Patron
Mega Patron

You need to change the Organization variable to be of type Reference instead of Single line text.

View solution in original post

12 REPLIES 12

Jaspal Singh
Mega Patron
Mega Patron

You need to change the Organization variable to be of type Reference instead of Single line text.

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

2 ways

1) change the variable type Organization as reference to the table which is being referred by field u_organization

2) use GlideAjax + Script include along with onChange client script to get the display value of organization

You can decide which approach suits you and do the needful

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

hi,

 

i changed it to a reference field that looks at the sys_user table but now it stays empty on the catalog item

Reference has to be to the table that Organization field is referenced to on the User table & not reference to User table itself.

ahhh so more like this:

find_real_file.png