Dataset.run.promise()
Method Description |
Asynchronously executes the dataset and returns the result set (the same as in N/query Module).
Note:
The parameters and errors thrown for this method are the same as those for Dataset.run(). For more information on promises, see Promise Object. |
Returns |
|
Synchronous Version |
|
Supported Script Types |
Server scripts For more information, see SuiteScript 2.x Script Types. |
Governance |
10 units |
Module |
|
Parent Object |
|
Sibling Object Members |
|
Since |
2020.2 |
Syntax
The following code sample shows the syntax for this member. It is not a functional example. For a complete promise script example, see Promise Object.
// Add additional code
...
// Load a dataset and run it
var myDataset = dataset.load({
id: myDatasetId
});
myDataset.run().promise().then(function(MyDataset){
log.audit({
title: 'My Result Set: ',
details: myDatasetResultSet
});
});
...
// Add additional code