Field.id

Note:

The content in this help topic pertains to SuiteScript 2.0.

Property Description

Returns the internal ID of a standard or custom body or sublist field.

Type

string (read-only)

Supported Script Types

Client and server scripts

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

Module

N/record Module

Sibling Object Members

Field 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 objRecord = record.load({
    type: record.Type.SALES_ORDER,
    id: 275 
});

var objSublist = objRecord.getSublist({
    sublistId: 'item' 
});

var objField = objSublist.getField({
    fieldId: 'item' 
}); 
//Perform an action with the objField.id value 
...
// Add additional code 

        

Related Topics

record.Field
N/record Module
SuiteScript 2.x Modules
SuiteScript 2.x

General Notices