External IDs Overview

The externalId attribute of a RecordRef provides a means to reference an object by its foreign key in an external database.

You can set the externalID attribute during an add or update operation. External IDs are useful in the following situations:

To prevent duplicate records, you should use external IDs and the upsert and upsertList operations to add records to NetSuite.

Most NetSuite record types support the use of external ID, but not all do. The following list identifies the record types that do not support external ID. For all other records, you should assume that external ID is supported. When in doubt, refer to the appropriate page in the SOAP Schema Browser. On each page describing a record type, view the Attributes table to see whether external ID is supported.

Important:

External IDs are not displayed on records by default. However, you can search for external IDs, or you can add a custom field to the record types where you want to the external ID to be displayed in the UI. For information about searching in SOAP web services, see Basic Searches in SOAP Web Services. For information about working with custom fields, see Custom Fields.

The record types that do not support external ID are:

Guidelines for External IDs

Consider the following guidelines for external IDs:

Related Topics

Records in SOAP Web Services
Record Types
Search Records
Subrecords
Using Internal IDs, External IDs, and References
Shared Internal and External IDs

General Notices