task.QueryTaskStatus
Object Description |
Status of a query task (task.QueryTask) in the NetSuite task queue. You create a
Important:
Ensure that you are familiar with script execution time limits when creating tasks. Each server script type is limited to an amount of time it can run on a single execution. For more information, see the time limit chart on Script Execution Time Limits. |
Supported Script Types |
Server scripts For more information, see SuiteScript 2.x Script Types. |
Module |
|
Methods and Properties |
|
Since |
2020.2 |
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
});
...
// Add additional code