- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2023 08:25 PM - edited 04-04-2023 01:28 AM
I have Created a UI page - test_page.
And i have a UI action Button - testReassign.
On clicking test Button the UI page should pop up in the Service operations workspace .
what script should i write in the UI action button to populate that UI page ?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2023 08:27 PM
this is the syntax
var ui_page_id = '<sys_id_of_your_ui_page>';
g_modal.showFrame({
url: '/ui_page.do?sys_id=' + ui_page_id,
title: 'Attachments',
size: 'xl',
height: 500
});
reference: UI page on Agent workspace
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
04-03-2023 08:27 PM
this is the syntax
var ui_page_id = '<sys_id_of_your_ui_page>';
g_modal.showFrame({
url: '/ui_page.do?sys_id=' + ui_page_id,
title: 'Attachments',
size: 'xl',
height: 500
});
reference: UI page on Agent workspace
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
04-03-2023 08:51 PM
Thank you for marking my response as helpful.
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
09-03-2024 03:24 AM
Hello Ankur,
type: 'reference', name: 'caller_id', label: getMessage('What is your name?'), mandatory: true, reference: 'sys_user', referringTable: 'incident', referringRecordId: g_form.getUniqueValue(), value: g_form.getValue('caller_id'), displayValue: g_form.getDisplayValue('caller_id')
How can I use this code for watchlist field of case record on agent workspace?
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2025 04:00 AM
HI Ankur, I am able to see the pop-up, but can you please help me out with how we can pass some values from Client script to UI Page for Service Operations Workspace.