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

Invalid field address for SObject Lead in visual force email template
i wanted to use merge fields in visual force email template.It worked fine for relatedTo.name but it doesn't work for relatedTo.address
<apex:image url="https://na1.salesforce.com/resource/1259064527000/Header"/>
<b>{!relatedTo.Name}<br>
{!relatedTo.address}<br> <-here it doesn't work but previous line works perfectly
ARE YOU IN PAIN?<br>
WE CAN HELP!<br>
it display error as invalid field address for sobject lead.
All Answers
Thanks for the solution.In accounts i have two types of addresses namely shipping and billing address if i use
{!relatedTo.ShippingAddress__c.City__c} or{!relatedTo.ShippingAddress__c.City} both are not working.Suggest me to come out of this problem.