How to get current domain name which is set by domain picker using script.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2022 01:33 AM
Hi All,
Is there any way where I can get the current domain name which is set in the domain picker using script.
Thank you in advance.
1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2022 06:05 PM
I use this as a display business rule on the task table, very handy to have when needed.
g_scratchpad.user_domain = {id: gs.getUser().getDomainID(), display: gs.getUser().getDomainDisplayValue()};
g_scratchpad.task_domain = {id: current.sys_domain.getValue(), display: current.sys_domain.getDisplayValue()};