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
sudhansudhan 

Invalid field address for SObject account in visual force email template

in accounts i have two types of address shipping and billing. so i'm not able to use {!relatedTo.city} and even if i give {!relatedTo.ShippingAddress__c.city__c} it displays invalid field shippingaddress for sobject.Help me out and thanks in advance

Best Answer chosen by Admin (Salesforce Developers) 
bob_buzzardbob_buzzard

Once again the Force IDE is your friend.

 

Looking at the fields on the object, the billing data is BillingCity, BillingCountry etc, while the shipping data is ShippingCity, ShippingCountry etc.

All Answers

bob_buzzardbob_buzzard

Once again the Force IDE is your friend.

 

Looking at the fields on the object, the billing data is BillingCity, BillingCountry etc, while the shipping data is ShippingCity, ShippingCountry etc.

This was selected as the best answer
sudhansudhan
Thanks friend