Building a scheduled script to first search thru /...
# suitescript
m
Building a scheduled script to first search thru / filter item records and then work on them. As a rookie, trying to find the right code for
if(!!results)
so that it doesn't kick an error if no matches exist for the filters
Copy code
...
  var results = nlapiSearchRecord('kititem',null, filters, columns);

  if(!!results) {
    var count = results.length;
...