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
Result.getValue fails when trying to retrieve a column
I've created a script where I am running a search and then formatting the output for the user. This search has two columns that are formula numeric, so I need to use getValue(column) to get the data. To debug I'm just trying to grab a value and spit it out to the execution log as so
var currentResult = salesResults[0]; log.debug({ title: 'Customer', details: currentResult.getValue({column: currentResult.columns[0]}) });I've tried logging out currentResult and it is correct.
However, this always generates an error Result.getText: Missing a required argument: name". I can successfully grab the data if I use the .getValue(name: 'foo', summary: 'group') but that will only allow me to retrieve the first formula numeric column.
0