Record Object Members
Explore key members of the Record object in SuiteScript, including name, primary key, and properties for effective data handling.
The Record object in SuiteScript provides essential properties for managing data efficiently within NetSuite. It includes crucial members such as the record name, primary key, and its properties, supporting server-side scripts for powerful data manipulation. This article describes these members in detail and explains their significance in SuiteScript development.
What Are Record Object Members?
The Record object members available for a workbook.Record object include:
| Member Name | Type | Description | Supported Script Types |
|---|---|---|---|
Record.name | string | The name of the record type for the record. | Server scripts |
Record.primaryKey | number | The primary key of the record. | Server scripts |
Record.properties | Object | The properties of the record. | Server scripts |
Detailed Member Descriptions
-
Record.name: This property returns the string value representing the record type's name. It is essential to identify the specific type of record you are working with in your scripts. -
Record.primaryKey: This numeric property holds the primary key for the record, allowing for unique identification and referencing within operations. -
Record.properties: This object contains the properties associated with the record, enabling developers to access and manipulate relevant data easily.
Usage Notes
When using these properties, keep in mind:
- The
Record.nameproperty is read-only. Attempting to set its value after theworkbook.Recordobject creation will lead to aREAD_ONLY_PROPERTYerror.
For more information on SuiteScript and workbook modules, check the SuiteScript 2.x Script Types documentation.
Source: This article is based on Oracle's official NetSuite documentation.
Frequently Asked Questions (4)
Are the Record object members in SuiteScript available for all types of scripts?
Can I modify the value of the Record.name property in a SuiteScript?
What is the significance of the Record.primaryKey in SuiteScript?
What should developers be aware of when accessing Record.properties in SuiteScript?
Was this article helpful?
More in Platform
- Style Object Members for Workbook API in NetSuite
The Style object provides customizable properties for workbook formatting in NetSuite, enhancing report and visualization functionality.
- Asynchronous HTTP Requests with SuiteScript Promises
Use SuiteScript to send asynchronous HTTP requests with promises for efficient error handling and response processing.
- Setting Sublist Field Values in SuiteScript
Set values for sublist fields in SuiteScript using the setSublistValue method. Understand required parameters and error handling.
- In This Help Topic
Explore N/log module guidelines, log levels, and script execution logs for efficient logging in SuiteScript.
Advertising
Reach Platform Professionals
Put your product in front of NetSuite experts who work with Platform every day.
Sponsor This Category