Dataset.run()
Method Description |
Executes the dataset and returns the result set (the same as in N/query Module). |
Returns |
|
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 script example, see N/dataset Module Script Samples. Also see the Tutorial: Creating a Dataset Using the Workbook API topic.
// Add additional code
...
// Load a dataset and run it
var myDataset = dataset.load({
id: myDatasetId
});
var myDatasetResultSet = myDataset.run();
log.audit({
title: 'My Result Set: ',
details: myDatasetResultSet
});
...
// Add additional code