In the POST of a Suitelet, I am doing something li...
# suitescript
m
In the POST of a Suitelet, I am doing something like this on saved search results:
itemfulfillmentSearchObj.run().each(function(result, key){
...
}
I was hoping to set a sublist line value with key, but it logs empty. I often used getRange() on search results and then do my own loop if needed after I do anything I need to the data, but in this case because of the number of results I need to use the each() on the run() but it doesn't look like the key exists. Is that correct? Am I missing something obvious here? Thank you!
e
There's no second parameter passed to the callback in ResultSet.each, so you're not missing anything.
m
Thank you Eric. I was hoping they had a key included, but I guess not. I wrote a work around.
1