+ Start a Discussion
JoAnnCulbertsonJoAnnCulbertson 

Building Visual Force Quote Page...problems linking Account Field

When trying to display the account that is associated to the quote with this code:

 

<apex:outputField value="{!quote.Account}"/>

 

I keep getting a "ErrorError: Invalid field Account for SObject Quote" message when I try to save.  But - when I go to the list of fields for the Quote object, there is a field with the label Account Name and the field name of Account. 

 

What am I missing here.l..

 

Thanks for your help!

 

JoAnn

_Prasu__Prasu_

Strange that field is visible in Salesforce but not in Sforce Explorer.

Pradeep_NavatarPradeep_Navatar

Account is not directly accessible in the quote object. Go through the documentation available on http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_objects_quote.htm

 

To verify this, you can create a formula field and in step3, press insert field button. You will be able to see all the available fields and relations available with the quote object.

 

Did this answer your question? if so, please mark it solved.