Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

How to convert Assignment Group | is (dynamic) | One of my groups into a URL query

reginabautista
Kilo Sage

Hi guys

Would you know how to convert this condition "Assignment Group | is (dynamic) | One of my groups" into a URL query? I need to pass it to my data.url object within Service Portal.

Here's what I tried so far but it's not working at the moment..

data.url = '/table_list.do?sysparm_query=active=true^assignment_group=' + gs.getUser().getMyGroups().toArray().join();

1 ACCEPTED SOLUTION

reginabautista
Kilo Sage

Thanks Abhinay. This is what worked:


data.url = "/table_list.do?sysparm_query=active=true^assignment_groupIN"+ gs.getUser().getMyGroups().toArray().join();


View solution in original post

10 REPLIES 10

Hi guys, a user has reported an issue about the filtering. He said he can see records in the native UI but not in Service Portal:



This is the filtering in native UI menu:


find_real_file.png



This is what they see in the native view list:


find_real_file.png



In Service Portal this is what's displaying


find_real_file.png



This is my code in the SP:


data.url = "/u_tablex_list.do?sysparm_query=active=true^assigned_to=''^assignment_groupIN"+ gs.getUser().getMyGroups().toArray().join();


How do I update the URL to display as IS and not IN??



Greatly appreciate your help.



Thanks


Regina