7 votes

Error Error: Unsupported type: common.api.soap.wsdl.Address used in expression: relatedTo.Account.PersonMailingAddress

Address is a Compound field which can only be accessible by SOAP or REST API. You cannot use Address compound field in VFP. You need to use individual fields of the Address. {!relatedTo.Account....
user avatar
6 votes
Accepted

How to show the todays date in VF Email template in salesforce

In visualforce you need to use {!TODAY()}. Also you can use Year, Month and Day to format it any way you want it. For example: {!DAY(TODAY())}-{!MONTH(TODAY())}-{!YEAR(TODAY())} {!MONTH(TODAY())}/{!...
user avatar
5 votes
Accepted

How to create the fixed width table in VF Email Template or using html?

You need to create a CSS and add styling to handle this. <table class="fixed"> <col width="20px" /> <col width="30px" /> <col width="40px" /> <tr> ...
user avatar
4 votes
Accepted

Error Error: Unsupported type: common.api.soap.wsdl.Address used in expression: relatedTo.Account.PersonMailingAddress

A more correct merge would be something more like: {!relatedTo.Account.PersonMailingStreet}<br /> {!relatedTo.Account.PersonMailingCity}, {!relatedTo.Account.PersonMailingState} {!relatedTo....
user avatar
  • 143k
4 votes
Accepted

Get community link in email template

I had a similar use case with a partner community. After extensive search, I couldn't find a proper solution, so we used the following workaround. We used a Custom Label to store the Community URL ...
user avatar
  • 2,562
3 votes
Accepted

How to Avoid Exponential Value(2.0E+7) in VF Email Template?

I don't know where you are working but they are making interesting deals :D If you want your amount to be formatted as currency you should use: Total Value:<apex:outputText value="{0, Number, ...
user avatar
  • 7,218
3 votes
Accepted

Visualforce email template in Lightning

Visualforce email template is available in Lightning, but you can't create a new VF template directly from lightning. for that, you have to use classic email templates setup. You can use same Classic ...
user avatar
3 votes
Accepted

Rendering an Email Template with merged values

Jodie -- you got me curious and while I'm not sure exactly how you intend on using this.... but the following URL works fine in my Dev Edition https://myDomainPart1--c.myPod.content.force.com/email/...
user avatar
  • 62.3k
2 votes

Sending an VF Template Using Apex

I got it fixed. Just by removing the mail.setSubject('Test Email'); When an vf temaplte is used we should't include mail.setSubject(); The subject is taken from the vf template
user avatar
2 votes

Help Required on visualforce email template

You can use a before update Flow or an apex trigger to write the old value to a custom field. Then you can reference the field that has old value in your email template. Using Flow When a record is ...
user avatar
1 vote

Community Forgot Password Email Template picking up incorrect merge fields values - Spring 22 Preview Effect

26th JAN 2022 Based on Case with Salesforce Support. It has been confirmed as a bug. They mentioned the Product team is working on a similar known issue, and if the issue still doesn't resolve they ...
user avatar
  • 1,262
1 vote

VF Email Template - Welcome New Member - {!$User.FirstName} displays created by user, not recipient

Be careful of the merge fields you use, depending on the email template. For VF email templates: {!$User.x} references the user that created the community member. {!Recipient.x} references the ...
user avatar
1 vote
Accepted

Get last created related object data in Visualforce Email Template

Without a way to specify a controller or extension in the template itself, anything you do in the component will be constrained to that component. You also can't reliably use <apex:variable> ...
user avatar
  • 434k
1 vote
Accepted

Format String Visualforce Component in a Custom Visualforce Template

Here is your issue: The field passed to the VF component is of type Date trialRequestShipDate="{!relatedTo.Requested_Ship_Date__c} The component defines it as type String <apex:attribute name ...
user avatar
  • 62.3k
1 vote
Accepted

Unable to retrieve {!recipient.Fieldname} values in custom visual force email template

Use a custom component to deal with the polymorphism of Event.WhoId <messaging:emailTemplate subject="foo" relatedToType="Event"> <messaging:htmlEmailBody > <html> <body>...
user avatar
  • 62.3k
1 vote
Accepted

Visualforce Email Template - broken images for all Email Clients? Workaround?

Neither of your URLs are correct. Your code should include the server (emails are naturally not on the same server as Salesforce), and you need to verify the parameters you're putting in to the URL. ...
user avatar
  • 434k
1 vote
Accepted

How to print data in VF email template without line break?

Wrap the 2 lines within the same component and put a after the period <h5>In my younger and more vulnerable years my father gave me some advice that I've been turning over in my mind ever ...
user avatar
  • 16.5k
1 vote

Error Error: Unsupported type: common.api.soap.wsdl.Address used in expression: relatedTo.Account.PersonMailingAddress

Mailing Address is a combination of 5 fields (MailingCity, MailingStreet, MailingState, MailingPostalcode & MailingCountry). You cannot add mailing address directly to the Visualforce template. ...
user avatar
  • 833
1 vote
Accepted

Error Error: Invalid child of messaging:emailTemplate. Only messaging components are allowed as children of messaging:emailTemplate

The issue is occurring because you are commenting your code like apex class with "/**/" sign. As it Visualforce email template it should be commented like visual force page like below : - <...
user avatar
  • 1,378
1 vote
Accepted

visual force component in salesforce

Generally, you use parameters to customize a component. That might look like this: <apex:component controller="myController1" access="global"> <apex:attribute name="showUrl" assignTo="{!...
user avatar
  • 434k
1 vote
Accepted

Using VisualForce Email templates

Here's the broad strokes of what I'd do: Create a custom Apex controller to use with your visualforce template. The main purpose of this controller would be to use a SOQL query to return a list of ...
user avatar
  • 3,472
1 vote

VF Email Template With VF Component Not Working For Community Forgot password

I hope your issue has got resolved. If not yet, please refer the points mentioned below. You will start receiving Forgot Password emails by setting recipient as Contact in Visualforce Email Template....
user avatar
1 vote

Link to Report on VF Template

Simply use: <apex:outputLink value="{!('/' + report.id)}">Link</apex:outputLink>
user avatar
  • 12.7k
1 vote

Getting VF Email Template Content in Apex

I can suggest a workaround like this: Getting Email's Html body Here, in this link, @Pieterjan Carly, didn't send actual email. However he used a feature of Salesforce, when we use SEND method, it ...
user avatar
  • 2,761

Only top scored, non community-wiki answers of a minimum length are eligible