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
GhanashyamGhanashyam 

Exception error when using Standard field

In a Visualforce code, I tried to access a STANDARD field called Owner as follows
<apex:inputText value="{!case.owner}"></apex:inputText>

When I tried saving it, I got the following error message

"Error: ; nested exception is: common.exception.ApiQueryException: currencyisocode, description, id, owner, priority, status, type FROM ^ ERROR at Row:1:Column:42 No such column 'owner' on entity 'Case'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names."

I checked the permissions and it seems fine. The field I am trying to use is a standard field, hence I don't have to suffix it with __c.

I get similar errors with some other standard fields as well. Please let me what needs to be done to access these fields
hisrinuhisrinu
Hi,

Owner is not the field name, if you want to display owner name you need to give it like owner.name.
Check in explorer so that you will get the exact field names which will help you.
GhanashyamGhanashyam
Thanks Srinu. It works.