In my org, there is a custom object named Customer
which has a lookup to Contact
. I am creating a fieldset for the object. In the fieldset, I wish to add the name or alias of the person who created the contact. If I add Created By
, it comes as Contact_ID__r.CreatedById
in apex. I want the name or alias and not the ID.
I referred to the salesforce documentation. I found the following sentence:
NOTE Only fields available in the API can be added to field sets.
Is it the case that Created By name or alias is not available in the API? Is there a way I can add it to the fieldset?
Please see the screenshots: