query.ResultSet
The content in this help topic pertains to SuiteScript 2.0.
Object Description |
The set of results returned by the query. Use Query.run() or Query.run.promise() to create this object. The maximum number of results in a |
Supported Script Types |
Client and server scripts For more information, see SuiteScript 2.x Script Types. |
Module |
|
Methods and Properties |
|
Since |
2018.1 |
Syntax
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 resultSet = myCustomerQuery.run();
var results = resultSet.results;
for (var i = results.length - 1; i >= 0; i--)
log.debug(results[i].values);
...
// Add additional code