Skip to main content

Saved Search

Saved Searches are NetSuite's most powerful and flexible data retrieval tool, enabling complex queries without code.


SAVED SEARCH OVERVIEW
═══════════════════════════════════════════════════════════════════════════════

┌─────────────────────────────────────────────────────────────────────────────┐
│ SAVED SEARCH │
│ │
│ A reusable query that retrieves records based on criteria you define │
│ │
└─────────────────────────────────────────────────────────────────────────────┘

┌──────────────────────────┼──────────────────────────┐
│ │ │
▼ ▼ ▼
┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐
│ CRITERIA │ │ RESULTS │ │ SETTINGS │
│ (Filters) │ │ (Columns) │ │ (Options) │
├─────────────────┤ ├─────────────────┤ ├─────────────────┤
│ • Which records │ │ • What data │ │ • Who can view │
│ to include │ │ to display │ │ • How to sort │
│ • Date ranges │ │ • Summaries │ │ • Alerts │
│ • Status values │ │ • Formulas │ │ • Scheduling │
└─────────────────┘ └─────────────────┘ └─────────────────┘

Saved Search vs Other Tools

ToolBest ForComplexityReal-time
Saved SearchFlexible queries, listsMediumYes
SuiteQLComplex joins, aggregationsHighYes
WorkbooksVisualizations, dashboardsLowNear real-time
ReportsFormatted printable outputLowConfigurable
SuiteScript searchProgrammatic accessHighYes
WHEN TO USE SAVED SEARCH
═══════════════════════════════════════════════════════════════════════════════

✓ Use Saved Search when:
• You need a reusable list of records
• You want to combine data from related records (joins)
• You need summary calculations (GROUP BY, SUM, COUNT)
• You want dashboard portlets or KPIs
• You need email alerts based on conditions
• You want to export data to Excel/CSV

✗ Consider alternatives when:
• You need complex multi-table joins → SuiteQL
• You need charts and graphs → Workbooks
• You need formatted PDF output → Reports
• You need real-time processing → SuiteScript

Saved Search Capabilities

Core Features

FeatureDescription
FiltersDefine which records to include
ColumnsSpecify what data to show
JoinsInclude related record data
SummariesGroup, sum, count, average
FormulasCalculate custom values
SortingOrder results
HighlightingConditional formatting
AlertsEmail when conditions met

Where Saved Searches Can Be Used

SAVED SEARCH USAGE LOCATIONS
═══════════════════════════════════════════════════════════════════════════════

┌─────────────────────────────────────────────────────────────────────────────┐
│ │
│ DASHBOARDS Run directly, display as portlet │
│ ─────────────────────────────────────────────────────────────────────── │
│ REPORTS Format as printable report │
│ ─────────────────────────────────────────────────────────────────────── │
│ SUITESCRIPT Data source for scripts │
│ ─────────────────────────────────────────────────────────────────────── │
│ WORKFLOWS Condition evaluation │
│ ─────────────────────────────────────────────────────────────────────── │
│ FORMS Field sourcing (dropdowns) │
│ ─────────────────────────────────────────────────────────────────────── │
│ MASS UPDATES Target record selection │
│ ─────────────────────────────────────────────────────────────────────── │
│ SCHEDULED EXPORTS Automated data exports │
│ ─────────────────────────────────────────────────────────────────────── │
│ EMAIL ALERTS Notification triggers │
│ │
└─────────────────────────────────────────────────────────────────────────────┘

Supported Record Types

Saved Searches support almost all NetSuite record types:

Transactions

  • Sales Orders, Invoices, Cash Sales
  • Purchase Orders, Bills, Vendor Payments
  • Item Receipts, Item Fulfillments
  • Journal Entries, Deposits
  • Transfer Orders, Inventory Adjustments

Entities

  • Customers, Vendors, Employees
  • Contacts, Partners, Leads
  • Projects, Jobs

Items

  • Inventory Items, Service Items
  • Non-Inventory Items, Kits
  • Assemblies, Lot/Serial Items

Other

  • Custom Records
  • Activities (Tasks, Events, Calls)
  • Cases, Issues
  • Files, Messages
  • And many more...

Search Result Limits

SEARCH RESULT LIMITS
═══════════════════════════════════════════════════════════════════════════════

UI Display:
┌─────────────────────────────────────────────────────────────────────────────┐
│ Default display: 100 rows │
│ Maximum display: 5,000 rows │
│ CSV export: Unlimited (uses paging) │
└─────────────────────────────────────────────────────────────────────────────┘

