dataset.list()
Method Description |
Lists all existing datasets. |
Returns |
Object[], where each Object has properties: ‘id’, ‘name’, ‘record’, and an optional ‘description’. |
Supported Script Types |
Server scripts For more information, see SuiteScript 2.x Script Types. |
Governance |
10 units |
Module |
|
Sibling Module 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
...
var allDatasets = dataset.list();
log.debug({
title: 'List of datasets: ',
details: allDatasets
});
...
// Add additional code