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
2
votes
1answer
23 views

Not Able to get fields from controller to Email Template when the mail is sent from scheulder

It would be great if I could get help with the below requirement that I have to achieve. The requirement is that I run a scheduler in a custom object called Project__c. Around 20+ projects pass the ...
0
votes
1answer
171 views

Template marketing cloud : I would like to unlock full html, so that i can personnalize my template with class and tables

I used a marketing cloud template and I want to custom it with extra html (to make it renders well on a specific email client). The thing is that when i click on code view > toggle 'show full html'> ...
0
votes
0answers
16 views

Merge value is not showing up in email send out

I have set up email template using several merge fields, but only fields from {!Account} that are shown in the email body. the email as follow Hello {!Contract.OwnerFullName}, We would like to ...
0
votes
1answer
13 views

how to retrieve the previous email template?

I recently changed the email template however i want to see my previous email template. Can anyone suggest on this how we can retrieve the previous email template?
0
votes
0answers
26 views

Marketing Cloud _click LookupOrderedRows in AMPScript

I have a anchor href link on my Email. I am tracking the click activity on the link. When the link is clicked, is there a way to lookup the _click database using AMPScript LookUpOrderedRows or ...
0
votes
1answer
50 views

Need a way to change email address link depending on sender profile marketing cloud

I have an email link icon in the footer of my email template. I want to be able to change the link of the email address in the footer dynamically depending on the 'from email' of the sender profile in ...
0
votes
1answer
50 views

Ampscript Block If/Then With Null Value

