How to get department Name from caller field on incident Form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2018 03:55 AM
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.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2018 10:43 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2018 10:49 PM
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 .

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2018 10:54 PM
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..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2021 06:39 AM
wrong input, it show in alert box only blank value please correct answer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2018 10:49 AM
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