Search.searchType

Note:

The content in this help topic pertains to SuiteScript 2.0.

Property Description

Internal ID name of the record type on which a search is based. Use this if you have the internal ID of the search, but do not know the record type the search was based on.

For example, if the search was on a Customer record, this property is customer; if the search was on the Sales Order record type, this property is salesorder.

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

        

Related Topics

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

General Notices