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.Anyone had a similar situation - or am I overlooking something simple here?