March 2017
Beginner
358 pages
9h 51m
English
Here, on lines two and three, we add one NullQuery and one NotNullQuery, respectively:
var gr = new GlideRecord('sc_request'); gr.addNullQuery('assigned_to'); gr.addNotNullQuery('assignment_group'); gr.query(); while (gr.next()) { //do something }
In this case, our query will return results where the assignment_group field is populated, but the assigned_to field does not have a value.
Read now
Unlock full access