ANS-0067 · SAVED SEARCHES & FORMULAS
How to Pass Parameters from a NetSuite Record to a Saved Search via HTML Link?
NetSuite users can dynamically filter saved search results by embedding record-specific data directly into an HTML link.
Short answer
Parameters can be passed from a NetSuite record to a saved search by constructing an HTML link that includes the desired filter criteria. This method allows for dynamic filtering, such as linking a transaction number from a record to a generic saved search.
Scenario
Users often need to view specific data in a saved search context, filtered by information from a particular record. This requires a method to dynamically apply filters to a generic saved search based on the current record's data.
Solution
To pass parameters from a record to a saved search using an HTML link, construct the URL to include the desired filter criteria. This approach allows a generic saved search to be filtered by a specific record's data, such as a transaction number. For example, to filter a 'PO Receiving Exception Search' by the current transaction's ID, the following HTML link structure can be used: 'PO Receiving Exception Search: https://system.netsuite.com/app/common/search/searchresults.nl?searchtypeTransaction&Transaction_NUMBERTEXTtypeIS&Transaction_NUMBERTEXT'||{tranid}||'&searchid' In this example, the Transaction_NUMBERTEXTtypeIS and Transaction_NUMBERTEXT parameters are dynamically populated with the current record's transaction ID ({tranid}), effectively adding a filter for the transaction number.
Expert NetSuite Support
Need help with this NetSuite issue?
Saved Searches & Formulas consulting and configuration support
