Finding Records and Subrecords in SuiteScript

Easily locate records and subrecords in SuiteScript using the Records Browser for effective scripting and integration.

·2 min read·1 views·View Oracle Docs

The SuiteScript Records Browser allows developers to find both records and subrecords efficiently, ensuring smooth scripting and integration in NetSuite. This tool is essential for accessing necessary IDs and details for SuiteScript development.

How Do You Find a Record or Subrecord?

To locate a record or subrecord, follow these steps:

  1. Click the appropriate letter at the top of the Records Browser.

    • The left pane displays record names starting with your selected letter, while the center pane shows details for the first record in the list.
  2. Click the name of the desired record in the left pane.

    • This action will populate the center pane with the relevant record details.

Additionally, you can access subrecord pages from their parent records. Each summary field for a subrecord on a record page links directly to the corresponding subrecord page. For instance, on the Sales Order page, fields such as billingaddress and shippingaddress will provide links to their respective address subrecord pages. Clicking the summary link in the Type column will navigate you to the appropriate subrecord page.

Sales Order Record Fields

Best Practices

  • Always reference the SuiteScript Records Browser for the most accurate record IDs.
  • Ensure you understand which fields are read-only and which can be set using SuiteScript by checking the NetSuite UI.
  • If a field cannot be set through the UI, it should also not be set via SuiteScript.

Related Topics

By efficiently navigating the Records Browser, developers can streamline their SuiteScript scripting tasks and enhance overall productivity in their NetSuite implementations.

Frequently Asked Questions (4)

How can I access subrecords in SuiteScript?
In the Records Browser, each summary field for a subrecord on a record page links directly to the corresponding subrecord page. For instance, on the Sales Order page, fields like `billingaddress` and `shippingaddress` link to their respective address subrecord pages.
Is it possible to modify all fields of a record using SuiteScript?
No, not all fields can be modified using SuiteScript. Fields that are read-only in the NetSuite UI should also not be set through SuiteScript.
How do I ensure I'm using the correct record IDs in my SuiteScript projects?
It's recommended to always reference the SuiteScript Records Browser for the most accurate record IDs to ensure that your scripts interact with the correct records.
What are the steps to locate a specific record using the SuiteScript Records Browser?
To locate a record, click the appropriate letter at the top of the Records Browser. Select the desired record name from the left pane, which will populate the center pane with the relevant record details.
Source: Finding a Record or Subrecord 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 Platform

View all Platform articles →