<@U373C5U11> I'll whip up and example of how we'd...
# suitescript
s
@jmacdonald I'll whip up and example of how we'd typically write a restlet that returns search results like yours. That entire script snippet you posted would be as simple as
Copy code
return lazy.createSearch('salesorder', [
  ['mainline', 'is', 'F'] ,'AND', ['internalid', 'is', '1']],
  [['item'], ['quantity'], ['amount']])
  .nsSearchResult2obj().toArray()