ANS-0179 · SAVED SEARCHES & FORMULAS
How to Create Dynamic NetSuite Saved Search Links for Different Environments?
Leverage relative URLs and HTML formulas in NetSuite saved searches to ensure links function correctly across production, sandbox, and beta environments.
Short answer
To create dynamic links in NetSuite saved searches that adapt to different environments (production, sandbox, beta), use relative URLs instead of full URLs. Configure a "Formula (HTML)" field in your search results, embedding the relative URL within standard HTML <a> tags. This approach ensures links remain valid regardless of the NetSuite instance.
Scenario
Users often need to create dynamic links within NetSuite saved search results that point to specific records or pages. A common challenge arises when these links must function correctly across various NetSuite environments, such as production, sandbox, or beta accounts, without requiring manual updates to the base URL.
Solution
To ensure dynamic links within NetSuite saved searches function correctly across various environments (e.g., production, sandbox, beta), it is recommended to utilize relative URLs. When a user is already operating within NetSuite, specifying the full base URL is not required. Instead, construct the link using only the relative path; for example, "/app/accounting...". To implement this, add a custom field to the saved search results and set its type to "Formula (HTML)". Within this formula, the relative URL should be provided as the result, enclosed within standard HTML tags.
Expert NetSuite Support
Need help with this NetSuite issue?
Saved Searches & Formulas consulting and configuration support
