- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2017 04:54 PM
Hello
We are on Jakarta. I have a need to filter out IP address which starts with 172.
How can I add to my query? Any help on syntax would greatly appreciated.
rec.addQuery('ip_address', 'STARTSWITH','172.'); ( I want to add query like this but with negation i.e. Does not Starts with)
Thanks,
Rajan Mehta
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2017 07:56 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2017 05:36 PM
How to create one custom filter "NOT Start with"
This post might help you
Please mark my response as correct and helpful if it helped solved your question.
-Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2017 06:54 PM
Thanks Prateek for your response.
I will look into your example you have mentioned.
I am looking for Glide record query.
Thanks,
Rajan Mehta

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2017 05:37 PM
can we try something like this,
var rec = new GlideRecord('table_name');
rec.query();
while(rec.next()){
if(rec.getValue('ip_address').substring(0.3) != '172'){
//write your code here;
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2017 06:53 PM
Thanks Shishir,
That work around did work. So but there isn't direct query filter for this, right?
Thanks,
Rajan Mehta

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2017 07:25 PM
yes, that's not the direct query but using predefined javascript function we can filter out the not required data.