The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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
1answer
45 views

Create Merge field in email template

I have a question related to email template. I have two object : 1. Sales order (This contain shipment type filed with Means_of_Transport__r as API ) 2. Means of transport (This contain code filed as ...
0
votes
1answer
16 views

Sending two different email alerts based on Sales orders

I am trying to create a process builder rule that does the below. When a new sales order is created - Send out a new email alert template. If the order quantity is changed - Send out an updated SO ...
1
vote
2answers
48 views

How to customize the email Template of the User Email address change Email

The Users want the content of the notification mail which they receive on changing the Email address to be modified. Or they want the From Email Address to be changed to a different one as some of ...
0
votes
1answer
105 views

Email template with visualforce issue, cannot set test record

This is the error that I'm faced today, and have no idea where it comes from! Error occurred trying to load the template for preview: List has no rows for assignment to SObject. Please try editing ...
1
vote
1answer
101 views

pdf is generating as invalid format

I have the following function which generated an email based on a template passed. The function is triggered from a rest api. public static Messaging.SingleEmailMessage singleMessageHelper( ...
0
votes
2answers
313 views

How can I update data extension after clicking Submit Button in the cloudpage?

I would like to update a field name "Email_Optin" in my data extension after clicking submit button and set the Value of it to True. Is this possible using ampscript?. Thank You!
0
votes
1answer
106 views

VF Email templates Boolean merge fields Automated Process User is always false

Use case: Trigger subscribes to Platform Event (hence running user = Automated Process) Trigger creates SObject w/ checkbox field set to TRUE Process Builder executes based on SObject values, ...
1
vote
0answers
36 views

How do I change social sharing icon in marketing cloud used in mailer?

There is a standard block of social share in marketing cloud. I want to change a particular icon (for example instagram icon, existing one is old one). Please let me know how do I change this ?
0
votes
1answer
207 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 ...
0
votes
1answer
147 views

Issue with Visualforce page email template subject line

I'm trying to send 3 different email using a single email template and visualforce component. I'm using rendered to display the text in html email vf component based on conditions. However, when I'm ...
0
votes
1answer
667 views

Converting Currency to Decimal And Converting Back To Currency Display in Email Template

I have a currency field that I multiply by .5 in my apex code. This changes the data type to a Decimal. I want to display on a visualforce email template the newly updated number as a currency. ...
0
votes
0answers
331 views

INVALID_CROSS_REFERENCE_KEY: invalid cross reference id

I'm triggering an email with OnAfterInsert. Inside the method, I have access to all the necessary data to send the actual e-mail: emailtemplateId whoId whatId internalEmailAddrs externalEmailAddrs ...
0
votes
0answers
729 views

Adding Images in Lightning Email Templates

I am trying to add images in lightning email templates. I have a formula field which has IMAGE function and it displays Image on record view. I have used that formula field as a merge field in ...
0
votes
0answers
23 views

Use CampaignMember.Id in List Mail

I need to send an email to all CampaignMembers. I need to include (among other things) the Id of the receiving CampaignMember in the email text. It's basically a custom link that points to a public ...
0
votes
1answer
181 views

How to use Campaign's Name in an Email sent with 'Send List Email' feature?

I'm composing an email to be sent to all members of my campaign. I use Summer '18 Release's new feature which is mass email sending through the campaign object. What I need is putting Campaign's ...
-2
votes
1answer
41 views

Send email (Visualforce Email Template) included Visualforce component which render after update action

Want to send email after update with multiple records I have used Visulaforce Email Template with Visulaforce component having controller. Visulaforce component that getting list of record in table ...
0
votes
0answers
217 views

Text value of a hyperlink field in email template

I am having a hyperlink field in Opportunity object as follows: Label : ObjectA Name Value : HYPERLINK('/'+ObjectA__c , ObjectA__r.Name) I want to use text value of hyperlink field in an email ...
0
votes
0answers
53 views

Email not getting delivered when sender (user's mail) and recipient have same email domain

I am testing my approval email templates. When I use "Send Test and Verify Merge Fields" and send the mail to my email account (xxx@testdomain.com) which is also my mail in the org, I don't receive ...
0
votes
2answers
15 views

Unable to Set dynamic CCAddress in HTML email/VF email template

I am trying to add {!contact.owner} in ccAddress while sending email. Email alert gets triggered on workflow. I could not find any ccAddress in HTML email and also in VF email template. Is it ...
1
vote
1answer
31 views

Mass Send email with list/table of data [closed]

I would like to send an email to 500 Person Accounts every day. The email contains a personalised list of their appointments for the day. What is the best approach for achieving this using Salesforce?...
0
votes
1answer
172 views

Related records in HTML email template

I have a email alert which fires on contact record edit. Is it possible to display related records name in HTML email template? I know it can be displayed using VF email template, but is a there a ...
0
votes
1answer
337 views

Not able to implement background image in HTML email template in GMAIL/OUTLOOK

I am trying to send a background image in email. I am using HTML email template without Letterhead. On Preview, I can see the background image but it is not displayed when send to email server. I have ...
0
votes
1answer
57 views

Unable to use ISCHANGED in HTML email template

I am using expression {! IF( ISCHANGED( customObject__c.Amount__c), 'changed', 'notchanged') } But on Send test and Verfiy Merge fields, it is not showing any values. However, ISBLANK and ISPICKVAL ...
0
votes
1answer
73 views

Adding several pre-headers and subject lines to the same HTML template - SalesForce Marketing CLoud

I have built an email template that my client will use in SalesForce Marketing Cloud. He requested to insert several pre-headers and subject lines in one template. Is that possible? Usually, in other ...
0
votes
1answer
297 views

Get a name of an Approver in Approval Assignment Email

BACKGROUND I have an approval process configured for Opportunities: I defined the Approval Assignment Email Template as follows: I am using 3 users in my org for this case: User Admin - (Profile: ...
1
vote
0answers
306 views

Can I use parent field in the new Lightning Email Templates

Summer 18 added the features Lightning Email Templates and also added support for Handlebars Template Language - HML I really hoped that also the ability to add a merged field of a parent object ...
0
votes
0answers
134 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
307 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
113 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
235 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
200 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
45 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
116 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
99 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 ...
1
vote
2answers
739 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
425 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
188 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
78 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 ...
2
votes
1answer
140 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 ...
3
votes
1answer
134 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
112 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
98 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
51 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
54 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
263 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
222 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
397 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
178 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?