N/search Module Members for SuiteScript Functionality
The N/search module enables on-demand and saved searches in SuiteScript, enhancing data retrieval and analysis capabilities.
The N/search module is a powerful tool that allows developers to create and run both on-demand and saved searches within NetSuite. By utilizing this module, users can efficiently analyze and work through search results. Key functionalities include the ability to search for specific records using keywords, create and save searches, load existing searches, and identify duplicate records. Additionally, it enables users to return sets of records that match specified criteria, while also allowing for pagination to handle larger datasets efficiently.
Important: The N/search module does not operate in unauthenticated client-side contexts; further details can be found in SuiteAnswers.
Overview of N/search Module Members
The module is structured around several core member types and methods, enabling robust search capabilities. Below is an exploration of the key members and types available within the N/search module:
Member Types
| Member Type | Name | Return Type / Value Type | Supported Script Types | Description |
|---|---|---|---|---|
| Object | search.Column | Object | Client and server scripts | Encapsulates a search column in a search. |
| Object | search.Filter | Object | Client and server scripts | Encapsulates a search filter used in a search. |
| Object | search.Page | Object | Client and server scripts | Encapsulates a set of search results for a single search page. |
| Object | search.PagedData | Object | Client and server scripts | Holds metadata about a paginated query. |
| Object | search.PageRange | Object | Client and server scripts | Defines the page range for a paginated query. |
| Object | search.Result | Object | Client and server scripts | Encapsulates a single search result row. |
| Object | search.ResultSet | Object | Client and server scripts | Encapsulates a set of search results returned by Search.run(). |
| Object | search.Search | Object | Client and server scripts | Encapsulates a NetSuite search. |
| Object | search.Setting | Object | Client and server scripts | Encapsulates a search setting. |
Key Methods
These methods are integral to leveraging the capabilities of the N/search module:
- search.create(options): Creates a new search and returns a search object.
- search.load(options): Loads an existing saved search.
- search.run(): Executes an on-demand search, returning results as a ResultSet object.
- search.runPaged(options): Runs a search and returns a PagedData object for handling large datasets.
- search.duplicates(options): Finds duplicate records based on configured settings.
Who This Affects
The following roles and modules are impacted by the N/search module:
- Developers: Who use SuiteScript to extend functionality and automate tasks.
- Administrators: Who manage search responsibilities and settings.
- Accountants and Finance Teams: Who need to analyze financial data effectively.
Key Takeaways
- The N/search module is essential for conducting complex searches in NetSuite.
- Provides functionality to create, save, and load searches, enhancing data retrieval.
- Supports pagination for results, making it suitable for large datasets.
Source: This article is based on Oracle's official NetSuite documentation.
Frequently Asked Questions (4)
Does the N/search module require any specific permissions for use in SuiteScript?
Can N/search module be used for duplicate record identification?
Is the N/search module available for both client-side and server-side scripting?
What are the limitations of using the N/search module in client-side scripts?
Was this article helpful?
More in Integration
- Natural Language Queries in NetSuite AI
MCP Standard Tools SuiteApp enables AI-driven data tasks in NetSuite, aligned with role permissions.
- Square Connector Integration in NetSuite 2026.1
Discover the Square Connector for seamless integration with NetSuite 2026.1, synchronizing transactions, orders, and inventory effortlessly.
- SuiteTalk Web Services Updates for NetSuite Integrations
SuiteTalk Web Services adds new Item Supply Plan support, enhancing integrations for efficient data management.
- SuiteTalk Web Services Enhancements in NetSuite
Explore the latest enhancements to SuiteTalk Web Services, improving integration and API functionalities in NetSuite.
Advertising
Reach Integration Professionals
Put your product in front of NetSuite experts who work with Integration every day.
Sponsor This Category