Dynamically filter List Collector variable to show group members based on previous variable?

JR42
Giga Guru

Hi, I have a Reference variable ('group') where the user selects a group from sys_user_group.

I have a second variable ('remove_selected_members') that is a List Collector for the sys_user_grmember table, which I want to automatically filter based on the group selected in the first variable.  Nothing I've tried so far (ref qualifiers, client scripts) has worked and I feel like I'm just spinning my wheels.  Any help would be greatly appreciated!

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron

@JR42 

this advanced ref qualifier will work on 2nd variable which is a list collector

javascript:'group=' + current.variables.group;

Ensure you give this in variable attributes of that list collector

ref_qual_elements=group

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

3 REPLIES 3

vermaamit16
Kilo Patron

Hi @JR42 

 

Please refer below posts for your requirement:

Dynamically set list collector on change of variab... - ServiceNow Community

Solved: Populate list collector value of a reference field... - ServiceNow Community

 

Thanks and Regards

Amit Verma

Thanks and Regards
Amit Verma

Ankur Bawiskar
Tera Patron

@JR42 

this advanced ref qualifier will work on 2nd variable which is a list collector

javascript:'group=' + current.variables.group;

Ensure you give this in variable attributes of that list collector

ref_qual_elements=group

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

Thanks, Ankur! Exactly what I needed.