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.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Update: Narrative Insights has been restored and is now available.
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
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