Exposing Internal IDs and Field IDs in NetSuite
Expose internal IDs and field IDs in NetSuite to enhance API interactions and simplify record identification.
TL;DR
This article explains how to expose internal IDs and field IDs in NetSuite, which are crucial for record identification and API interactions. Understanding these IDs can streamline development and integration tasks.
What Are Internal IDs and Field IDs?
Every record in NetSuite is assigned an internal ID, and similarly, each field has a designated field ID. These IDs serve as permanent identifiers for records and fields, often visible in the URL when viewing a record. They play a significant role in SuiteScript and SuiteTalk APIs, facilitating seamless data access and manipulation.
How to Enable Display of Internal IDs and Field IDs
To view internal IDs and field IDs in your NetSuite account, follow these steps:
1. Enable Client SuiteScript
To use SuiteScripts for exposing these IDs, ensure that Client SuiteScript is enabled:
- Log in with an Administrator role and navigate to Setup > Company > Enable Features.
- Click the SuiteCloud subtab.
- Check the Client SuiteScript box.
- Click Save.
2. Enable Show Internal IDs Preference
Next, you need to configure your preferences to display these IDs:
- Click on the Home icon and select Set Preferences.
- Under the General subtab, in the Defaults section, ensure the Show Internal IDs box is checked.
- Click Save.
After these settings are saved, field IDs can be viewed through the Field Level Help popup that appears when you click a field's label.
When performing a record search, the results will list the internal ID for each record in the corresponding column, making it easier to manage data.
Understanding Field ID Formats
Field IDs use specific formats based on the API being utilized:
- SuiteScript: Standard field IDs, primarily for SuiteScript usage, are in lowercase (e.g.,
itemidfor Item Name/Number). - SuiteTalk: When interacting with SuiteTalk, all field IDs are presented in camel case (e.g.,
itemId).
Schema Browser
To explore standard SuiteTalk field IDs and internal IDs of records, use the Schema and Records Browser. You can find valid field IDs for various entities by navigating through the browser:
- Click on the Schema Browser tab for field IDs.
- Click Records Browser for overall record IDs.
- To locate a specific entity, select the corresponding initial from the alphabetical row, such as ‘I’ for inventory items.
Best Practices
- Check the Show Internal IDs preference regularly to streamline your API interactions.
- Familiarize yourself with the differences in ID formats to prevent errors during API calls, especially between SuiteScript and SuiteTalk.
Key Takeaways
- NetSuite records require internal IDs and fields have field IDs for accurate referencing.
- Enable Client SuiteScript and the Show Internal IDs preference to view IDs.
- Understand the formatting differences between SuiteScript and SuiteTalk field IDs.
Source: This article is based on Oracle's official NetSuite documentation.
Frequently Asked Questions (4)
Do I need to enable a feature flag to expose internal IDs and field IDs in NetSuite?
How can I view internal IDs and field IDs in NetSuite once they are enabled?
Are there differences in field ID formats between SuiteScript and SuiteTalk?
Can I explore specific internal IDs and field IDs using NetSuite tools?
Was this article helpful?
More in SuiteScript
- Scheduling Map/Reduce Script Submissions in NetSuite
Learn how to schedule map/reduce scripts for one-time or recurring submissions in NetSuite, enhancing automation and efficiency.
- API Governance Units Calculation in NetSuite 2026.1
NetSuite 2026.1 introduces examples illustrating API governance unit calculations for both user event and scheduled scripts.
- Binary File Support in N/https Module for SuiteScript
SuiteScript enhances capabilities with binary file support in the N/https module, allowing improved data handling in external communications.
- Attach and Detach Operations in NetSuite 2026.1
Attach and detach operations for record relationships in NetSuite enhance data management and connectivity.
