- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2019 04:33 PM
Hello community.
I would like to get the value from referenced field and display it as default value to the variable of record producer.
For example, I set default value to variable of record producer as below to get the 'name' value from user table .
And then I can confirm that the variable has 'name' value as default value on the portal.
However, I can't get the value 'department'.
Even if the same setting is made(gs.getUser().getRecord().getValue('department')), the department value cannot be obtained.
I appreciate if you could answer it.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2019 07:35 PM
try now.
javascript:gs.getUser().getRecord().getDisplayValue('department')

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2019 05:18 PM
Hi,
Can you try:
javascript:gs.getUser().getDepartmentID();
Please mark reply as Helpful/Correct, if applicable. Thanks!
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2019 06:02 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2019 06:22 PM
That's correct...so if you know that's a department field? Then make it a reference field to the departments? That way when you set the default value using the method I gave you, it nets you a department?
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2019 07:08 PM