Record

Record Methods

Function

Description

getAllFields()

Returns a normal keyed array of all the fields on a record.

getAllLineItemFields(group)

Returns an array of all the field names of a sublist on the record.

getFieldText(name)

Returns the UI display value for a select field.

getFieldTexts(name)

Returns the UI display values for a multi-select field.

getFieldValue(name)

Returns the value (internal ID) of a field.

getFieldValues(name)

Returns the value (field ID) or values (array of field IDs) of a multi-select field.

getId()

Use this method to get the internal ID of a record when editing an existing transaction.

getLineItemCount(group)

Returns the number of lines on a sublist.

getLineItemText(group, fldnam, linenum)

Returns the display name of a select field (based on its current selection) in a sublist.

getLineItemValue(group, name, linenum)

Returns the value of a sublist line item field.

getLineItemValues(type, fldname, linenum)

Returns the values of a multiselect sublist field on a selected line.

getRecordType()

Returns the record type. For example, returns Unbuild for the Assembly Unbuild record type or returns SalesOrd for the Sales Order record type.

viewLineItemSubrecord(sublist, fldname, linenum)

Returns a nlobjSubrecord object. Use this API to view a subrecord from a sublist field on the parent record.

viewSubrecord(fldname)

Returns a nlobjSubrecord object. Use this API to view a subrecord from a body field on the parent record.

NetSuite returns CANNOT_EDIT_SUBRECORD if you attempt to edit the subrecord returned by this function.

Related Topics

customizeGlImpact(transactionRecord, standardLines, customLines, book)
CustomLines
StandardLines
AccountingBook

General Notices