Reference field on ui page called via UI action on workspace is not displaying results
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2025 11:34 PM
HI Team,
I’ve created a UI Page that includes a reference field pointing to the User (sys_user) table, and it is being triggered via a UI Action on the Change form. The functionality works as expected in the standard platform view.
However, when accessed from Service Operations Workspace, the reference field does not return any user results.
below is the code used in UI action (workspace client script) for workspace :
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2025 01:59 AM
are you checking with admin or non-admin?
for workspace you must have written workspace client script and used g_modal.showFields()
it works differently here.
Check how reference fields work in OOTB "Copy Incident" button and do changes in yours
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2025 02:10 AM
HI @Ankur Bawiskar ,
I am checking as admin and I am using below code :
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2025 02:34 AM - edited 07-25-2025 02:36 AM
your current form has main_owner as a field which refers to sys_user? is that field name correct?
So reference field is seen but you can't select anything there?
try to hard-code the referringTable
referringTable: 'yourTableName',
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2025 04:06 AM
yes field name is correct and I have tried hard coding by giving 'change_request' as referring table but it did not work.