query.listTables(options)
Method Description |
Lists the table view objects that are included in a workbook in SuiteAnalytics Workbook. This method returns an of Objects. Each Object represents a table view and includes the following properties with associated values:
|
Returns |
<Object> |
Supported Script Types |
Client and server scripts For more information, see SuiteScript 2.x Script Types. |
Governance |
None |
Module |
|
Sibling Module Members |
|
Since |
2020.1 |
Parameters
The options
parameter is a JavaScript object.
Parameter |
Type |
Required / Optional |
Description |
---|---|---|---|
|
string |
required |
The ID of the workbook containing the table view objects to list. |
Errors
Error Code |
Thrown If |
---|---|
|
A required parameter is missing. |
|
The specified workbook ID represents an analytical record that is not a workbook. |
|
The specified workbook ID is not valid. |
|
The specified workbook ID is not a string. |
Syntax
The following code sample shows the syntax for this member. It is not a functional example. For a complete script example, see N/query Module Script Samples.
// Add additional code
...
var tables = query.listTables({
workbookId: 'custworkbook237'
});
...
// Add additional code