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.
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