dataset.load(options)

Method Description

Loads an existing dataset.

Returns

dataset.Dataset

Supported Script Types

Server scripts

For more information, see SuiteScript 2.x Script Types.

Governance

10 units

Module

N/dataset Module

Sibling Module Members

N/dataset Module Members

Since

2020.2

Parameters

Note:

The options parameter is a JavaScript object.

Parameter

Type

Required / Optional

Description

options.id

string

required

The ID of the dataset to load.

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. Also see the Tutorial: Creating a Dataset Using the Workbook API topic.

            // Add additional code
...
var myLoadedDataset = dataset.load({
    id: myDatasetId    // Use a script ID from an existing script
});

log.debug({
    title: 'My Loaded Dataset: ',
    details: myLoadedDataset
...
// Add additional code 

          

Related Topics

General Notices