Modules
Objects/Functions
SuiteScript 2.0
{task}.checkStatus({taskId: {string*}})
N/task Module
task.checkStatus()
Method Description:
Returns a task status object associated with a specific task ID.
You can check the status of the following task types:
CSV import
Entity deduplication
Map/reduce script
Query
Record action
Scheduled script
Search
SuiteQL
Workflow trigger
Returns:
task.CsvImportTaskStatus | task.EntityDeduplicationTaskStatus | task.MapReduceScriptTaskStatus | task.QueryTaskStatus | task.RecordActionTaskStatus | task.ScheduledScriptTaskStatus | task.SearchTaskStatus | task.SuiteQLTaskStatus | task.WorkflowTriggerTaskStatus
Supported Script Types:
Server scripts
For more information, see SuiteScript 2.0 Script Types.
Governance:
None
Module:
N/task Module
Since:
2015.2
Search NetSuite -
https://system.netsuite.com/app/help/helpcenter.nl?search=task.checkStatus(options)
Example:
// Code Example 1
// Add additional code
//...
var myTask = task.create({
taskType: task.TaskType.QUERY
});
// Set the properties of the myTask object
// Submit the task
var myTaskId = myTask.submit();
// Check the status
var myTaskStatus = task.checkStatus({
taskId: myTaskId
});
//...
// Add additional code
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4345805891.html