Step 3: Execute the Query

  • Use the query() method to execute the query
  • Returns zero or more rows
  • Each record returned is a GlideRecord object
var myObj = new GlideRecord('change_request');
myObj.addQuery('category', '=', 'Hardware');
myObj.addQuety('priority', '!=', 1);
myObj.query();

The query() method provides the same functionality as the query() method. It is intended to be used on tables where there is a column named 'query', which would interfere with using the query() method.

results matching ""

    No results matching ""