Basic Syntax
Documentation article about Basic Syntax
Basic Syntax
Basic Syntax
To understand the syntax of a simple search, we'll use the sample below:
{
"record": "supportcase",
"filters": ["internalid","anyof","${event.supportcase || 0}"],
"map": {
"id": "internalid",
"label": "casenumber"
} }
The record property sets the search type to run or the record type to search for. In the sample above, we're searching for Case records. You can find the ID of the record or search type using the NetSuite record browser. For more information see, Working with the SuiteScript Records Browser.
The filters property sets the search criteria.
The map property sets what results will be returned. In this example, you'll get back an object with two properties: id and label.
Frequently Asked Questions (4)
What are the prerequisites for using SuiteScript to perform searches on NetSuite records?
Can I modify all record fields via SuiteScript?
How does the 'map' property work in a SuiteScript search object?
What should I be cautious of when referencing record IDs in SuiteScript?
Weekly Update History (1)
Updated the Nested Searches topic to include an example.
View Oracle DocsWas this article helpful?
More in Field Service Management
- Globalization Enhancements in Field Service Management 2026.1
In version 2026.1, Field Service Management introduces globalization enhancements and improves barcode scanning reliability.
- Internationalization Enhancements in NetSuite 2026.1
Explore internationalization enhancements in NetSuite 2026.1, supporting user locales for Field Service Management across various platforms.
- The Consumable Element
Documentation article about The Consumable Element
- Field Service Management Mobile App Features in NetSuite 2026.1
Discover the new features of the Field Service Management mobile app in NetSuite 2026.1, designed for field resource collaboration.
Also from NetSuite 2026.1
- Custom Labels for Additional Item Prices in NetSuite 2026.1
Custom labels enhance transaction summaries in NetSuite, improving clarity for item prices.
- Applied Trans Date and Period Enhancements in NetSuite 20...
Latest updates in NetSuite 2024.1 enhance Accounting SuiteApps with transaction line distribution features.
- Data Not Copied from Production to Sandbox in NetSuite 2026.1
In NetSuite 2026.1, key data like domains and customer roles are not copied to sandbox accounts during refreshes, impacting setup.
- Available Items Only Feature in NetSuite 2026.1
Available items only filtering boosts sales efficiency in NetSuite 2026.1 with Intelligent Item Recommendations.
Advertising
Reach Field Service Management Professionals
Put your product in front of NetSuite experts who work with Field Service Management every day.
Sponsor This Category