SuiteQLTaskStatus.taskId
Property Description |
ID of the submitted SuiteQL task. This property references the same task ID that is returned by SuiteQLTask.submit() when you submit the task for asynchronous processing. |
Type |
string (read-only) |
Module |
|
Parent Object |
|
Sibling Object Members |
|
Since |
2020.2 |
Errors
Error Code |
Thrown If |
---|---|
|
You try to set the value of this property after the task.SuiteQLTaskStatus object is created. |
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
...
// mySuiteQLTask is an existing task.SuiteQLTask object
var myTaskId = mySuiteQLTask.submit();
var myTaskStatus = task.checkStatus({
taskId: myTaskId
});
var theTaskId = myTaskStatus.taskId;
...
// Add additional code