Dataset Object Members for SuiteAnalytics Workbooks
Dataset object members in SuiteAnalytics enable data manipulation and execution for workbooks, enhancing your data analysis capabilities.
TL;DR
The Dataset object in SuiteAnalytics encapsulates an entire dataset, providing methods and properties for efficient data manipulation and execution. Understanding its members will enhance your data analysis capabilities within workbooks.
What is the Dataset Object?
The Dataset object represents the collection of data that is used for generating insights within SuiteAnalytics workbooks. It simplifies data manipulation by allowing combinations of fields, filters, and conditions to create queries, serving as the backbone of visualizations within the NetSuite platform.
Dataset Object Members
The following members are associated with the dataset.Dataset object.
| Member Name | Type | Description |
|---|---|---|
| Dataset.getExpressionFromColumn(options) | workbook.Expression | Returns an expression that can be utilized in a workbook. |
| Dataset.run() | query.ResultSet | Executes the dataset and yields the result set, similar to the N/query module functionality. |
| Dataset.run.promise() | Promise Object | Asynchronously executes the dataset and provides the result set, akin to the N/query module. |
| Dataset.runPaged(options) | query.PagedData | Executes the dataset and returns the result in paginated format, following the N/query module pattern. |
| Dataset.save(options) | Object | Saves the current dataset configuration. |
| Dataset.columns | dataset.Column[] | The columns that comprise the dataset. |
| Dataset.condition | dataset.Condition | The criteria that governs the dataset filtering. |
| Dataset.description | string | A textual description of the dataset. |
| Dataset.id | string | Unique identifier for the dataset. |
| Dataset.name | string | The display name of the dataset. |
| Dataset.type | string | The internal identifier for the primary record type associated with the dataset. |
Code Examples
Creating a Dataset
The following code snippet illustrates how to create a basic and a comprehensive dataset using the dataset module:
1// Create a basic Dataset2var myDataset = dataset.create({3 type: 'transaction'4});5 6// Create a comprehensive (full) Dataset7var myDataset = dataset.create({8 type: 'transaction',9 name: 'My Transaction Dataset',10 id: 'custdataset_dataset',11 description: 'My comprehensive transaction dataset that includes columns and a condition',12 condition: myCondition, // Assume this is created using dataset.createCondition13 columns: [myColumns] // Assume this is created using dataset.createColumn14});Loading a Dataset
To load an existing dataset, you can use the following code:
1// Load a dataset and view its details2var myDataset = dataset.load({3 id: '1' // Replace with a valid ID for your account4});5var myDatasetDataset = myDataset.Dataset;6 7log.audit({8 title: 'Dataset columns = ',9 details: myDatasetDataset.columns10});11log.audit({12 title: 'Dataset condition = ',13 details: myDatasetDataset.condition14});15log.audit({16 title: 'Dataset description = ',17 details: myDatasetDataset.description18});19log.audit({20 title: 'Dataset id = ',21 details: myDatasetDataset.id22});Who This Affects
This information is particularly relevant for the following roles and stakeholders in NetSuite:
- Developers: They will use this data structure to create and manage datasets programmatically.
- Analytics Administrators: Responsible for creating and modifying datasets to support business analysis.
- Data Analysts: Partake in leveraging datasets for generating insights from various business metrics.
Key Takeaways
- The Dataset object is integral to SuiteAnalytics workbooks, enabling robust data manipulation.
- It provides several methods for executing tasks within datasets, including synchronous and asynchronous options.
- Understanding its properties helps maintain efficient dataset management for various business needs.
Source: This article is based on Oracle's official NetSuite documentation.
Frequently Asked Questions (4)
Do I need special permissions to use Dataset objects in SuiteAnalytics?
How can I load an existing dataset in SuiteScript?
What is the purpose of the Dataset.runPaged(options) member?
Is the Dataset object compatible with all SuiteAnalytics Workbook features?
Was this article helpful?
More in SuiteAnalytics
- Support for Consolidated Reports and SuiteQL Tool in
Discover support for consolidated reports and the new SuiteQL tool in NetSuite, enhancing reporting capabilities and metadata access.
- Artificial Intelligence Enhancements in NetSuite
Discover enhancements in Artificial Intelligence within NetSuite, including new insights and dashboard capabilities for improved analytics.
- Class, Department, Location Features in NetSuite 2026.1
Class, Department, and Location features enhance financial processes in NetSuite 2026.1 for improved insights and reporting.
- MCP Standard Tools Enhancements for NetSuite 2026.1
MCP Standard Tools enhancements for NetSuite 2026.1 improve reporting capabilities for multi-subsidiary organizations.
Advertising
Reach SuiteAnalytics Professionals
Put your product in front of NetSuite experts who work with SuiteAnalytics every day.
Sponsor This Category