function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
is it possible to access the created by standard field name of a record? how and what is its api?
Hi,
Try the below code snippet as reference:
list<contact> cc = [select id,CreatedBy.name from contact];
Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved.
the API name of this field is CreatedByIdso u can query like [select id,CreatedById,CreatedById.Name from Account where id = '1231231231'];
i am trying to display this field in a form-
<apex:outputField value="{!rep.createdbyid.name}"/>
however i am getting an error. any suggestions how to rectify? (rep is a variable)
it worked. thanks :)
My mistake
I write CreatedById.Name it is CreatedBy.Name
Hi,
Try the below code snippet as reference:
list<contact> cc = [select id,CreatedBy.name from contact];
Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved.
All Answers
the API name of this field is CreatedById
so u can query like [select id,CreatedById,CreatedById.Name from Account where id = '1231231231'];
Hi,
Try the below code snippet as reference:
list<contact> cc = [select id,CreatedBy.name from contact];
Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved.
i am trying to display this field in a form-
<apex:outputField value="{!rep.createdbyid.name}"/>
however i am getting an error. any suggestions how to rectify? (rep is a variable)
it worked. thanks :)
My mistake
I write CreatedById.Name it is CreatedBy.Name