Michael Pope
07/01/2019, 11:37 PMMichael Mascitto
07/02/2019, 12:28 AMMichael Mascitto
07/02/2019, 12:30 AMbattk
07/02/2019, 2:50 AMbattk
07/02/2019, 2:51 AMbattk
07/02/2019, 2:53 AMbattk
07/02/2019, 2:53 AMMichael Pope
07/02/2019, 6:25 PMMichael Pope
07/02/2019, 6:26 PMMichael Pope
07/02/2019, 6:32 PMbattk
07/02/2019, 8:41 PM//stick filters here
var filters = [];
//stick columns here
var columns = [];
//you can change the type to something other than transaction
var search = nlapiCreateSearch("transaction", filters, columns);
var resultSet = search.runSearch();
var setIndex = 0;
do {
//get the next SearchResult array (and increment next_search_index)
var results = resultSet.getResults(setIndex, (setIndex += 1000)) || [];
//iterate through the results array
//consider just concating the results into another array
// to process after getting all search results
for (var index = 0; index < results.length; index++) {
//do your code with each result right here
var result = results[index];
}
} while (results.length);