Salesforce Platform Developer I (legacy) — Question 5
A developer needs to join data received from an integration with an external system with parent records in Salesforce. The data set does not contain the
Salesforce IDs of the parent records, but it does have a foreign key attribute that can be used to identify the parent.
Which action will allow the developer to relate records in the data model without knowing the Salesforce ID?
Answer options
- A. Create and populate a custom field on the parent object marked as Unique.
- B. Create a custom field on the child object of type External Relationship.
- C. Create and populate a custom field on the parent object marked as an External ID.
- D. Create a custom field on the child object of type Foreign Key.
Correct answer: C
Explanation
The correct answer is C because creating a custom field marked as an External ID on the parent object allows for matching records based on the foreign key attribute from the external system. Option A is incorrect since a Unique field does not facilitate the needed relationship. Option B does not apply because an External Relationship field is not relevant for linking data without Salesforce IDs. Option D is also incorrect as a Foreign Key on the child object does not help in identifying the parent records without their IDs.