Dataset.run()

Note:

The content in this help topic applies to SuiteScript 2.x.

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.x Script Types.

Governance

10 units

Module

N/dataset Module

Parent Object

dataset.Dataset

Sibling Object Members

Dataset Object Members

Since

2020.2

Syntax

Important:

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.

            // 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 

          

Related Topics

dataset.Dataset
N/dataset Module
SuiteScript 2.x Modules
SuiteScript 2.x

General Notices