Question 1 of 5
Data Modeling/Database DesignA custom Shipment object has 19 custom fields marked External ID, 6 other custom fields marked Unique but not External ID, and 4 fields that Salesforce indexes automatically in the background. A migration team wants one more External ID field to hold the record key from a new source system. What should the architect tell the team?
Show the answer and explanation
Correct answer: B. It can't be added, because the 19 External ID fields and 6 Unique fields together use all 25 slots
Custom fields marked Unique count against an object's limit of 25 External ID fields, so the 19 External ID fields and 6 Unique fields already use all 25 and no room is left. Treating Unique fields as a separate allowance is the tempting mistake, but they share the same 25, while the indexes Salesforce adds automatically in the background don't count at all.
Read from the source: Custom Field Attributes


