dataset.loadDataset.promise(options)
Method Description |
Asynchronously loads an existing dataset.
Note:
The parameters and errors thrown for this method are the same as those for dataset.loadDataset(options). 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 |
|
Sibling Module Members |
|
Since |
2020.2 |
Parameters
The options
parameter is a JavaScript object.
Parameter |
Type |
Required / Optional |
Description |
---|---|---|---|
|
string |
required |
The ID of the dataset to load. |
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
...
dataset.loadDataset.promise({
id: myDatasetId // Use a script ID from an existing script
}).then(function(dataset){
// process the dataset object
});
...
// Add additional code