Questions tagged [email-template]

Salesforce email templates come in a variety of shapes and sizes, ranging from Text to Visualforce. These email templates can be used through Salesforce through approval processes, workflows, etc to send email to users.

Filter by
Sorted by
Tagged with
0
votes
0answers
99 views

Multiple emails for each Step of an Approval Process

I would like to have custom emails sent out for each step of an Approval Process. The emails need to have different verbiage based upon the Step. I was thinking of using an Approval Assignment ...
2
votes
1answer
269 views

Visualforce Email Template does not always merge fields

BACKGROUND I have a Visualforce email template does not always fully merge correctly. Scenario 1: Via Setup - SUCCESS Using the Send Test and Verify Merge Fields button in Setup, the email merges ...
2
votes
1answer
104 views

Pass EmailTemplate relatedTo wholesale to a Visualforce Component?

Let's say I have a Visualforce Component similar to below: <apex:component access="global"> <apex:attribute name="relatedTo" type="MyObject__c" /> </apex:component> Now if I ...
0
votes
1answer
16 views

What 3rd Party Visualforce Email Editors are available/recommended?

Are there any 3rd party tools for coding Visualforce Email Templates which provide a decent editing and preview capability?
0
votes
1answer
193 views

Marketing Cloud - Can I pull in data from a data extension other than the one I'm sending to?

I have two data extensions. Data extension A has a record for each quote created via our website in the last 24 hours. There may be multiple records per email address, if the user has elected to ...
0
votes
2answers
126 views

ASK - Field value is blank in Apex single email (HTML Template)

My case is i want to send email with attachment in custom object using single email message using HTML Email Template (with letterhead). Current condition i successed to make the email same like ...
0
votes
1answer
44 views

Best practice for managing a large number of email templates

I am interested to understand what is best practices when managing an org with 100+ email templates. Specially in the circumstance where there is additional logic which needs to control which email ...
3
votes
0answers
100 views

Email Template - SObject row was retrieved via SOQL without querying the requested field: Serial_Number__c.Template_Item_Displayname__c

I have the following in an email template, which works: <!-- template item display name --> <apex:outputText rendered="{!NOT(ISBLANK(relatedTo.Template_Item_Displayname__c)) && NOT(...
0
votes
1answer
81 views

Retrieve email content (subject line, etc) from data extension and mark date used

We have a monthly newsletter for a product interest group. We would like to use a data extension to store email content (subject line, preheader, etc.) that can be used. Within the data extension ...
0
votes
2answers
635 views

Avoid email preference center in Pardot

We're using a custom preference center based on an external landing page. We want to remove or replace the default links in email footer to the required default email preference center How to replace/...
0
votes
1answer
340 views

dir=“rtl” and dir=“ltr” is not working on Android 4.4, 5.1 and 6.0 Email

dir="rtl" and dir="ltr" is not working on Android 4.4, 5.1 and 6.0 Email Any ideas on how to fix this issue?.
0
votes
1answer
177 views

Reference Content Block Not Working

During "Preview and Test" my Reference Block is not working. It only shows %%=ContentBlockbyID("12874")=%%, inside this ContentBlockID is my Physical Mailing Address and Profile Center, since it is ...
0
votes
1answer
63 views

Attachment in email template

On a custom object, I have a file storing a Google Docs file id. With the URL, I can download the HTML code of the doc : https://docs.google.com/document/d/ID/export?format=html I'd like to attach ...
0
votes
2answers
1k views

HTML email templates for SFMC

A client has contacted me asking to develop a set of templates for use with Salesforce Marketing Cloud. After many hours of searching, I'm left scratching my head. Though I've never heard of ...
1
vote
1answer
121 views

test class for renderStoredEmailTemplate

I am writing a test class for my controller that creates an email using renderStoredEmailTemplate to generate the body and subject. I am wondering if I need to somehow create an email template or ...
2
votes
1answer
96 views

Custom HTML Email with If statement

I'm still new to HTML, but have built a custom Salesforce email template. It has 5 tables in the body of the email and I created an If statement on the display style for each so that the box only ...
1
vote
1answer
92 views

Is it possible to keep 2 decimal numbers in a html email template

Say that we have a Number field called Quote. In the email template, we want to force it to have two decimal numbers. For example, if it is 4, we want to display 4.00. However, it is an html email ...
1
vote
1answer
85 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 ...
1
vote
1answer
44 views

Manual SingleEmailMessage change to template

I have a process using Apex and Visualforce to create a custom email with a pdf attachment and a field to enter body text. It is based off a custom object and the email addresses To, CC, bCC, are all ...
3
votes
1answer
52 views

Best approach to translating numerous email templates

The Problem: I have approximately 30 different email templates that are being sent out to applicants during an application process. Applicants have 3 language options: English, French & Portuguese....
1
vote
1answer
215 views

Visualforce email translation not working

I'm trying to use a Visualforce Email Template to translate content into another language. Even if I hard-code the language, when I click "Send Test & Verify Merge Fields", the email does not get ...
0
votes
2answers
198 views

Marketing Cloud email Template

I need to provide a payload to 3rd party tool to retrieve the email built in marketing cloud, Payload requires an unique email id for retrieving the email. But, suppose i have a multiple emails which ...
1
vote
1answer
350 views

Get data using merge fields in apex

I'm implementing custom functionality of merge fields on visualforce page. For that I'm adding templates in select option, after selecting particular template I'm rendering text-area with actual data ...
0
votes
2answers
147 views

Is it possible to build a chart in email?

I want to build a chart dynamically in the email by using the data in data extension, is it doable? how can i go about it?
0
votes
1answer
277 views

how to apply CSS features to Subject line of an Email Template for type HTML(LetterHead)

