task.QueryTask

Note:

The content in this help topic pertains to SuiteScript 2.0.

Object Description

An asynchronous query task. Use the methods and properties for this object to submit a query task to the NetSuite task queue and execute it asynchronously.

You can create a task.QueryTask object using task.create(options). You can populate the properties of this object as you create it. With a task.QueryTask object, you can do the following:

Supported Script Types

Server scripts

For more information, see SuiteScript 2.x Script Types.

Module

N/task Module

Methods and Properties

QueryTask Object Members

Since

2020.2

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/task Module Script Samples.

            // Add additional code
...
var myQueryTask = task.create({
    taskType: task.TaskType.QUERY
});
...
// Add additional code 

          

Related Topics

N/task Module
SuiteScript 2.x Modules
SuiteScript 2.x

General Notices