Questions tagged [vf-email-template]
The vf-email-template tag has no usage guidance.
49
questions
0
votes
1
answer
33
views
Sending VF Email in Apex
I'm trying to send one VF email template through apex.
while sending emails from Apex, my data is not rendering in the email template, I'm not sure what I'm missing.
VF Email:
<messaging:...
0
votes
0
answers
71
views
Is it possible to show button to display a link on email templates in Salesforce
I have a classic email template where I am sending a link to a survey invitation to users. Due to some privacy laws, the link should only show up on the email, when the user clicks on a button 'Ok to ...
0
votes
0
answers
51
views
Can I use <messaging:htmlEmailBody> and <messaging:plainTextEmailBody> in the same template?
I wonder if it is possible to use <messaging:htmlEmailBody> and <messaging:plainTextEmailBody> in the same template? Nothing is mentioned about it in the official Visualforce documentation....
0
votes
1
answer
169
views
<Apex:OutputLink> Tag not generating link in Visualforce email template
I have a Visualforce Email template which is as below:
<messaging:emailTemplate subject="Pricing tool ticketing requested
{!relatedTo.S_TicketingTool__r.S_Price__r.Name}
{!relatedTo....
-1
votes
1
answer
92
views
Error: Unknown property 'VisualforceArrayList.URL_to_Corrective_Action__c'
I am receiving this error when trying to add a field to a VF template. Here is what my code looks like:
Item Reference: {!relatedto.Corrective_Actions__r.URL_to_Corrective_Action__c}
The field I am ...
-1
votes
1
answer
37
views
condtionally render the content in vf pag email template in salesforce
Depending upon account type( personal, commercial) need to render welcome message in VF page with if condition.
relatedToType="Account"
for commercial account
{!relatedTo.Name},
for personal ...
1
vote
0
answers
296
views
How do I dynamically show/hide a line in a classic email template
I'm working on a functionality that sends an email to the user with a links to a list of documents. The following is the code from .email VF template that does it.
<!-- starting lines of email --&...
0
votes
0
answers
443
views
VF email template not showing some case field values when firing through flow
I have a recordtriggered flow on EmailMessage which fires on incoming emails. Whenever the email message is inserted the recordtriggered flow sends an email alert which is using vf template.
When I ...
0
votes
1
answer
2k
views
Community Forgot Password Email Template picking up incorrect merge fields values - Spring 22 Preview Effect
Background
We've been using Visualforce Email Template for a Community forgot password emails that used to work fine until a few days ago. The emails are triggered using Site.forgotPassword(username, ...
1
vote
1
answer
335
views
Help Required on visualforce email template
I Have an email template which is fired whenever a text value is updated on the field named ABC. Here I am getting updated text values only.
But my requirement is to get the history of the field (...
0
votes
1
answer
604
views
how to have buttons and social media images in salesforce email template
Hi,
I have a requirement to create email template which includes company logo as header, email content , button, social media icons and other links and it has to be used in customer community.
Looks ...
0
votes
1
answer
413
views
VF Email Template - Welcome New Member - {!$User.FirstName} displays created by user, not recipient
As title suggests, I've created a Welcome New Member email using VF email template.
However the merge field {!$User.FirstName} and {!$User.Username} are displaying the created by user - i.e., our ...
0
votes
0
answers
115
views
rendered not working in vf email template
I am trying to dynamic render vf component inside a vf template using rendered attribute. But i am not getting any values and i am receiving a blank email.
Here i am trying to send email with ...
0
votes
0
answers
39
views
Unable to send multiple templates as pdf in an email - VF template
I have WorkOrder, WorkOrderLineItem and Product2 object. In trigger when WorkOrder Status will become completed, i am checking if tht WorkOrder contains specific 2 type of products. If it is present i ...
0
votes
1
answer
309
views
Get last created related object data in Visualforce Email Template
I have a Visualforce Email Template which is as follows
<messaging:emailTemplate recipientType="Contact"
relatedToType="Case"
subject="Test">
...
<apex:...
0
votes
1
answer
452
views
rich text not formatted on vf pdf properly
I have created a vf page pdf and use a custom RTF field but on PDF it is not rendering properly
i tried outputText and OutputField tag but not able to fix the issue.
on Detail page Image is below
On ...
1
vote
2
answers
1k
views
"Unsupported attribute ..." error when deploying VF Email template with ANT
I spent an entire day trying to figure out why I got this error in my deployment but could not figure out why. So I hope someone here could shed some light on this.
This is the error I got. I don't ...
0
votes
1
answer
396
views
$Site.Domain is not working in Visualforce Email Template
Trying to read the force.com subdomain URL host-name in Visualforce Email template as below.
<td style="text-align: center;font-family: 'Heebo', sans-serif;font-weight:300; padding: 20px;&...
0
votes
2
answers
217
views
Visualforce Email Template apex:facet not showing in result
I am having an issue wherein the apex:facet header for my apex data table is not showing up in the result. I am fairly certain this is due to be adding a filter for the record type in the column. ...
0
votes
1
answer
116
views
Format String Visualforce Component in a Custom Visualforce Template
I am struggling with something I think should not be difficult but I am not able to figure out, my date field display as the below screenshot.
My aim is to remove from the template the characters 00:...
0
votes
0
answers
135
views
MailingState field showing statecode instead of state/province Name
I am writing a visualforce email template and trying to show the recipient's mailingState Name. My piece of code is given below:
<messaging:emailTemplate subject="{!$Label....
0
votes
0
answers
584
views
Visualforce Email template recipient type with multiple customized objects. Create customized object
Requirement is to use email template with visual force components, and send an email for each environment the contact is associated to. For example, contactA is associated with env1, env2, and env3. I ...
0
votes
2
answers
528
views
Email content not rendering when Pass custom relatedTo object's param from visual force email template to controller
I'm really confused by order of execution. I have tried with a few posts, but mine does not work. Please help with taking a look.
I am able to receive the templated email, but there's no incident ...
0
votes
4
answers
877
views
Unable to retrieve {!recipient.Fieldname} values in custom visual force email template
I have created a custom visual force email template as below. When I use this template, I am unable to retrieve {!recipient.Fieldname} values in the received email.
Flow: Create a new Event from a ...
0
votes
1
answer
2k
views
Visualforce email template in Lightning
Can anyone let me know how to create VF email template in Lightning. For email templates in Lightning, we have a tab called Email Templates. When I tried to create a new template, I have an option of ...
0
votes
0
answers
79
views
Is it possible to schedule sending a VF Page via Email?
We have this requirement that says we need to schedule once a month the sending of a VF page that contains custom dashboard charts via email.
So if we break this requirement down, we need to do the ...
0
votes
1
answer
2k
views
Visualforce Email Template - broken images for all Email Clients? Workaround?
I have a case open with Salesforce, but I usually have better luck here.
I have tested an email template on numerous mail clients - Outlook 2010, Outlook OWA, Gmail, and Yahoo. However all of them ...
1
vote
1
answer
1k
views
VF Email Template throws List has no Rows to sObject when invoked via VF Component
I'm facing an issue with VF Email Template. The error is not very Clear :
"Error Error occurred trying to load the template for preview: List
has no rows for assignment to SObject. Please ...
0
votes
1
answer
7k
views
Get community link in email template
In the Visualforce page context, we have the $Site.Prefix formula available to get the community's path prefix so we can adapt our link for the internal users.
I'm wondering if something similar can ...
1
vote
0
answers
1k
views
Attach File/ContentVersion into a standard visualforce email template
I have an api that gets pdf invoices and stores them as Salesforce Files. I then want the sales rep to be able to send the email template with the pdf attached. Using standard visualforce email ...
1
vote
0
answers
105
views
Add existing attachment in visualforce Email template via workflow
I have a scenario that when billing is generated in system. Invoice should be send through mail to Person Account Email. I am doing this via workflow. In workflow I have a VF email template which ...
0
votes
0
answers
223
views
Email Sending when task is created
I have a requirement to send out emails when tasks are assigned to the assigned user. These tasks are specific for cases, meaning tasks are created only for cases. The template has the subject line ...
0
votes
1
answer
509
views
How to Avoid Exponential Value(2.0E+7) in VF Email Template?
I have designed VF Email template inwhich when I closed an opportunity,it sends notification email to owner of record.
Below is the VF page that I designed:
<messaging:emailTemplate subject="...
2
votes
0
answers
952
views
Help in debugging VF Email template
I have a VF email template created that uses a VF component with attribute URLType which gets the value dynamically on Email from the controller for a community URL(External) and salesforce URL (...
0
votes
1
answer
262
views
How to send the Case attachment in an alert email using VF Email Template?
I want to send the Case attachment in an email to Risk & Legal team when Manager approves the request. For this I have created the VF Email Template (Because in Email Template I have header, ...
2
votes
1
answer
80
views
How to print data in VF email template without line break?
I am working on the salesforce VF email template. I want to show the details like below.
Cofidentials
In my younger and more vulnerable years my father gave me some advice that I've been turning over ...
4
votes
1
answer
2k
views
How to create the fixed width table in VF Email Template or using html?
I am creating a VisualForce Email Template and I have a table (exactly the same shown below in screen shot) which I want to show using either html or VF, but doing below in VF looks very difficult and ...
4
votes
3
answers
8k
views
Error Error: Unsupported type: common.api.soap.wsdl.Address used in expression: relatedTo.Account.PersonMailingAddress
I am new to the salesforce and creating an VisualForce Email Template and I have a field which I want to show in VF Email Temlate, but when I am trying to show it
Account object is having the below ...
0
votes
1
answer
533
views
Error Error: Invalid child of messaging:emailTemplate. Only messaging components are allowed as children of messaging:emailTemplate
I am facing the below error while creating the VisualForce Email Template.
Why?
Error
Error Error: Invalid child of messaging:emailTemplate. Only messaging components are allowed as children of ...
1
vote
0
answers
540
views
Visualforce Email Template Error
I am trying to enable automatic Visualforce Email Template, but I get the following error message on Visualforce Email Template Edit page:
Error occurred trying to load the template for preview: ...
0
votes
1
answer
262
views
visual force component in salesforce [duplicate]
Visual Force Component:
<apex:component controller="myController1" access="global">
<p />
<apex:outputLink id="urlString" value="{!url}/{!$User.Id}?noredirect=1&...
1
vote
1
answer
372
views
Using VisualForce Email templates
I have Contacts object (contains the employees) and a Custom object called Organizations (which has the list of companies) and they are related using Lookup relationship (there is a lookup field on ...
3
votes
1
answer
5k
views
How to show the todays date in VF Email template in salesforce
I am using {!Today} in a Custom Email Template and it is showing today's date.
But I need to change the template to VF template and I am getting a error.
Can suggest how can I show today's date ...
4
votes
3
answers
997
views
VF Email Template With VF Component Not Working For Community Forgot password
I had changed Email template for "Forgot Password" as VF Email Template that contains a VF Component in Salesforce Community.
But when that VF Email Template -->VF Component have controller then email ...
2
votes
1
answer
3k
views
How to get Visualforce Email template content in apex?
I have a requirement where i have to use Visual force Email template.so, i have created a vf email template.Now i want to get that vf email body in apex controller.i now if i use custom HTML template ...
0
votes
1
answer
843
views
Link to Report on VF Template
Is there a way to add an Link to a particular report onto the visualforce email template.
example:<apex:outputLink value="{!LEFT($CurrentPage.URL,FIND('/',$CurrentPage.URL,9))+'/'report.id}">...
3
votes
1
answer
1k
views
Rendering an Email Template with merged values
A while back I accidentally discovered this GREAT feature of Salesforce where I could display a merged email template via a URL.
It was a great feature to show sample emails in my help documentation....
1
vote
1
answer
527
views
Sending an VF Template Using Apex
I am trying to send an VF Template using the Schedular Apex. when i run the code below is the error message received:
FATAL_ERROR System.EmailException: SendEmail failed. First exception
on row ...
0
votes
1
answer
1k
views
Getting VF Email Template Content in Apex
I have a VF email template and in apex I want to get it's content and will replace its merge fields. I am using below code but it gives null value.
EmailTemplate et = [select body,htmlvalue,...