Modules
Objects/Functions
SuiteScript 2.0
// Please search https://system.netsuite.com/app/help/helpcenter.nl?search=QueryTask.query for more information.
N/task Module
QueryTask.query
Property Description:
Query definition for the query task.
The query definition is a query.Query object. To use this object, you must load the N/query module in your script and create a query using query.create(options) or load a query using query.load(options). For more information, see N/query Module.
Type:
query.Query
Supported Script Types:
Server scripts
For more information, see SuiteScript 2.0 Script Types.
Module:
N/task Module
Parent Object:
task.QueryTask
Sibling Object Members:
QueryTask Object Members
Since:
2020.2
Search NetSuite -
https://system.netsuite.com/app/help/helpcenter.nl?search=QueryTask.query
Example:
// Code Example 1
// Add additional code
//...
var myQueryTask = task.create({
taskType: task.TaskType.QUERY
});
// myQuery is an existing query.Query object created using the N/query module
myQueryTask.query = myQuery;
//...
// Add additional code
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_159223782030.html