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.x Standard and Dynamic Modes)

Note:

The order of the custom fields returned by this method on a custom record does not respect the configuration of the custom record fields page in the UI.

Returns

string[]

Supported Script Types

Client and server scripts

For more information, see SuiteScript 2.x Script Types.

Governance

None

Module

N/record Module

Sibling Object Members

Record Object Members

Since

2015.2

Syntax
Important:

The following code sample shows the syntax for this member. It is not a functional example. For a complete script example, see N/record Module Script Samples.

          // Add additional code
...
var objFields = objRecord.getFields();
...
// Add additional code 

        

Related Topics

General Notices