I have a req such as , Email Subject should be in Red color with Bold . I have to use only HTML(LetterHead) EmailTemplate .
0
votes
1answer
241 views

Lightning internal error when Insert Email Template

I try to insert email template in email in lightning experience but get internal error when modal window "Insert Email Template" opens. On classic everything works fine. It seems something related to ...
2
votes
1answer
341 views

external css in email template

Im building a email template in marketing cloud and i would like to use the external css inside the email template. I have created a css file and dragged and dropped in content builder folder but it ...
0
votes
1answer
30 views

how to attach vf email template in trigger

I need to attach visualforce email template in a trigger while firing mail,how to achieve this? trigger contentdoclinkattchment on Invention_Disclosure_New__c (after update) { if(trigger.isAfter){ ...
0
votes
2answers
70 views

vf email template can be editable once it managed?

In visual force email template,the user/admin will edit the content whenever necessary,so once it managed can we able to edit the vf email template??
1
vote
2answers
600 views

Conditional rendering using IF in Visualforce Template

I have a VF template where I need to vary the closing part of the mail(after 'Best Regards') based on a particular Picklist field on the case object. Eg if Custom_field__c ='ML' then the closing part ...
0
votes
2answers
33 views

How to get the email templates usage in vf page

I have a page in which I display the no of times the email templates was used in the particular days. But it is displaying the total no of times used instead of the particular usage. Here is my SOQL. ...
1
vote
0answers
221 views

SFMC REST Api, create template based email

Im trying to create an email via REST API, based on an existing template. The only real documentation I can find is https://developer.salesforce.com/docs/atlas.en-us.noversion.mc-apis.meta/mc-apis/...
0
votes
0answers
122 views

Attach Visualforce page as a PDF in Salesforce standard Email Functionality

I have a requirement to attach the visualforce page as a PDF in salesforce standard Email. I have tried to create "Visualforce Email Template" and attach it as a template here.But I could not able ...
0
votes
1answer
150 views

Unknown property 'VisualforceArrayList. error in apexOutput panel

I am wondering if there is a way to include two or more fields in an outputPanel tag, as shown below. My output is accounting for two fields, one within the object and the other in a related object (...
0
votes
1answer
373 views

Case Assigned Template not getting used when a case is assigned

I'm having a problem with Case Assignment Template. I'm only getting the standard system generated email notification when a case is assigned to me, despite me having an email template specified in ...
1
vote
1answer
923 views

Passing parameters to a Visualforce email template within Apex class

I am working on setting up a scheduled apex class to send out emails to me every day. I have a visualforce template that takes a user and an opportunity as parameters that I would like to use. The ...
1
vote
1answer
267 views

how to make visual force email template render as word document?

i need this page as word document,content type="application/word" is not supporting here.this is my code <messaging:emailTemplate subject="Test Email" relatedToType="Invention_Disclosure_New__c"&...
1
vote
1answer
1k views

Creating email action using template

I want to create a quick action to send an email. When attempting to assign an existing template to the predefined Email Template field I am left with a formula editor - how do I call up the email ...
1
vote
2answers
110 views

How to update a record in salesforce using a link which sent in an email template?

use case I need to send an email to all my contact stating that We have following information of urs in our production instance. User will decide whether they want to keep that information with us or ...
1
vote
0answers
32 views

Add A Visual Image Into a VF E-Mail template from the “Notes & Attachments” related list of a managed package object

This is the code I have written thus far: <messaging:emailTemplate subject="Your Offering Listing" recipientType="Contact" relatedToType="vlocity_ps__InventoryItem__c"> <messaging:...
0
votes
1answer
153 views

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

I'm trying to understand the VisualForce code below to see what was written & is causing the error above: <messaging:emailTemplate subject="Your Offering Listing" recipientType="Contact" ...
3
votes
0answers
140 views

Make Chatter Profile Photo available externally?

I'm working on making some email templates, made of various visualforce components. One of these includes some information about a user they'll be interacting with. Additionally, this component ...
0
votes
1answer
463 views

SF1 Lightning URL redirection/landing issues from Email

I am trying out to figure out if I missing some configuration or if there is a workaround for this requirement to make it work as expected. I have an email triggered from my apex controller which ...
0
votes
1answer
166 views

When i am sending Email from Batch Class, why i am not getting email tracking in HTML Email Status? [closed]

When I am sending emails from Trigger, I am getting email tracking on "HTML Status" related list but on the other hand When i am sending Email from Batch Class, why i am not getting email tracking in ...
0
votes
1answer
435 views

Email Alerts and Merge Fields not working.

i just need an email alert to be sent to contacts, and activity to be tracked, i need to know if they were opened or not. Process builder cannot provide that for me. The Problem is that none of the ...
0
votes
1answer
54 views

Emails firing twice with scheduler class

I am trying to send a HTML Email Template with an attached PDF, using this scheduler class. I receive two emails one with Attachment and the other is just the text without Attachment(not a text ...
4
votes
0answers
804 views

Automated Process User Permissions

We are having some difficulty with permissions. Our admin has also posted on the success board. https://success.salesforce.com/answers?id=9063A000000eB7V, she also found this same posting: https://...
0
votes
1answer
396 views

Is it possible to get the email subject string before sending it?

I know for a fact that it is possible to render the email context without sending it, using the Messaging class' method renderEmailTemplate. This is great for getting the message content rendered, but ...
3
votes
1answer
349 views

Visualforce Email Templates Dynamic Subject Child Object

I have looked through a number of different threads and haven't found any clear answers to populating a child object's value in the subject of a Visualforce Email Template. I want to populate the ...
0
votes
1answer
32 views

How to send an Email Template via Apex mentioning subject in the Apex Code

I am trying to send an email using email template via. I have done it successfully but I want to mention the subject in Apex code. When I mention the subject in Apex code, it successfully sends the ...