How to get department Name from caller field on incident Form

home
Kilo Contributor

Hi Team,

So a query is, how to get department name of user on incident form from caller reference field on a text field in incident form(or alert will also do)?

As Caller is a reference field & department inside it is also a reference field, so i am finding a difficulty in getting a name of department on form through client script with glideRecord.

a sample script will be very heplful.

Thanks.

20 REPLIES 20

one more point i would like to add here. you can achieve it without using script.


Right click on form header>> form layout>> check for caller >> click on "+" icon and you will be see the department . select it and move it to selected slush bucket. it will appear as caller.department there.



checks.png



check1.png


Hi Harsh,



That way will do but i need to find a reason that why i am getting sys_id when everything is on right path .




I always prefer to find a solution of problem in my way rather than alternate way.


Thanks   .


just because department is also a reference field and you are selecting caller department then it will give you the sys id?


in this case you need to use glide ajax as michael as already suggested you..


Let me know if you have any further question..


wrong input, it show in alert box only blank value please correct answer.

Rajesh Mushke
Mega Sage
Mega Sage

Hey Rahul,


do you want get the department of the user?




Thanks,
Rajashekhar Mushke
Rising star : 2022 - 2024
Community Leader -2018
Connect me on LinkedIn : Rajashekhar Mushke