Modules

filter

 

Objects/Functions

module (N/task)

SuiteScript 2.0

QueryTaskStatus.query

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

N/task Module
QueryTaskStatus.query
Property Description: Query definition for the submitted 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. This property references the same query that is specified by the QueryTask.query property in the corresponding task.QueryTask object.
Type: query.Query (read-only)
Supported Script Types: Server scripts For more information, see SuiteScript 2.0 Script Types.
Module: N/task Module
Parent Object: task.QueryTaskStatus
Sibling Object Members: QueryTaskStatus Object Members
Since: 2020.2
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=QueryTaskStatus.query

Example:

// Code Example 1
// Add additional code
//...
// myQueryTask is an existing task.QueryTask object
var myTaskId = myQueryTask.submit();

var myTaskStatus = task.checkStatus({
taskId: myTaskId
});

var theQuery = myTaskStatus.query;
//...
// Add additional code

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