How to pass sysid of the workspace page to ui page?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2023 03:31 AM
Hi @Ankur Bawiskar @Community Alums @AndersBGS @Allen Andreas @Prince Arora @AnveshKumar M
I need to pass the sysid of the workspace page to the ui page normally we use set preference in glidedialogwindow but in workspace ui actions we use g_modal. can anyone please help me out how to pass sys_id of the workspace page to ui page through workspace ui action script.
Thanks in Advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2023 03:35 AM
workspace page sysId?
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-06-2023 03:37 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2023 03:45 AM
okay it's record sysId
in that case you can use this in workspace client script
var recordSysId = g_form.getUniqueValue();
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-06-2023 03:48 AM
function onClick(g_form) {
var ui_page_id = '0719e6dd978221109d6933121153af44';
g_modal.showFrame({
url: '/ui_page.do?sys_id=' + ui_page_id,
title: 'Assign',
size: 's',
height: 200,
});
Ok but how to pass this in script and how can i use that in ui page @Ankur Bawiskar