Modules

filter

 

Objects/Functions

module (N/workbook)

SuiteScript 2.0

Workbook.runTable(options)

{Workbook}.runTable({id: {string*}})

N/workbook Module
Workbook.runTable()
Method Description: Executes the table and returns the result set (the same as in N/query Module).
Returns: query.ResultSet
Supported Script Types: Server scripts For more information, see SuiteScript 2.0 Script Types.
Governance: 10 units
Module: N/workbook Module
Parent Object: workbook.Workbook
Sibling Object Members: Workbook Object Members
Since: 2020.2
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=Workbook.runTable(options)

Example:

// Code Example 1
// Add additional code
//...
var myWorkbook = workbook.load({
id: myWorkbookId,
});
var myResultSet = myWorkbook.runTable({
id: myTableId,
});
log.debug({
title: 'My Run Table Result Set: ',
details: myResultSet
});
//...
// Add additional code

//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_159068644727.html