My org has a custom object - call it Wario__c
- with two lookup fields. It can be the child of either a Lead
or a Contact
object.
In the Custom Object Definition for Wario
, it displays Contact (Contact__c)
and Lead (Lead__c)
under the header "Custom Fields & Relationships."
So far, so good. In the page layout, the Contact and Lead fields are "in use" and located prominently on the page.
But in actual, instantiated objects, there's no Contact
and no Lead
displayed. I can't query Wario__c.Contact__c
or Wario__c.Lead__c
, nor can I reach (for instance) Wario__c.Contact__r.Id
.
And when I look in the Workbench, the Contact__c and Lead__c fields are missing.
What might be going on here? Why can't I see or query the lookup fields on this object?