i think it's funny you have to return true every t...
# suitescript
r
i think it's funny you have to return true every time using each() on a saved search run(). seems like the developer should be tasked with ending a loop prematurely.
👍 1
😡 1
e
I hate this API design
each
should always go through every element of the array
takeWhile
is a loop that can end prematurely
(long way of saying I agree with you 🙂 )
s
I tend to avoid NS each() and just use getRange() and pass those results through something more advanced than NS
(and it can support more than 4000 results by getRange()ing 1000 at a time)
r
Ya but in the Netsuite documentation , thats exactly what they ask you to do (i.e, page through 1k results at a time)
s
From my interaction with NS support,
getRange()
should perform identically to
runPaged()...