N/dataset module in netsuite

The N/dataset module in NetSuite SuiteScript 2.x is used to execute SuiteAnalytics Workbooks and retrieve their results programmatically. It provides developers with the ability to interact with datasets created in SuiteAnalytics, such as filtering data, extracting results, and analyzing the data from NetSuite records without manually running reports.

Key Features of the N/dataset Module:

  • Access to SuiteAnalytics Workbooks: Allows you to retrieve data directly from SuiteAnalytics datasets.
  • Data Extraction: Fetches results for reporting, data analysis, or other programmatic needs.
  • Filtering: Lets you add filters to refine your dataset queries.
  • Sorting and Pagination: Supports sorting data and paginating results, making it ideal for handling large data sets.

Important Methods in the N/dataset Module:

  1. load()
  2. run()
  3. runPaged()
  4. addFilter()
  5. addSortColumn()

Leave a comment

Your email address will not be published. Required fields are marked *