Modules
Objects/Functions
SuiteScript 2.0
// Please search https://system.netsuite.com/app/help/helpcenter.nl?search=Record.getFields() for more information.
N/record Module
Record.getFields()
Method Description:
Returns the body field names (internal ids) of all the fields in the record, including machine header field and matrix header fields.
(dynamic and standard modes — see SuiteScript 2.0 – Standard and Dynamic Modes)
Returns:
string[]
Supported Script Types:
Client and server-side scripts
For more information, see SuiteScript 2.0 Script Types.
Governance:
None
Module:
N/record Module
Sibling Object Members:
Record Object Members
Since:
2015.2
Search NetSuite -
https://system.netsuite.com/app/help/helpcenter.nl?search=Record.getFields()
Example:
// Code Example 1
// Add additional code.
//...
var objFields = objRecord.getFields();
//...
// Add additional code.
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4273152646.html