top of page
Writer's picturesajan Allan Roy R

What does GlideFilter() filter?

Updated: May 28, 2021


The Scoped GlideFilter API provides a method to determine if a record meets a specified set of requirements.

There is no constructor for Scoped GlideFilter. It is accessed by using the global object "GlideFilter".


checkRecord(GlideRecord now_GR, String filter, Boolean match)

Compares a specified filter to the contents of a specified GlideRecord. If the specified filter contains one condition, the method returns true if the record meets the condition of the filter. If the specified filter contains more than one condition, for example "active=true^number=abc^category=request", you can use the match parameter to define whether all conditions must be met to determine a match or just a single condition.


50 views0 comments

Recent Posts

See All

Some Useful ServiceNow scripts

Set/generate a sys_id for a new record: setNewGuid() //generates a new sys_id for a new record setNewGuidValue("sys_id") //creates record...

Comments


bottom of page