Dynamic content blocks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2024 11:55 AM - edited 10-25-2024 11:58 AM
Hi
Need help on dynamic content blocks
I have 2 reference fields Select User and Select Group ,Based on the user selected I need the groups list where the selected user is part of should be populated
How to write script for this?Using dynamic content blocks
- Labels:
-
Performance Analytics
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2024 12:18 PM
Hi @Quratulain Adna ,
something like this in advanced ref qualifier
javascript: var query; var arr = []; var gr = new GlideRecord("sys_user_grmember"); gr.addQuery("group", current.variables.group_name); gr.query(); while (gr.next()) { arr.push(gr.getValue('user')); } query = 'sys_idIN' + arr.toString(); query;
Please hit like and mark my response as correct if that helps.
Regards,
Sumanth Meda
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2024 12:31 PM
looking for jelly script using dynamic content block