Script Access:
┌─────────────────────────────────────────────────────────────────────────────┐
│ run().each(): 4,000 results maximum │
│ getRange(): 1,000 results per call │
│ runPaged(): Unlimited (processed in pages) │
└─────────────────────────────────────────────────────────────────────────────┘

Performance Tips:
┌─────────────────────────────────────────────────────────────────────────────┐
│ • Use filters to reduce result set │
│ • Limit columns to only what's needed │
│ • Avoid complex formulas in large searches │
│ • Consider date range restrictions │
│ • Use summary searches for aggregated data │
└─────────────────────────────────────────────────────────────────────────────┘

Navigation: Lists → Search → Saved Searches → New

CREATE SAVED SEARCH - QUICK START
═══════════════════════════════════════════════════════════════════════════════

Step 1: Choose Search Type
┌─────────────────────────────────────────────────────────────────────────────┐
│ Search Type: [Transaction ▼] │
│ │
│ Common types: Transaction, Customer, Item, Vendor, Employee │
└─────────────────────────────────────────────────────────────────────────────┘

Step 2: Name Your Search
┌─────────────────────────────────────────────────────────────────────────────┐
│ Search Title: Open Sales Orders │
│ ID: customsearch_open_sales_orders (auto-generated) │
└─────────────────────────────────────────────────────────────────────────────┘

Step 3: Set Criteria (Filters tab)
┌─────────────────────────────────────────────────────────────────────────────┐
│ Filter │ Description │ Operator │ Value │
├───────────────┼────────────────┼─────────────┼──────────────────────────────┤
│ Type │ Type │ is any of │ Sales Order │
│ Main Line │ Main Line │ is │ True │
│ Status │ Status │ is any of │ Pending Fulfillment │
└───────────────┴────────────────┴─────────────┴──────────────────────────────┘

Step 4: Select Results (Results tab)
┌─────────────────────────────────────────────────────────────────────────────┐
│ Add columns: Document Number, Date, Customer, Amount │
└─────────────────────────────────────────────────────────────────────────────┘

Step 5: Save & Preview
┌─────────────────────────────────────────────────────────────────────────────┐
│ Click [Preview] to test │
│ Click [Save] to save │
│ Click [Save & Run] to save and view results │
└─────────────────────────────────────────────────────────────────────────────┘

Saved Search Interface Overview

SAVED SEARCH DEFINITION TABS
═══════════════════════════════════════════════════════════════════════════════

┌─────────────────────────────────────────────────────────────────────────────┐
│ [Criteria] [Results] [Audience] [Highlighting] [Email] [Alert] │
└─────────────────────────────────────────────────────────────────────────────┘

CRITERIA TAB
├── Standard Filters: Built-in filters for record type
├── Custom Filters: Custom field filters
└── Available Filters: All available filter fields

RESULTS TAB
├── Columns: Fields to display in results
├── Sort: Order and direction
└── Summary: Group, Sum, Count, Average, Min, Max

AUDIENCE TAB
├── Roles: Which roles can access
└── Public: Available to all users

HIGHLIGHTING TAB
├── Row highlighting based on conditions
└── Apply formatting (colors, bold, italic)

EMAIL TAB
├── Send results as scheduled email
├── Recipients and schedule
└── Format (HTML, CSV, PDF)

ALERT TAB
├── Send alert when search returns results
├── Alert frequency and conditions
└── Include custom message

Documentation Sections

SectionDescription
Creating Searches →Step-by-step search creation
Filters & Operators →Complete filter reference
Result Columns →Columns, joins, and summaries
Formulas →Formula fields and expressions
Advanced Features →Alerts, highlighting, scheduling

Quick Reference

Common Filter Operators

OperatorUse ForExample
isExact matchStatus is "Open"
is any ofMultiple valuesType is any of "Invoice", "Credit Memo"
is withinDate rangeDate is within "This Month"
containsText searchName contains "Corp"
greater thanNumericAmount greater than 1000

Common Summary Types

SummaryDescription
GROUPGroup results by this column
SUMTotal of numeric values
COUNTNumber of records
AVGAverage value
MIN/MAXMinimum/Maximum value

Next Steps

GoalGo To
Create a saved searchCreating Searches →
Learn filter operatorsFilters & Operators →
Add formula columnsFormulas →
Use in scriptsSuiteScript Integration →