How to query glide list
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-20-2018 04:49 AM
Hi,
I am trying to query a Glide list field in group table.
I am trying to print list of records whose group type is not catalog. Here group type is glide_list.
How to achieve this.
7 REPLIES 7
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-20-2018 06:24 AM
Hi,
No luck. It is not working.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-20-2018 06:27 AM
It did work for me, What issue you are facing?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-20-2018 06:31 AM
I tried this from background scripts module and it returned me all groups with empty types and types which are not catalog
var group = new GlideRecord("sys_user_group");
group.addEncodedQuery("typeISEMPTY^ORtypeNOT LIKE74af88c6c611227d0066386e74dc853d");
group.query();
while(group.next()){
gs.log(group.name + "-"+ group.manager.getDisplayValue() + "-" +group.type.getDisplayValue());
}