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)
How can I determine the correct record ID when writing a SuiteScript search?
Can all fields in the SuiteScript Records Browser be set using SuiteScript?
What is the function of the 'map' property in a simple search syntax?
What should I be cautious about when referencing record IDs in SuiteScript?
Weekly Update History (1)
Added a note in Running Searches in Config to add information about search result limits.
View Oracle DocsWas this article helpful?
More in Field Service Management
- Basic Syntax
Documentation article about Basic Syntax
- Globalization Enhancements in Field Service Management 2026.1
In version 2026.1, Field Service Management introduces globalization enhancements and improves barcode scanning reliability.
- The Consumable Element
Documentation article about The Consumable Element
- Internationalization Enhancements in NetSuite 2026.1
Explore internationalization enhancements in NetSuite 2026.1, supporting user locales for Field Service Management across various platforms.
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