Column.name

Note:

The content in this help topic pertains to SuiteScript 2.0.

Property Description

Name of a search column as a string.

Type

string (read-only)

Supported Script Types

Client and server scripts

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

Module

N/search Module

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/search Module Script Samples.

          // Add additional code 
...
// Create a search definition that includes search columns
var mySearch = search.create({
    type: search.Type.CUSTOMER,
    columns: [
        search.createColumn({
            name: 'entityid'
        }),
        search.createColumn({
            name: 'email'
        })
    ]
});

// Retrieve the first search column and log its name
var myColumn = mySearch.columns[0];
log.debug(myColumn.name);

// Run the search
var results = mySearch.run();
...
// Add additional code 

        

Related Topics

search.Column
N/search Module
SuiteScript 2.x Modules
SuiteScript 2.x

General Notices