Modules

filter

 

Objects/Functions

module (N/task)

SuiteScript 2.0

SuiteQLTask.submit()

// Please search https://system.netsuite.com/app/help/helpcenter.nl?search=SuiteQLTask.submit() for more information.

N/task Module
SuiteQLTask.submit()
Method Description: Submits the SuiteQL task for asynchronous processing. This method returns a unique ID for the SuiteQL task. When the submission is successful, this method adds the script IDs of any dependent tasks (added using SuiteQLTask.addInboundDependency(options)) to the SuiteQLTask.inboundDependencies property. Use the task.SuiteQLTaskStatus object to view the status of a submitted SuiteQL task. The task.checkStatus(options) method returns a task.SuiteQLTaskStatus object when you specify a task ID that represents a SuiteQL task.
Returns: string
Supported Script Types: Server scripts For more information, see SuiteScript 2.0 Script Types.
Governance: 100 units
Module: N/task Module
Parent Object: task.SuiteQLTask
Sibling Object Members: SuiteQLTask Object Members
Since: 2020.2
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=SuiteQLTask.submit()

Example:

// Code Example 1
// Add additional code
//...
var mySuiteQLTask = task.create({
taskType: task.TaskType.SUITE_QL
});

// Set the properties of the mySuiteQLTask object

// Submit the task
var myTaskId = mySuiteQLTask.submit();

// Check the task status
var myStatus = task.checkStatus({
taskId: myTaskId
});
//...
// Add additional code

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