Result.values

Note:

The content in this help topic pertains to SuiteScript 2.0.

Property Description

The result values. Value types correspond to the ResultSet.types property. Array values correspond to the array values for ResultSet.columns.

Type

Array<string | number | boolean | null> (read-only)

Module

N/query Module

Parent Object

query.Result

Sibling Object Members

Result Object Members

Since

2018.1

Syntax

Important:

The following code sample shows the syntax for this member. It is not a functional example. For a complete script example, see N/query Module Script Samples.

            // Add additional code
...
var myCustomerQuery = query.create({ type: query.Type.CUSTOMER
}); myCustomerQuery.columns = [ myCustomerQuery.createColumn({ fieldId: 'entityid' }), myCustomerQuery.createColumn({ fieldId: 'email' })
]; var queryResultSet = myCustomerQuery.run(); var queryResults = queryResultSet.results;
var myFirstResult = queryResults[0];
var theValues = myFirstResult.values;
...
// Add additional code 

          

Related Topics

query.Query
N/query Module
SuiteScript 2.x Modules
SuiteScript 2.x

General Notices