My org has a custom object – call it
Wario__c– with two lookup fields. It can be the child of either a
In the Custom Object Definition for
Wario, it displays
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
Leaddisplayed. I can’t query
Wario__c.Lead__c, nor can I reach (for instance)
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?
Feels like you may not have permissions to the fields. If that is the case you won’t see them or be able to query them (you won’t see them via workbench either).
Click on the fields, then click on “Set Field Level Security” and ensure your profile can see them.