You need to sign in to do that
Don't have an account?

Error is in expression '{!case.Asset}' in component <apex:inputField>
Hi All,
I am creating Vf page while rendering the Vf page i am geting the below error .
Error is in expression '{!case.Asset}' in component <apex:inputField> in page newaccountpage
Asset is the Lookup filed for the case object
<apex:page standardController="case" >
<apex:form >
<apex:pageBlock >
<apex:pageBlockSection title="Case Details " collapsible="true">
<apex:inputField value="{!case.Subject}"/>
<apex:inputField value="{!case.CaseNumber}"/>
<apex:inputField value="{!case.Priority}"/>
<apex:inputfield value="{!case.Asset}"/>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
</apex:page>
Thanks,
Vijay.
I am creating Vf page while rendering the Vf page i am geting the below error .
Error is in expression '{!case.Asset}' in component <apex:inputField> in page newaccountpage
Asset is the Lookup filed for the case object
<apex:page standardController="case" >
<apex:form >
<apex:pageBlock >
<apex:pageBlockSection title="Case Details " collapsible="true">
<apex:inputField value="{!case.Subject}"/>
<apex:inputField value="{!case.CaseNumber}"/>
<apex:inputField value="{!case.Priority}"/>
<apex:inputfield value="{!case.Asset}"/>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
</apex:page>
Thanks,
Vijay.
Change the {!case.Asset} ==> {!case.AssetId}
AssetId is the API Name for Asset field.
Thanks,
Maharajan.C
All Answers
Change the {!case.Asset} ==> {!case.AssetId}
AssetId is the API Name for Asset field.
Thanks,
Maharajan.C
Thanks it worked fine when i checked on the object the filed name showed as Asset.
Can you help me how to know the API name in salesforce .
Thanks,
Vijay.
Case Object Standard Fields you can refer the below documnet.
https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_case.htm
Thanks,
Maharajan.C