ResultSet.columns
Note:
The content in this help topic pertains to SuiteScript 2.0.
Property Description |
An array of query return column references. The |
Type |
query.Column[] (read-only) |
Module |
|
Parent Object |
|
Sibling 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 theColumns = queryResultSet.columns;
...
// Add additional code