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 06:07 AM
since it's OOTB change_request, should the field name not be u_main_owner?
Also is that field present in workspace view?
share the field config photo for that
It worked for me for Caller Field
I even created custom field referring to sys_user and kept that in Service Operations workspace view and it worked fine
Field name - u_main_owner
Output
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 08:52 AM
There is no field on table , I am creating main_owner on ui page and calling it via ui action. The value in this field will be used in other logics via script include.
There is no field called owner or main owner on change request.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2025 08:58 AM
this is the full code , none of the fields are on change request table , for normal ui action I created a ui page and on them I have created these, but for workspace I am using below code:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2025 08:26 PM
As already informed there should be a field on form with that name which refers sys_user, then only it will work.
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:01 AM
Use the same field name in the onclick function.
Below code is written for caller_id field