Modules
Objects/Functions
SuiteScript 2.0
// Please search https://system.netsuite.com/app/help/helpcenter.nl?search=task.QueryTaskStatus for more information.
N/task Module
task.QueryTaskStatus
Object Description:
Status of a query task (task.QueryTask) in the NetSuite task queue.
You create a task.QueryTaskStatus object using task.checkStatus(options). To check the status of a query task, you must provide the task ID of the query task. To submit a query task and obtain the task ID, use QueryTask.submit().
Supported Script Types:
Server scripts
For more information, see SuiteScript 2.0 Script Types.
Module:
N/task Module
Methods and Properties:
QueryTaskStatus Object Members
Since:
2020.2
Search NetSuite -
https://system.netsuite.com/app/help/helpcenter.nl?search=task.QueryTaskStatus
Example:
// Code Example 1
// Add additional code
//...
// myQueryTask is an existing task.QueryTask object
var myTaskId = myQueryTask.submit();
var myTaskStatus = task.checkStatus({
taskId: myTaskId
});
//...
// Add additional code
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_159223798559.html