TableRow Object Members for SuiteScript 2.1 Development
The TableRow object in SuiteScript 2.1 provides access to extracted table cells for document processing, crucial for data retrieval.
The TableRow object is essential for developers working with document processing in SuiteScript 2.1. This object allows access to the cells extracted from tables in processed documents, enabling effective handling of structured data.
Overview of TableRow Object Members
The TableRow object includes the following member:
| Member Name | Return Type | Supported Script Types | Description |
|---|---|---|---|
TableRow.cells | documentCapture.Cell[] | Server scripts | The extracted cells in the table row. |
Property Description
TableRow.cells: This property returns an array ofdocumentCapture.Cellobjects, which represent the individual cells extracted from the corresponding table row. These cells contain data retrieved from documents like invoices and reports.
Errors
- Error Code:
READ_ONLY- Thrown If: You attempt to set the value of this property, as it is read-only.
Example Syntax
To illustrate how the TableRow may be utilized within your SuiteScript, consider the following snippet:
1// Sample SuiteScript code to extract table row data2const extractedData = documentCapture.documentToStructure({3 file: file.load("SuiteScripts/sample_invoice.pdf"),4 documentType: documentCapture.DocumentType.INVOICE,5 features: [documentCapture.Feature.TABLE_EXTRACTION]6});7 8const tableRowCells = extractedData.pages[0].tables[0].bodyRows[0].cells;9// Further processing on tableRowCells can be executed hereThis example demonstrates loading a document and extracting its structure, focusing on retrieving data from a specific table row.
Related Concepts
- For further understanding, refer to the N/documentCapture Module which encompasses related functionalities and methods for effective document processing.
Who This Affects
This information is relevant for:
- Developers: Those implementing solutions utilizing document extraction features.
- Administrators: Those overseeing script deployment and server-side scripting solutions.
By leveraging the TableRow object in your SuiteScript 2.1 workflows, you can efficiently work with structured documents and enhance your application's data processing capabilities.
Source: This article is based on Oracle's official NetSuite documentation.
Key Takeaways
- The TableRow object provides access to table cells in extracted documents.
- The property
TableRow.cellsreturns an array ofdocumentCapture.Cellobjects. - Attempting to modify the
cellsproperty will raise aREAD_ONLYerror. - This feature is primarily impactful for developers working on document processing scripts.
Frequently Asked Questions (4)
What script types support the TableRow object in SuiteScript 2.1?
Can I modify the cells in a TableRow object within my SuiteScript?
How does the TableRow object work with the documentCapture module?
Are there any prerequisites for using the TableRow object 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