Basic Syntax

Documentation article about Basic Syntax

·1 min read·4 views·NetSuite 2026.1·View Oracle Docs

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?
You can determine the correct record ID by using the NetSuite record browser. This tool provides a summary of all records and the IDs that are officially supported for SuiteScript.
Can all fields in the SuiteScript Records Browser be set using SuiteScript?
No, not all fields in the SuiteScript Records Browser can be set using SuiteScript. Some fields are read-only, and you cannot set them in SuiteScript even if you can retrieve their values.
What is the function of the 'map' property in a simple search syntax?
The 'map' property in the search syntax specifies which results will be returned. In the provided example, the results will include an object with 'id' and 'label' properties.
What should I be cautious about when referencing record IDs in SuiteScript?
Be careful to use only supported and documented IDs in SuiteScript. If an unsupported or undocumented ID is used, and NetSuite changes it, your script may break.

Weekly Update History (1)

Field Service Managementadded

Added a note in Running Searches in Config to add information about search result limits.

View Oracle Docs
Source: Basic Syntax Oracle NetSuite Help Center. This article was generated from official Oracle documentation and enriched with additional context and best practices.

Was this article helpful?

More in Field Service Management

View all Field Service Management articles →

Also from NetSuite 2026.1

View all NetSuite 2026.1 changes →