SuiteQLTask.inboundDependencies
Property Description |
Key-value pairs that contain information about the dependent tasks added to the SuiteQL task. Use this property to verify the properties of dependent tasks after you add the tasks using SuiteQLTask.addInboundDependency(options). This property uses nested objects to store information about each dependent task. A nested object is included for each dependent task added to the SuiteQL task, and these objects are referenced by their index (starting at 0). Dependent tasks are indexed in the order they are added to the SuiteQL task. Each nested object contains the task type, script ID, script deployment ID, and script parameters. For example, consider a situation in which you add a scheduled script task and a map/reduce script task to a SuiteQL task as dependent tasks. After you add the dependent tasks but before you submit the SuiteQL task using QueryTask.submit(), the value of the
After you submit the SuiteQL task, the IDs of the dependent scripts are added to the
|
Type |
Object[] (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.SuiteQLTask 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
...
// Be sure to use a script ID that represents a scheduled script in your account
var myScheduledScript = task.create({
taskType: task.TaskType.SCHEDULED_SCRIPT,
scriptId: 'customscript_as_ftr_ss'
});
// mySuiteQLTask is an existing task.SuiteQLTask object
mySuiteQLTask.addInboundDependency(myScheduledScript);
...
// Add additional code