- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2025 10:56 AM - edited 06-21-2025 10:57 AM
Hi @aviavillan ,
I hope this solution will work for you
Instead of hardcoding the CAB Meeting ID in your Jelly script, replace this line:
cbgr.addEncodedQuery("cab_meeting=ddb4a4ef5ca712104f3496f8659cf639");With this at the top of your Jelly page:
<g:evaluate var="jvar_cabMeetingId">
RP.getWindowProperties().get('cab_meeting_sys_id');
</g:evaluate>Then use:
cbgr.addQuery("cab_meeting", jvar_cabMeetingId);This will make your page dynamically use the CAB Meeting ID passed from the UI Action.
Thanks and regards,
Siddhesh Jadhav
Please mark my answer helpful and accepted if it solved your problem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2025 11:29 AM
Hi @aviavillan ,
Here’s a working example I used on the Incident table to pass the assignment_group sys_id to a UI Page and display the group name using Jelly.
UI Action Script:
function openAssignmentGroupDialog() {
var groupId = g_form.getValue('assignment_group');
alert(groupId); // just to verify
var dialog = new GlideDialogWindow('attendee_notifications_popup');
dialog.setTitle('Assignment Group Info');
dialog.setPreference('assignment_group_sys_id', groupId);
dialog.render();
}UI Page Jelly Code:
<?xml version="1.0" encoding="utf-8"?>
<j:jelly trim="true" xmlns:j="jelly:core" xmlns:g="glide">
<!-- Get sys_id from dialog preference -->
<g:evaluate var="jvar_groupId">
RP.getWindowProperties().get('assignment_group_sys_id');
</g:evaluate>
<!-- Get group name using sys_id -->
<g:evaluate var="jvar_groupName">
var name = '';
var gr = new GlideRecord('sys_user_group');
if (gr.get('${jvar_groupId}')) {
name = gr.getValue('name');
}
name;
</g:evaluate>
<p><strong>Assignment Group Name:</strong> ${jvar_groupName}</p>
<p><strong>Assignment Group sysId:</strong> ${jvar_groupId}</p>
</j:jelly>This approach works perfectly for showing reference values in a UI Page passed via GlideDialogWindow.
Let me know if you need help expanding this!
Thanks and regards,
Siddhesh Jadhav
Please mark my answer helpful and accepted if it solved your problem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-22-2025 09:27 PM
Hi @aviavillan ,
Just checking in — did this solution work for you?
If it helped resolve your issue, kindly mark it as Accepted.
Let me know if you need any further assistance!
Thanks and regards,
Siddhesh Jadhav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2025 05:21 AM
you can pass sysId from UI action to UI page using this syntax and grab it and then use it further to set in glidelist macro
UI Action: How to send
dialog.setPreference('sysid', '<Your SysId>');
UI Page:
<g:evaluate var="jvar_sysid" expression="RP.getWindowProperties().sysid"/>
<g:evaluate jelly="true" object="true" var="jvar_attendeearray">
var sysId = jelly.jvar_sysId;
// now use this to query and hold the user sysIds in array and use in macro
</g:evaluate>
<g:macro_invoke macro="lightweight_glide_list" id="change_subsystem" name="change_subsystem" control_name="myListCollector" reference="sys_user" can_write="true" control_name="QUERY:active=true^sys_idIN${jvar_attendeearray}" />
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-22-2025 07:28 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 || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader