Modules

filter

 

Objects/Functions

module (N/query)

SuiteScript 2.0

Query.root

// Please search https://system.netsuite.com/app/help/helpcenter.nl?search=Query.root for more information.

N/query Module
Query.root
Property Description: The root component of the query definition. The initial query.Component object is called the root component. It encapsulates the initial query type passed to query.create(options). The root component is automatically created with the query.Query object and is a child of the query.Query object.
Type: query.Component (read-only)
Module: N/query Module
Parent Object: query.Query
Sibling Object Members: Query Object Members
Since: 2018.1
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=Query.root

Example:

// Code Example 1
// Add additional code
//...
var myCustomerQuery = query.create({
type: query.Type.CUSTOMER
});

var theRoot = myCustomerQuery.root;
//...
// Add additional code

//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_1510781874.html