I want to process first set of thousand records and then next set of thousand records from the search results obtained from the Search Results .
i'm getting the first set of thousand records using the method available in suitescript 2.0 version'N/search' module's Method (getRange(0,1000)).
CODE:
var mySearch = search.load({
id: 'customsearch_employee'
});
var searchResult = mySearch.run().getRange(0, 100);
for (var i = 0; i < searchResult.length; i++) {
var entity = searchResult[i].getValue({
name: 'entity'
});
});
I want know how to process next set of thousand records using the for loops. thanks in advance