So I have the following Ampscript block at the header of my email: %%[ Var @current_term_end_date, @rows if Rowcount(@rows)>0 then Set @row = Row(@rows, 1) Set @current_term_end_date = ...
0
votes
0answers
20 views

Email information of Child Object while creating Parent object Record

We have two Custom Object having MD relationship Query (Parent) Questions (Child) Now, we have created a record for Query (Parent) and added multiple questions in Questions Object(child). We have ...
1
vote
2answers
41 views

Can't get the value of “relatedto” when sending email through customer portal

I have visualforce email templates for reset password & welcome email for community users. But relatedto fields are not displaying in the email template. Is it a salesforce issue? <messaging:...
1
vote
0answers
79 views

Custom object doesn't appear in “Related Entity Type” dropdown for Lightning Email Template

When I go to create a Lightning Email Template, a custom object I recently created doesn't appear alongside other custom objects in the list of objects available for merge field filtering. What do I ...
0
votes
1answer
35 views

Creating a dynamic email template

I have a batch which I use to send emails to contacts. Every contact should have a different template - So I Created a body and subject in my apex class which every contact will have his unique body- ...
2
votes
0answers
33 views

Looking for the most responsive and reliable basic template in the Marketing Cloud

I started using SFMC's "Basic" templates as well as some "Themed" templates for one of our customers. But as we started sending emails, even though we had tested the emails on a few platforms, it ...
0
votes
0answers
22 views

How to access ContentDocument to be used as attachment in visualforce email template

How to access ContentDocument to be used as attachment in visualforce email template <messaging:attachment filename="{!relatedTo.ContentDocument.Title}" renderAs="{!relatedTo.ContentDocument....
0
votes
1answer
28 views

Can someone clear up datetime time zone behavior in visualforce email template?

Between the UI on direct records automatically adjusting to my time zone and not knowing default behavior in visualforce pages, I'm having trouble wrapping my head around what the user experience ...
0
votes
0answers
19 views

Send Email Along With Data Which Will Come As In Tabular Format

I have a requirement where i need to send the data in email body with tabular format. I used to fetch data using batch class and then written a method which used to create body of html email template. ...
0
votes
1answer
30 views

I am not able to use variable tag in template Based email in marketing cloud

In journey builder ,I am creating a journey to send emails to the list of records in a data extension. I have selected the Email Then clicked Preview and test. By clicking the code view , I have ...
1
vote
1answer
45 views

Marketing Cloud SOAP API - Derive Email Template from SendEvent

I'm currently using the Marketing Cloud SOAP API to get metrics about emails I send out. This works fine, I am able to get single instances of every event, but I am struggling with relating the send ...
0
votes
1answer
50 views

Is it possible to add custom email template with System.resetpassword() [closed]

I have to send a custom email template with System.resetpassword() method. Is it possible?
0
votes
1answer
30 views

Does the BEGINS formula work in an HTML Email template?

I have an email template in which I need to display a person's role, but I need to determine whether the role starts with a vowel (eg Accountant) so that I can correctly display 'a' or 'an' before it ...
0
votes
1answer
27 views

Rendering Image using data in my Data Extension

I have a Data Extension in which I have the path a different path for each image in the row. I am trying to pull this data in my email using an image block. How can I do it? Should I be using image ...
1
vote
1answer
37 views

How to get the attachments in apex which we have set in visualforce email template using <messaging:attachment>

below is the code snippet of the visualoforce email template. <messaging:emailTemplate> <messaging:attachment renderAs="PDF" filename="yourCases.pdf"> <html> <body&...
0
votes
2answers
59 views

ampscript Question

I'm very new to ampscript and am having an issue with a snippet of ampscript showing as blank. This is what I currently have: SNIPPET 1: %%[ set @firstName = Lookup('master','first_name','email',...
1
vote
4answers
106 views

Is that possible to change Custom (without using Letterhead) to a HTML (using Letterhead) in a particular email template?

I need to update an email template which is initially created as a Custom (without using Letterhead) email template to a HTML (using Letterhead) email template. The reason for this modification is , I ...
0
votes
1answer
35 views

How to include custom links in html template with letterhead

Currently, I'm working on CSAT survey's for the customer with a link. So, right now I am able to include anchor tag in HTML template without letterhead. This is the link <a href="{!$Label....
0
votes
1answer
43 views

How to record customer preference from SFMC email template

I need your valuable advice to confirm about one of my problem. We have a use case where have to send a SFMC email which have a URL about some event. We would like to give the preference to customer ...
0
votes
2answers
165 views

AMPHTML In Marketing Cloud

Google announced the ability to create interactive emails using an HTML framework known as AMPHTML (not to be confused with AMPscript). Here is some documentation if anyone is interested in learning ...
-1
votes
2answers
29 views

Problem with the switch conditional statement in the email template?

{CASE(Account.AccountSource, "ABC-Website", "Diese haben wir über unsere Website erlangt","Sportsponsoring" "Diese haben wir über ein soziales Netzwerk erlangt" "")} I don't understand what's wrong ...
0
votes
2answers
82 views

Error: Invalid field 'size' for SObject 'OpportunityLineItem'

I would like to check the size of the OpportunityLineItem related list in a Visualforce Email Template like below, where relatedTo is an Opportunity <apex:outputPanel rendered="{!relatedTo....
0
votes
1answer
18 views

Email Template not printing the picklist value

{! IF( ISPICKVAL( Opportunity.Transaction_Type__c,'IP - Tensilica'), Opportunity.Billing_Plan__c , 'Else Test')} -Here 'Opportunity.Billing_Plan__c' is a Pick list value, An Email Template is not ...
0
votes
1answer
27 views

Use 'ContactEmail' field of case in email template

I need to access value of contact email in email template using case object.'ContactEmail' is a standard case field is alredy availble, I am not able to see this field in case merge fileds. Even if I ...
0
votes
0answers
20 views

TEXT Email Template for Line Break? [duplicate]

! IF( ISPICKVAL( Opportunity.Transaction_Type__c,'IP - Tensilica'), 'TCV (USD) (<= $250K for FastTrack): $' & TEXT(Opportunity.TCV__c) & ' **\r\n**Term (months) (<=12 for FastTrack): ' &...
1
vote
1answer
348 views

Using Custom Metadata Type in Email Template

I am wondering to know if it is possible to use a Custom Metadata Type inside an Email Template. I'm moving from Custom Setting to Custom Metadata Type and this feature could be great. Regarding the ...
1
vote
1answer
366 views

Custom Font not working In Custom HTML email template

I have created static resource and included ttf file for gotham font, when I used below code in visualforce page it is rendering as expected. but when same I included in custom html email template it ...
0
votes
1answer
55 views

Variable not defined on Data Extension but able to print it in content

For parsing variables for the respective values on the email content html blocks, I usually have 2 kinds of variables. The first case. The variable is defined on the sendable Data Extension. The ...
0
votes
0answers
24 views

If condition in HTML email template not working. Weird

I have a HTML email template with IF loop which is not working. {!IF(NOT(ISNULL(pba__Closing__c.Buildings_survey_booked_To__c)),' to '+pba__Closing__c.Buildings_survey_booked_To__c,' ')} There is ...
0
votes
1answer
79 views

DocumentAttachmentMap Query for Attached File

I can attach a file to a Lightning emailTemplate using one of the emailTemplate editors in Salesforce but I have not been able to find the attachment record that makes this relationship possible. If,...
0
votes
1answer
380 views

Salesforce Marketing Cloud email template layout breaks when viewed in Outlook.com and Office 365

Usually I make emails handcoded, but one of my clients have started to use Salesforce Marketing Cloud, Email Studio. So I make templates intended for that system. But the layout breaks when viewed in ...
0
votes
0answers
11 views

HTML content is not allowing in HTML Email Templates with Letter head

I have the following code and its not allowing to create the email templete with the HTML body i gave String bdy = ' <table border="30px" cellpadding="0" cellspacing="0" id="topTable" style="...
0
votes
1answer
19 views

Lightning email template with logo

I am trying to figure out how to add a logo to a Lightning template so that it will span the width of the email. In Classic, I would create a letterhead & add an image of 550 width. Can someone ...
0
votes
0answers
59 views

Use a Custom Email Template for the Verification Method for Self-Reg Community User

I would know if we can use a Custom Email Template for the Verification Method (Email) when a new Community User is using the Self-Reg Page. Right now a standard email is sent including the Community ...
0
votes
0answers
18 views

Merge fields not getting substituted for actual values in Lightning email template

I have created one email template and I am using merge fields in this email template. Mail is getting sent with the correct template subject and body. However, merge fields are not getting substituted ...
0
votes
0answers
33 views

PDF Generation: Classic Email Template Content is counted in Salesforce Apex Code Limit?

We need to send PDF based on salesforce record. For this we have used Classic Email Template and Messaging.Singleemailmessage class to send PDF as attachment. We have used custom template for ...
1
vote
1answer
354 views

How to get Community Url in a Visualforce email template

Background I would like to display the Community Url within a visualforce email template. Standard templates use: {!Community_Url} But I cannot find an equivalent field for visualforce email ...
2
votes
0answers
48 views

Yes/Maybe/No buttons not appearing for ICS calendar visualforce email attachment

Background I am using <messaging:attachment to generate a .ics calendar invite as an attachment as part of a visualforce email template. <messaging:attachment filename="invite.ics" renderAs="...
0
votes
1answer
60 views

Email merge field is empty when email is being sent from Community

I have Reset Password email template with merge fields. When I test it from the org (clicking Send Test and Verify Merge Fields) the fields are populated. It works fine. But, when the community ...
3
votes
1answer
421 views

How to Upload Lightning, not Classic, EmailTemplates

I need to convert 200 classic emailtemplates to lightning templates and I've encountered an obstacle. When I insert templates with lightning markup using SOQL and identical field values to an existing ...
1
vote
1answer
36 views

Can I send an email without sharing?

I'm trying to send some emails using the Messaging API. I'm constructing instances of Messaging.SingleEmailMessage, setting the values of whatId, whoId, and templateId, and then sending through ...
0
votes
0answers
17 views

Richtext Field contains GIF image

I have richtext field(crich__c) that contains gif image in salesforce. When created an email template and merge my richtextfield it doesnt show.
0
votes
0answers
7 views

Limit certain cells from editing in Free Form Components

I have set up a HTML E-Mail Template with a set of components all done with HTML as Free Forms so editors can change the contents. However I have an issues I am not sure how to solve: I have a ...
3
votes
1answer
781 views

How do I retrieve email templates from a sandbox using sfdx

Is it possible to retrieve email templates using sfdx? I would assume that I could get them using sfdx force:source:retrieve -m EmailTemplate:Folder/TemplateName but everything I try results in === ...