function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
RedtexsinRedtexsin 

Here's the problem. Lookups appear to be limited to standard fields on an object. I have not found a way to control which fields are included as standard fields when the custom object is created. This is necessary to make the lookup work properly.

LBKLBK
Id, Name and couple of Date and Ownership fields are the only standard fields in a Custom Object.

If you are talking about fetching the custom fields of the Lookup object, you can use the relationship_name.field_name to do so.

For example,
 You have ObjectParent__c object and ObjectChild__c is looking up to it (One ObjectParent__c record can have N ObjectChild__c records).

So, from ObjectChild__c you can refer any Parent field using ObjectParent__r.field_name.

Does this help?

If not, can you please elaborate your requirement a little more?