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) |
Module |
|
Parent Object |
|
Sibling Object Members |
|
Since |
2020.2 |
Errors
Error Code |
Thrown If |
---|---|
|
You try to set the value of this property after the task.QueryTaskStatus object is created. |
Syntax
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
...
// myQueryTask is an existing task.QueryTask object
var myTaskId = myQueryTask.submit();
var myTaskStatus = task.checkStatus({
taskId: myTaskId
});
var theQuery = myTaskStatus.query;
...
// Add additional code