Modules
Objects/Functions
SuiteScript 2.0
// Please search https://system.netsuite.com/app/help/helpcenter.nl?search=Search.searchType for more information.
N/search Module
Search.searchType
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:
All script types
For more information, see SuiteScript 2.0 Script Types.
Module:
N/search Module
Since:
2015.2
Search NetSuite -
https://system.netsuite.com/app/help/helpcenter.nl?search=Search.searchType
Example:
// Code Example 1
//Add additional code
//...
var mySearch = search.load({
id: 'customsearch_my_so_search'
});
log.debug({
title: 'record type: ',
details: mySearch.searchType
});
//...
//Add additional code
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_459534851073.html