Modules

filter

 

Objects/Functions

module (N/task)

SuiteScript 2.0

task.SearchTaskStatus

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

N/task Module
task.SearchTaskStatus
Object Description: The status of an asynchronous search task (task.SearchTask) placed into the NetSuite task queue. To initiate the task and retrieve the task ID, use SearchTask.submit().
Supported Script Types: Server scripts For more information, see SuiteScript 2.0 Script Types.
Module: N/task Module
Since: 2017.1
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=task.SearchTaskStatus

Example:

// Code Example 1
// Add additional code
//...
var searchTaskStatus = task.checkStatus({
taskId: 51
});

if (searchTaskStatus.status === task.TaskStatus.FAILED) {
// Handle the task failure
}
//...
// Add additional code

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