Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
New to NetSuite | N/currentRecord: Sublist.getColumn(options) Method
In our previous article, New to NetSuite | N/currentRecord Module Overview, we discussed the purpose and usage of the N/currentRecord module.
Continuing our deep dive into the N/currentRecord module, this article introduces the getColumn() method — a useful tool when working with sublists in client scripts.
What is getColumn()?
The getColumn(options) method is used to retrieve a column from a sublist on the current record. This allows your script to interact with metadata about a specific field within a sublist line — such as the field’s ID, type, or label.
Returns
- Type: currentRecord.Column or null
The method returns a Column object if the specified field exists on the sublist. Otherwise, it returns null.
Refer a Member to the Community | Earn the Answer Accepter Badge | Vote for the contents you'd like to see