Get Record
AI-generatedOverview
This node operation retrieves a specific record from NetSuite based on the provided record type and internal ID. It supports expanding sub-resources, returning fields in a simplified enumeration format, and limiting the API version used. This operation is useful for fetching detailed information about a single record, such as a sales order, customer, or custom record, directly from NetSuite.
Use Case Examples
- Fetch a sales order record by its internal ID to process order details in a workflow.
- Retrieve a customer record with expanded sublists to analyze customer data and related transactions.
- Get a custom record by specifying its script ID and internal ID for custom business logic integration.
Properties
| Name | Meaning |
|---|---|
| Record Type | Specifies the type of NetSuite record to retrieve, e.g., salesOrder, customer, or custom record types. |
| Custom Record Script ID | The internal identifier of the Custom Record type, required if Record Type is custom. |
| ID | The internal identifier of the record to retrieve. Prefix with eid: to use the external identifier. |
| Restrict Returned Fields | Optionally specify which fields and sublists to return in the response. |
| Expand Sub-resources | If true, automatically expands all sublists, sublist lines, and subrecords on the record. |
| Simple Enum Format | If true, returns enumeration values showing only the internal ID value. |
| API Version | Specifies the API version to use for the request. |
Output
JSON
json- The retrieved record data including fields, sublists, and optionally expanded sub-resources.
Dependencies
- NetSuite REST API
- An API key credential for authentication
Troubleshooting
- Ensure the internal ID is correct and exists in NetSuite to avoid record not found errors.
- If using a custom record, verify the custom record script ID is accurate.
- Check API version compatibility if the request fails due to unsupported features.
- If expanding sub-resources, large records may cause performance delays or timeouts.
Links
- NetSuite REST API Documentation - Official documentation for NetSuite REST API endpoints and usage.