Search.searchId

Note:

The content in this help topic pertains to SuiteScript 2.0.

Property Description

Internal ID of the search.

The internal ID is available only when the search is either loaded with search.load(options) or after is has been saved with Search.save().

Typical values are 55 or 234 or 87, not a value like customsearch_mysearch. Any ID prefixed with customsearch is a script ID, not the internal system ID for a search.

Type

number (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
...
var mySearch = search.load({
    id: 'customsearch_my_so_search'
    });
log.debug({
    title: 'search id #: ',
    details: mySearch.searchId
});
...
//Add additional code 

        

Related Topics

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

General Notices