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
Harris DHHarris DH 

Visualforce Invalid Fields...

I am trying to reference Account fields by a Visualforce page;

 

 

<apex:page standardcontroller="Opportunity" renderas="pdf" standardstylesheets="false" sidebar="false" showheader="false">

 

 

{!Opportunity.Account.BillingAddress}

{!Opportunity.Account.Name}

 

 

</apex:page>

 

Account Name works a treat, but for the Billing Address it is returning; 

 

 Error: Invalid field BillingAddress for SObject Account 

 

I've tried everything, it's doing it for a lot of valid fields... 

 

Please someone help :(

 

Many thanks

 

 

SurekaSureka

Hi,

 

You can't access Billing Address Field as whole. You can access it as "Billing Street" "Billing City" etc..

 

Thanks