Searching Config in NetSuite: Basic Syntax Guide (2026.1)
Master basic syntax for searches in config; discover key patterns and strategies for effective queries.
This section covers the syntax and patterns for defining and resolving searches within config.
Important:
Config searches are limited to a maximum of 1,000 return values or records. Be sure to manage your search criteria so you don't reach this limit and cause errors. For more information, see Search Result Limits.
Basic Syntax
To understand the syntax of a simple search, we'll use the sample below:
1{2 "record": "supportcase",3 "filters": ["internalid","anyof","${event.supportcase || 0}"],4 "map": {5 "id": "internalid",6 "label": "casenumber"7 }8}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.
Special Characters in map
You can use special characters in the map section to change how the search results work. Here are some of those characters:
Note:
When you use special characters, remember that they work the same way they do in NetSuite. For example, using group means all other fields you want to return results need to be grouped, counted, or summed. If you use these, it is best practice to have all results grouped or summarized.
Character
Usage
=
Get value
Get text value (label)
[ ]
Get array values (multiselect)
*
Merge search result duplicates of this column value
<
Sort in ascending order
>
Sort in descending order
^
Group by maximum value
?
Count
Sum
~
Average
{
Minimum
}
Maximum
!
Write a value even if it hasn't changed
Get value and Get text
The equals (=) character lets you get a field's value. For example, if you're mapping a select field, this returns the internalid of the selection. Most of the time, the value is returned by default, but the = character makes it more specific.
The number sign (#) character lets you get the field's text instead. With a select field, this returns the label of the selection as you see it in the NetSuite UI.
Multiselect or arrays
The square bracket ([ ]) characters return the result as an array. They are usually used to ensure that the selected options are returned as an array, rather than as a comma-separated list.
Pipe
The pipe (|) character lets you control where the property reads from and where it writes to, separately. It is handy when you need to read from one field but write to another, or when the same field has two different IDs for searching and writing. Another common use for the pipe character is to make sure you can read a field value but not write to it.
Here's an example search that reads from one field and writes to another:
"quantity": "quantity|item.quantity"Here's an example search that only reads the field value:
"status": "status#|"Nested Searches
You can use results from one search in the filters of another search. The nested search runs first and returns an array of internal IDs, then the outer search uses those IDs in its filter.
Important:
If you nest searches the wrong way, it can cause performance issues.
Special Nested Search Properties
The all and default properties are a couple of special search options you'll use often. By default, config searches return up to 1000 results. If you set all: true, you can get more than 1000, but it might slow things down. If there are no results results, config returns an empty array, which might cause errors. The default property gives you a fallback value instead.
The example below shows a second search inside another. The second search is on the record customrecord_nxc_cr and returns a map of custrecord_nxc_cr_asset. This field stores the asset and therefore returns the internal ID of the asset found on the record. It uses a default of 0 to avoid issues if there are no results found in the nested search. Any results found are an array of assets internal IDs, and get excluded from the main search because the nested search is inside of this filter: ["internalid","noneof",
1"record": "customrecord_nx_asset",2 "filters": [3 ["internalid","anyof","${event.caseassets}"],"and",4 ["internalid","noneof",{5 "array": true,6 "default": "0",7 "assets": {8 "record": "customrecord_nxc_cr",9 "filters": [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
- Field Service Management Enhancements and Bug Fixes for 2026
Field Service Management updates in 2026.1 and 2026.05.2 enhance features and streamline performance.
- Add File Item Screen Enhancements for NetSuite 2026.1
Enhancements in the Add File Item screen for NetSuite 2026.1 simplify file attachments, improving usability for task management.
- Enhanced Details Screen for Task Management in NetSuite 2026.1
The enhanced Details screen improves task management with technician and customer signatures in NetSuite 2026.1.
- Consumable Element Overview for Mobile Inventory Management
Learn about the Consumable Element for mobile inventory in NetSuite 2026.1, including configuration and usage tips.
Also from NetSuite 2026.1
- Consigned Inventory Management in NetSuite 2026.1
Consigned inventory management in NetSuite 2026.1 enhances tracking and reporting for vendor consigned goods. Introduction
- Standard Roles and Permissions in NetSuite 2026.1
Explore standard roles and permissions in NetSuite 2026.1 for enhanced employee management and security. Introduction Introduction
- Prompt Studio: Generative AI Management in NetSuite 2026.1
Prompt Studio in NetSuite 2026.1 enhances generative AI management, enabling customization of prompts and Text Enhance actions.
- SuiteCloud Agent Skills for AI Development in NetSuite 2026.1
SuiteCloud Agent Skills enhance development workflows with AI-driven guidance in NetSuite 2026.1, improving automation and process standardization.
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