Salesforce Platform Developer I (legacy) — Question 57
What is an example of a polymorphic lookup field in Salesforce?
Answer options
- A. The WhatId field on the standard Event object
- B. The ParentId field on the standard Account object
- C. A custom field, Link__c, on the standard Contact object that looks up to an Account or a Campaign
- D. The LeadId and ContactId fields on the standard Campaign Member object
Correct answer: A
Explanation
The WhatId field on the standard Event object is a polymorphic lookup field because it can reference either an Account or a Campaign. In contrast, the ParentId field on the Account object is a standard lookup that only points to one specific object, and the other options either refer to fields that do not exhibit polymorphism or are not lookup fields.