How are you executing the search in your script?
# general
r
How are you executing the search in your script?
s
Thanks for the response! Nothin' too crazy. I got a search.load({id:searchid}) Then when I run the number of pages, I get zero
r
I think you missing the last step. It should look like this
var rec = nlapiLoadSearch(null, 1234); var res = rec.runSearch().getResults(0, 100);
res will have all the results.
Try these cmds in the NS UI console first before running the complete script.