Cert++
Close

External ID and unique field types

Key Takeaway

External ID makes a custom field a matching key for outside systems, while Unique blocks duplicate values. They are separate settings, and Salesforce recommends marking External ID fields as Unique too.

External ID is a setting on a custom field. It marks the field as holding a record's ID from another system, so integrations and imports can match records by that value instead of by Salesforce IDs. Unique is a separate setting that blocks duplicate values, and the two settings are often used together.

What an External ID field does

For example, imagine Salesforce links with Oracle Financials. You can create an External ID field on Account to capture and display each account's Oracle ID.

With a field like this, you can match records without knowing their Salesforce IDs. You can use it to update or upsert records through the API, such as an upsert in Data Loader.

You can also match on External IDs to avoid creating duplicate records when you import custom objects, solutions, or person accounts with the Data Import Wizard. The wizard finds existing Salesforce records whose External IDs match the values in the import file.

The values in an External ID field are searchable in Salesforce. The field is also indexed, so selective filters on it run quickly.

Platform App Builder Study Guide

Checklist progress

0/340Learned

Given a scenario, determine the considerations when selecting or changing a field data type.

0/19

Text and long-text field types

Learn this concept

Number, currency, and percent fields

Learn this concept

Date, Date/Time, and Time fields

Learn this concept

Checkbox versus Yes/No picklist

Learn this concept

Email, Phone, and URL field types

Learn this concept

Global picklist value sets

Learn this concept

Record types and picklist values

Learn this concept

Auto-Number field configuration

Learn this concept

External ID and unique field types

Learn this concept

Geolocation custom fields

Learn this concept

Formula versus stored field types

Learn this concept

Classic encrypted text fields

Learn this concept

Field history tracking

Learn this concept

Blocked custom field type changes

Learn this concept

Prepare for the Exam

Play Today's Certle

Study Community

Ask questions and get the latest info from other Platform App Builder studiers. 757 members and growing.