Modules
Objects/Functions
SuiteScript 2.0
// Please search https://system.netsuite.com/app/help/helpcenter.nl?search=Dataset.run() for more information.
N/dataset Module
Dataset.run()
Method Description:
Executes the dataset and returns the result set (the same as in N/query Module).
Returns:
query.ResultSet
Supported Script Types:
Server scripts
For more information, see SuiteScript 2.0 Script Types.
Governance:
10 units
Module:
N/dataset Module
Parent Object:
dataset.Dataset
Sibling Object Members:
Dataset Object Members
Since:
2020.2
Search NetSuite -
https://system.netsuite.com/app/help/helpcenter.nl?search=Dataset.run()
Example:
// Code Example 1
// 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
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_158948330969.html