Concept and mechanism
Development starts by defining what each record represents. An external reference identifies an entity correctly only within its context: the same number may exist at two suppliers. External ID and Unique are distinct settings; matching does not guarantee uniqueness.
Before applying a constraint, reconcile duplicates and establish whether they actually represent the same entity. Relationships also represent lifecycle decisions. Master-detail connects detail to master and supports native aggregates, but deletion dependency may conflict with independent retention.
A lookup relationship likewise requires reviewing deletion behavior and necessary controls. User-facing labels do not replace the API names used by code.
Guided application
In a settlement-tracking application, first model requests, participants, and evidence. Identify which data must survive request closure or removal. Record each key’s origin and test collisions across systems.
An sObject constructed in memory is not yet persisted: constructing the instance, validating fields, and performing DML are different steps. During technical review, request examples of creation, modification, duplication, and deletion. Confirm API names in metadata and document decisions affecting reports and automation.
This analysis reduces late corrections during imports and avoids treating a customer’s name as technical identity.
Agentforce for Developers: uses and limits
The official Salesforce Platform Developer exam guide includes use cases and limitations of Agentforce for Developers. An assistant integrated into development tools can help with Apex and Lightning Web Components code suggestions, method explanations, documentation, and initial test drafts.
This accelerates exploration; it does not establish that generated code meets the business requirement or is secure for deployment. Distinguish IDE suggestions from capabilities actually executed in an org: an assistant response does not grant permissions, validate the data model, or prove that a business outcome occurred.
Before accepting generated code or tests, review business rules, fields and API names, sharing, CRUD and field-level security, governor limits, and transaction effects. Require human review, independent assertions against expected results, denied-access cases, and explicit platform-version context.
Tool capabilities and commercial names evolve, so verify current documentation and org availability rather than assuming a feature is present.
Two providers submit reference 812 for different requests. A key including source can distinguish the entities; applying Unique only to the number would reject a legitimate request. Reconciliation should preserve decision evidence.
Common pitfalls
Confusing External ID with Unique; choosing master-detail solely to obtain a total; inferring API names from labels; treating new sObject as a save.
Related topics: Collections and choosing configuration or code · Queries, DML, and error outcomes · Triggers, limits, and asynchronous processing
Define identity and lifecycle before writing logic. Separate in-memory representation, schema, and persistence.
References
- Differences between External ID and Unique field settings · Published 2026-07-16; body inspected 2026-10-01
- Object Relationships · Salesforce rolling documentation inspected 2026-10-01
- Roll-Up Summary Fields · Salesforce rolling documentation inspected 2026-10-01
- Use sObjects · Salesforce rolling primary documentation inspected 2026-10-01; API context stated per example
- Execution Context · Primary documentation inspected 2026-10-01; explicit runtime and CLI context in exercises
- Introducing Agentforce for Developers · September 2024 historical capability reference matching blueprint name; not current installation/model/privacy guarantee