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.
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 Searches
- Search for Sublist Line Fields With Dynamic Tables in NetSuite
Learn how to optimize search queries for sublist line fields in NetSuite using dynamic tables and SuiteQL.
- PagedData Object Members in NetSuite SuiteScript 2.0
PagedData provides efficient pagination for search results in SuiteScript, enabling effective handling of large data sets.
- Search Object Errors in SuiteScript for NetSuite
Understand common search object errors in SuiteScript for NetSuite and how to resolve them effectively.
- Search Filter Object Usage in SuiteScript
The Search Filter object enables refined query capabilities in SuiteScript, encapsulating search criteria.
Advertising
Reach Searches Professionals
Put your product in front of NetSuite experts who work with Searches every day.
Sponsor This Category