- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-20-2016 02:13 PM
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();
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-20-2016 02:32 PM
Thanks Abhinay. This is what worked:
data.url = "/table_list.do?sysparm_query=active=true^assignment_groupIN"+ gs.getUser().getMyGroups().toArray().join();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-07-2016 02:54 AM
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:
This is what they see in the native view list:
In Service Portal this is what's displaying
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