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
sfdc startsfdc start 

plz check the error.....while creating lookup field in opp.standard opp.account is error.....plz clear it

while creating a vfpage on standobject account lookup field cant created
Best Answer chosen by sfdc start
harsha__charsha__c
The Account Lookup field reads it's API name as Account but it's "AccountId" in real. It applies to almost all standard lookup fields (get Id added in the last).
 
<apex:inputField value="{!Opportunity.AccountId}"/>

- Harsha

All Answers

Ishwar ShindeIshwar Shinde
Could you please try Opportunity.AccountId intsated of Opportunity.Account ?
Swaraj Behera 7Swaraj Behera 7
Hi,
Update Opportunity.Account to Opportunity.Accountid.
Thanks
harsha__charsha__c
The Account Lookup field reads it's API name as Account but it's "AccountId" in real. It applies to almost all standard lookup fields (get Id added in the last).
 
<apex:inputField value="{!Opportunity.AccountId}"/>

- Harsha
This was selected as the best answer