Modules
Objects/Functions
SuiteScript 2.0
// Please search https://system.netsuite.com/app/help/helpcenter.nl?search=Result.id for more information.
N/search Module
Result.id
Property Description:
The internal ID for the record returned in a search result row. This ID is a number, but it is stored in this property as a string (for example, '237').
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=Result.id
Example:
// Code Example 1
// Add additional code
//...
var mySearch = search.create({
type: search.Type.CUSTOMER
});
var resultSet = mySearch.run();
resultSet.each(function(result) {
log.debug({
title: 'Record Internal ID: ',
details: result.id
});
return true;
});
//...
// Add additional code
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_454656921386.html