Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Getting result values off of a search resultset, getValue method fails
EDIT:
Problem gone. In my saved search there were a couple of lines where these 2 custom fields were empty, which resulted in every line of that column being empty when I tried to retrieve it through code, once I filtered away these in the saved search, the problem was gone and I retrieved values as intended.
Sorry for the both vague and redundant topic title but that's the best way I can describe the problem in 1 sentence.
I am currently running a saved searched through code.
var savedSearch = 'customsearch602'; // id-string var mySearch = search.load({ id: savedSearch }); var resultset = mySearch.run(); var results = resultset.getRange({ start: 0, end: 1000 }); // resultset returned as an array
Tagged:
0