Table Object Members Reference for SuiteScript 2.1
Table Object Members in SuiteScript 2.1 provide essential properties for document table data extraction.
The Table Object Members in SuiteScript 2.1 facilitate the effective extraction of table-related data from documents. This feature is particularly useful for developers working with document processing tasks, allowing for the dynamic retrieval of body rows, headers, and footers from various file types.
Overview of Table Object Members
All the members in the Table Object provide valuable insights regarding the extracted data from tables in a document. Here's a detailed list of the properties available:
| Property Name | Return Type / Value Type | Supported Script Types | Description |
|---|---|---|---|
Table.bodyRows | [documentCapture.TableRow][] | Server scripts | The extracted body rows from the table in a document. |
Table.columnCount | number | Server scripts | The number of extracted columns from the table. |
Table.confidence | number | Server scripts | The confidence level for the table extraction. |
Table.footerRows | [documentCapture.TableRow][] | Server scripts | The extracted footer rows from the table. |
Table.headerRows | [documentCapture.TableRow][] | Server scripts | The extracted header rows from the table. |
Table.rowCount | number | Server scripts | The number of extracted rows from the table. |
Description of Properties
Table.bodyRows: This property holds the main content rows of the table, excluding any header or footer rows. It returns an array ofdocumentCapture.TableRowobjects, allowing access to each row's cell data.Table.columnCount: A count of the columns extracted from the document's table, aiding in understanding the structure of the data.Table.confidence: This numerical value reflects the certainty of the extracted table's accuracy, which can be beneficial when assessing the reliability of the data.Table.footerRows: Similar to body rows, this property captures any rows that appear at the bottom of the table, typically used for summaries or totals.Table.headerRows: It extracts the rows that constitute the header of the table, providing essential labeling for data columns.Table.rowCount: A simple count of how many rows are present in the table for quick reference.
Example Usage
Here is a syntax example demonstrating the usage of the Table Object within SuiteScript:
1// Add additional code2...3 4const extractedData = documentCapture.documentToStructure({5 file: file.load("SuiteScripts/sample_invoice.pdf"),6 documentType: documentCapture.DocumentType.INVOICE,7 features: [documentCapture.Feature.TABLE_EXTRACTION]8});9 10const tableBodyRows = extractedData.pages[0].tables[0].bodyRows;11 12...13// Add additional codeKey Considerations
- It is noteworthy that errors may arise when attempting to assign values to read-only properties, as indicated by the
READ_ONLYerror code. Understanding these nuances will aid in effective script development.
Source: This article is based on Oracle's official NetSuite documentation.
Key Takeaways
- The Table Object Members provide essential properties for manipulating table data extracted from documents.
- Each property allows developers to access specific aspects of table data, enhancing script capabilities.
- Understanding these members is crucial when implementing table data extraction in SuiteScript 2.1.
Frequently Asked Questions (4)
What types of scripts are supported by Table Object Members in SuiteScript 2.1?
How can I access the main content rows of a table using SuiteScript 2.1?
Is it possible to modify the properties of Table Object Members once they are extracted?
How can I evaluate the accuracy of the extracted table data in SuiteScript 2.1?
Was this article helpful?
More in Integration
- Natural Language Queries in NetSuite AI
MCP Standard Tools SuiteApp enables AI-driven data tasks in NetSuite, aligned with role permissions.
- Square Connector Integration in NetSuite 2026.1
Discover the Square Connector for seamless integration with NetSuite 2026.1, synchronizing transactions, orders, and inventory effortlessly.
- SuiteTalk Web Services Updates for NetSuite Integrations
SuiteTalk Web Services adds new Item Supply Plan support, enhancing integrations for efficient data management.
- SuiteTalk Web Services Enhancements in NetSuite
Explore the latest enhancements to SuiteTalk Web Services, improving integration and API functionalities in NetSuite.
Advertising
Reach Integration Professionals
Put your product in front of NetSuite experts who work with Integration every day.
Sponsor This Category