Dynamic content blocks

Quratulain Adna
Tera Contributor

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

 

 

2 REPLIES 2

Sumanth16
Kilo Patron

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

looking for jelly script using dynamic content block