Modules

filter

 

Objects/Functions

module (N/search)

SuiteScript 2.0

PagedData.count

// Please search https://system.netsuite.com/app/help/helpcenter.nl?search=PagedData.count for more information.

N/search Module
PagedData.count
Property Description: The total number of results when Search.runPaged(options) was executed.
Type: number This property is read-only.
Supported Script Types: All script types For more information, see SuiteScript 2.0 Script Types.
Module: N/search Module
Since: 2016.1
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=PagedData.count

Example:

// Code Example 1
// Add additional code
//...
var mySearch = search.create({
type: search.Type.CUSTOMER,
columns: [
'entityid',
'email'
]
});

var myPagedResults = mySearch.runPaged({
pageSize: 10
});

var theCount = myPagedResults.count;
//...
// Add additional code

//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4486607957.html